I started with the need to backup the whole hadoop datanode data directory using:
hdfs dfs -copyToLocal /var/hadoop/dfs/name/data /home/ubuntu/hadoopfiles
And I got an error:
"No such file opr directory" for /var/hadoop/dfs/name/data
After some search I've found this Stack Overflow topic with examples: https://stackoverflow.com/questions/28213116/hadoop-copy-a-local-file-system-folder-to-hdfs#=
But even when I do:
hdfs dfs -ls
I receive the error message ls: `.': No such file or directory
I have also looked to other posts, it seems this is a quite common issue, but I was unable to find a solution for me.
Thanks.