Hadoop employee.txt file


1 Answer(s)


Hi Vivek,

You need to put the file on the HDFS before you can view the file on the hdfs.

Step 1 make a directory for your data
$ hadoop fs -mkdir /user/vivek

Step 2: hadoop fs -copyFromLocal /path/to/employee.txt /user/vivek/somefolder

Alternative step 2: hadoop fs -put /path/to/employee.txt /user/vivek/somefolder

Once you have done that you could do -
Step 3: hadoop fs -ls /user/vivek

Thats how you should go about doing it.

Thanks
Deb.