Search code examples
hadoophadoop2

What is difference between hadoop and hdfs command line tools?


I see that hadoop and hdfs command line tools can perform identical operations. For example I can run example.jar using

hadoop jar example.jar

And the same using

hdfs -jar example.jar

What is difference between these two command line tools?


Solution

  • I believe the only difference in the commands is related to the file system.

    hadoop fs is able to communicate with various file systems.

    hdfs dfs is only for HDFS.

    what's the difference between "hadoop fs" shell commands and "hdfs dfs" shell commands?


    The rest of the commands, such as jar, are basically aliases, and if you use HDFS as your file system, compared to S3, for example, there is mostly no difference, though it's been said that hdfs binary is deprecated