通过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通讯的几个端口就行了。