CWeeks CWeeks - 6 months ago 15
Linux Question

Can't copy local file in linux to hadoop

I just installed

Hadoop
on a VM linux system. Now I am following my guide book to copy a file from locally to
hadoop
(file is saved on
VM
desktop). here is what I did:

hdfs dfs -copyFromLocal filename.csv /user/root


However, I received message saying

"copyFromLocal: 'filename.csv': no such file or directory"


Can anyone tell me what went wrong and what should I do to make it right?

Thanks!

Answer

you need to be in your Desktop folder ( containing your file to find the file)

cd /root/Desktop
Comments