Unable to copy file to HDFS


2 Answer(s)


hi Anudeep,

Looks like the replication factor was changed in core-site.xml, can you check and let us know the value. This should be set to 3. Please set it to 3 and try it again.

Thanks

I'm reading your log as: You do not have DataNode in the configuration but you specified replication 1. I have not encountered this problem but I can share my config. Here it is from hdfs-site.xml


dfs.name.dir
/opt/hadoop_dfs/namenode


dfs.data.dir
/opt/hadoop_dfs/datanode


dfs.replication
1