hadoop 和 hdfs 命令行工具有什么区别?

What is difference between hadoop and hdfs command line tools?

我看到 hadoophdfs 命令行工具可以执行相同的操作。例如,我可以 运行 example.jar 使用

hadoop jar example.jar

同样使用

hdfs -jar example.jar

这两个命令行工具有什么区别?

我认为命令的唯一区别与文件系统有关。

hadoop fs 能够与各种文件系统通信。

hdfs dfs 仅适用于 HDFS。

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


其余的命令,例如jar,基本上都是别名,如果你使用HDFS作为你的文件系统,例如与S3相比,几乎没有什么区别,虽然有人说hdfs 二进制已弃用