Reply
New Contributor
Posts: 3
Registered: ‎09-28-2015

hadoop dfs -cp : command unable to find existing file

I am using fillowing comand to copy a file from local file system to HDFS, but it gives error that file does not exist:

 

hadoop dfs -cp /path/filename.txt /tmp

 

All hadoop services are up n running :

 

3613 JobTracker
3834 TaskTracker
3309 DataNode
3529 SecondaryNameNode
3095 NameNode
4140 Jps
 
other command are running like and shows results:
hadoop dfs -ls /
 
can any one please help me in solving this issue by provioding some pointers.
 
Thanks
 
 
Highlighted
Cloudera Employee Sue
Cloudera Employee
Posts: 44
Registered: ‎09-11-2015

Re: hadoop dfs -cp : command unable to find existing file

Use: hdfs dfs -put /path/filename.txt /tmp