Is you file name file.txt or file that you are trying to upload? Have you made sure about that? Is any other command working? Have you tried copyFromLocal?
Regards, Shahab On Sat, Jun 1, 2013 at 4:05 AM, Rahul Bhattacharjee <[email protected] > wrote: > you should be able to use hadoop fs -put <file> . file in the directory > where you are running the command. > > > > On Sat, Jun 1, 2013 at 5:31 AM, Shashidhar Rao <[email protected] > > wrote: > >> Hi Users, >> >> Please help me with some documentation on how to submit job in YARN and >> upload files in HDFS. Can I still use the MR1 commands for file uploading >> to hadoop fs -put and hadoop jar job.jar input ouput? Because I ran with >> errors saying file cannot be uploaded as file cannot found. The directory >> structure is same . >> >> MR2 Directory structure/same as MR1 >> hadoop/bin/~all hadoop files including hadoop excecutable >> hadoop/ file.txt, job.jar etc >> hadoop/etc/hadoop/ ~all site files and properties >> >> I cd to hadoop and then I am executing bin/hadoop fs -put file file >> It says file cannot be found but I was able to run without error in MR1 >> >> Thanks >> shashidhar >> >> >> >> >
