I want to copy a file from local file system to HDFS so the command I used is
hadoop dfs -copyFromLocal <local-dir> <hdfs-dir>
In this command I don't know my hdfs-dir.
I saw somewhere on internet that I should run the below command:
hdfs dfs -ls
and I got the following output
-rw-r--r-- 3 user1 hdfs 127162942 2016-04-01 19:47 .
I checked hdfs-site.xml, I found following configuration -
I tried to run following command but it gives error -
[root@sandbox try]# hdfs dfs -copyFromLocal sample.csv /hadoop/hdfs/data
copyFromLocal: `/hadoop/hdfs/data': No such file or directory
Can anyone tell me how can I find my HDFS directory?