Getting the file from Hadoop



0

Hi Karan,

I am trying to get the out put file for the wordcount but I am getting an error. What am I doing wrong? Please see teh screenshot I have attached.

Thanks,

Nadeem



3 Answer(s)


0

Hi Nadem,

Please check the output file name is wrong you have outpuy.Thats is why you are getting error.Could you tell me where you post questions.


1

Run the following command to get the file from hdfs:

$ hadoop fs -get /user/cloudera/class3/wc-output/part-r-00000

this command will copy the file from hdfs into your local directory in Linux filesystem.

 


0

Hi Jagdeep,

From your command, it seems like you are trying to download the file from hdfs to local directory.

As @dinesh suggested, you have to use the -get command.

$ hadoop fs -get /user/cloudera/class3/wc-output/part-r-00000 /home/cloudera/class3/

Hope this helps.

Thanks.