上传文件时报错:
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>