I have Hadoop installed in this location:
/usr/local/hadoop$
Here I am listing out the files present in my dfs directory. So for this, I used the command: user1@ubuntu:/usr/local/hadoop$ bin/hadoop dfs -ls
This gave me the correct result.
But after that, I tried the same command in a different manner
user1@ubuntu:/usr/local/hadoop$ hadoop dfs -ls
I again got the same result.
Could anyone explain me that why I'm getting the same result despite of executing the commands from different folders. I hope you understand my question, I just want to know the difference between the two commands:
1. user1@ubuntu:/usr/local/hadoop$ bin/hadoop dfs -ls
2. user1@ubuntu:/usr/local/hadoop$ hadoop dfs -ls