Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

hadoop dfs -cp : command unable to find existing file

hadoop dfs -cp : command unable to find existing file

New Contributor

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
 
 
1 REPLY 1
Highlighted

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

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