Unable to copy file from Local directory to HDFS
Unable to copy file from Local directory to HDFS
I have formatted the Namenode, permissions on HDFS directories, but it didn't help me. I am running a single node hadoop cluster on ubuntu. This is the error I am facing:
java.io.IOException: File /mydir could only be replicated at 0 nodes, instead of 1.
Any help or guidance about where to look and how to solve this error.
This error is generated when your datanode is down, or when it is up but not able to connect with the Namenode
– Abhinav
2 days ago
hduser1@lalitha-VirtualBox:/home/lalitha/Downloads/hadoop-0.20.2-cdh3u5$ bin/hadoop dfs -put test /mydir 18/06/29 12:08:37 WARN hdfs.DFSClient: DataStreamer Exception: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /mydir could only be replicated to 0 nodes, instead of 1 at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1591)
– Lalitha
2 days ago
Look at the Hadoop logs directory. Open the datanode logs look for errors. Run
jps
, look for datanode– cricket_007
yesterday
jps
It is working, thanks & regards
– Lalitha
yesterday
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Could you please provide a bit more detail, how are you getting this error, do you have any code associated with the issue?
– David Rogers
2 days ago