hadoop fs -put /root/foo.txt /user root directory in hadoop which is it
Hi Sraddha,
You can upload the file in your own home directory. Say my login generated by CloudxLab is sandeepg9034, so my workspace in HDFS will be in /user/sandeepg9034.
So, if I wanted to upload something from my linux console to HDFS, I would use command like hadoop fs -put myfile.txt /user/sandeepg9034