17/03/23 21:21:37 WARN hdfs.DFSClient: DataStreamer Exception: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /user/xi/input/3.txt could only be replicated to 0 nodes, instead of 1
issue:
the client can't communicate with the Datanode. Because the IP that the client received for the Datanode is an internal IP and not the public IP.
Datanodes doesn’t have enough disk space to store the blocks
Namenode can not reach Datanode(s) or Datanode(s) could be down/unavailable
to solve:
1、make sure the connectivity between Namenode and Datanode(s) and also the Datanode(s) have sufficient space to store the new blocks.
2、
Set the DataNode with right file permission
chmod 755 /home/svenkata/hadoop/datanode/