I get an Exception when trying to copy a file from local filesystem to hadoop fs
4 Answer(s)
Sridhar
Can you check if your data node is reachable to name node ?
https://wiki.apache.org/hadoop/CouldOnlyBeReplicatedTo
Oct 25 2015 07:49 PM
https://wiki.apache.org/hadoop/CouldOnlyBeReplicatedTo
Sridhar
http://stackoverflow.com/questions/5293446/hdfs-error-could-only-be-replicated-to-0-nodes-instead-of-1
Oct 25 2015 07:50 PM
Abhijit-Dezyre Support
Hi Subhra,
The error is coming because the replication factor is 0. If you update the replication factor to 1 or 2, the same command will work.
Thank you.
Oct 26 2015 10:16 PM
The error is coming because the replication factor is 0. If you update the replication factor to 1 or 2, the same command will work.
Thank you.
DeZyre Support
hi Subra,
Please try setting the block replication to 1 and try again
Oct 27 2015 06:39 PM
Please try setting the block replication to 1 and try again