您的位置首页百科知识

hadoop中命令经常含有-fs,-dfs,fs和dfs有什么区别?作用是什么?

hadoop中命令经常含有-fs,-dfs,fs和dfs有什么区别?作用是什么?

的有关信息介绍如下:

hadoop中命令经常含有-fs,-dfs,fs和dfs有什么区别?作用是什么?

You can see definitions of the two commands (hadoop fs & hadoop dfs) in 可以看一下hadoop的源代码$HADOOP_HOME/bin/hadoop...elif [ "$COMMAND" = "datanode" ] ; then CLASS='org.apache.hadoop.hdfs.server.datanode.DataNode' HADOOP_OPTS="$HADOOP_OPTS $HADOOP_DATANODE_OPTS"elif [ "$COMMAND" = "fs" ] ; then CLASS=org.apache.hadoop.fs.FsShell HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"elif [ "$COMMAND" = "dfs" ] ; then CLASS=org.apache.hadoop.fs.FsShell HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"elif [ "$COMMAND" = "dfsadmin" ] ; then CLASS=org.apache.hadoop.hdfs.tools.DFSAdmin HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"...So, they are exactly the same.所以,发现两者是完全一样的功能。谢谢