I'm trying to copy a local file called 'afile' to the HDFS. So I ran the following command:
'hadoop fs -copyFromLocal /home/neo/afile in' or 'hadoop fs -put /home/neo/afile in'
However, it says: 'File /home/neo/afile does not exist'
Then I put the file 'afile' into the directory under hadoop. Now the copyFromLocal succeeded. However, the file 'in' is empty, since I run 'hadoop fs - ls', it shows
'-rw-r--r--' 1 neo supergroup 0 2015-04-06 17:45 /user/neo/in
I also tried 'hadoop fs -cat in', nothing returned.
Could someone please help?
Thanks!
afilecontain? Also post the result forls -l /home/neo/. - Rajesh N