Q: No such file or directory -- Hadoop or HDFS error I am trying to copy a file from my local file system to HDFS, but it is giving an error message.
The command is:
hadoop fs -copyFromLocal /Users/admin/a.txt username98642
And the error is:

copyFromLocal: `/Users/admin/a.txt': No such file or directory

I have the file a.txt present on the local file system.
I have tried the permutations and combinations of the command.
Also I have the folder created on the server as well. But it is still showing this error. What could be wrong with this as the tutorial that I am following has this working. 
OUTPUTS
FIRST TERMINAL:

admins-Mac-mini:~ admin$ ls -la u.txt 
-rwxrwxrwx  1 admin  staff  4 Apr 17 16:13 u.txt

ON OTHER TERMINAL

hirwuser150430@ip-171-30-45-205:~$ hadoop fs -copyFromLocal /Users/admin/u.txt sample
copyFromLocal: `/Users/admin/u.txt': No such file or directory
  hirwuser150430@ip-171-30-45-205:~$ 


A: That file (u.txt) must be present in (or reachable from) the same filesystem as the one you are running the copyFromLocal command (the one at ip-171-30-45-205). Copy the file to the remote computer using scp and then upload it to HDFS. 
Check if the file is in the path you think it is, by using ls on the machine at ip-171-30-45-205. 
ls /Users/admin/u.txt

It seems that on the other terminal your user name is hirwuser150430 and not admin...
