Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 07-05-2018 05:03 PM - edited 08-18-2019 01:00 AM
I have 2 DataNodes and both are live. However, the dashboard shows that the HDFS Disk Usage is n/a, and capacity is zero (see the screenshot).
I tried to put some files to hdfs through "hadoop fs -put hello.txt /", and got the error
File /hello.txt._COPYING_ could only be replicated to 0 nodes instead of minReplication (=1). There are 2 datanode(s) running and no node(s) are excluded in this operation.
I guess this means the NameNode knows the existence of 2 DataNodes, and none is excluded from the "-put" operation?
I have checked the "dfs.datanode.data.dir", and it is pointing to the correct directory with 500G available space.
How can I resolve this issue?
Created 07-06-2018 06:10 AM
Hey @Yun Ding !
Could you check the following outputs?
hdfs dfs -du -h /
hdfs dfsadmin -report
lsblk df -h
And also check the value for this parameter on Ambari:
dfs.datanode.du.reserved
PS: Just in case, check the permission for the dfs.datanode.data.dir directory, should it be owned by hdfs:hadoop.
Hope this helps!
Created 07-06-2018 06:10 AM
Hey @Yun Ding !
Could you check the following outputs?
hdfs dfs -du -h /
hdfs dfsadmin -report
lsblk df -h
And also check the value for this parameter on Ambari:
dfs.datanode.du.reserved
PS: Just in case, check the permission for the dfs.datanode.data.dir directory, should it be owned by hdfs:hadoop.
Hope this helps!
Created 07-06-2018 03:07 PM
it was due to the permission for the dfs.datanode.data.dir directory. Thanks!
Created 07-06-2018 03:56 PM
Good to know! 🙂
Created 01-13-2022 10:28 PM
Hi there,
is it dfs_datanode_data_dir_perm?
what's your previous value for it when it couldn't write?