随笔 - 0, 文章 - 264, 评论 - 170, 引用 - 0
数据加载中……

could only be replicated to 0 nodes instead of minReplication (=1). There are 2 datanode(s) running and 2 node(s) are excluded in this operation

通过Flume向hdfs传送文件数据时,报错如下:
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /aboutyunlog/FlumeData.1430287668990.tmp could only be replicated to 0 nodes instead of minReplication (=1).  There are 2 datanode(s) running and 2 node(s) are excluded in this operation.

解决办法:
1、关闭hadoop集群中每一台机器的防火墙:iptables -F。

当然上述方法比较暴力,真实情况可能只是放开Flume向hdfs通讯的几个端口就行了。

posted on 2015-04-29 15:21 小一败涂地 阅读(3680) 评论(0)  编辑  收藏 所属分类: bigdata


只有注册用户登录后才能发表评论。


网站导航: