1. 程式人生 > >hadoop fs,hadoop dfs,hdfs dfs

hadoop fs,hadoop dfs,hdfs dfs

hadoop fs:
FS relates to a generic file system which can point to any file systems like local, HDFS etc. So this can be used when you are dealing with different file systems such as Local FS, HFTP FS, S3 FS, and others
意思是說該命令可以用於其他檔案系統,不止是hdfs檔案系統內,也就是說該命令的使用範圍更廣


hadoop dfs
專門針對hdfs分散式檔案系統


hdfs dfs
和上面的命令作用相同,相比於上面的命令更為推薦,並且當使用hadoop dfs時內部會被轉為hdfs dfs命令