CWeeks CWeeks - 1 year ago 104
Linux Question

Can't copy local file in linux to hadoop

I just installed

on a VM linux system. Now I am following my guide book to copy a file from locally to
(file is saved on
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?


Answer Source

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

cd /root/Desktop