hadoop 上传文件到HDFS报错

上传文件时报错:

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

解决办法:

hdfs-site.xml配置增加内存:

dfs.datanode.max.xcievers:该参数限制了datanode所允许同时执行的发送和接受任务的数量,缺省为256,这里设置为4096

<property>  
                <name>dfs.datanode.max.xcievers</name>  
                <value>4096</value>  
 </property>

猜你喜欢

转载自blog.csdn.net/u013387787/article/details/78324211
今日推荐