hadoop入門:hadoop使用shell命令總結

第一部分:Hadoop Bin
後面根據項目的實際須要Hadoop Bin  包括:
Hadoop  hadoop的Shell
hadoop-config.sh 它的做用是對一些變量進行賦值
     HADOOP_HOME(hadoop的安裝目錄)。
     HADOOP_CONF_DIR(hadoop的配置文件目錄)。HADOOP_SLAVES(--hosts指定的文件的地址)
hadoop-daemon.sh 單節點啓動
hadoop-daemons.sh 啓動slaves.sh和hadoop-daemon.sh
start-all.sh    啓動HDFS與MapReduce
start-balancer.sh 啓動Hadoop的負載均衡
start-dfs.sh  啓動HDFS
start-jobhistoryserver.sh
start-mapred.sh  啓動MapReduce
來進行調整。
後面根據項目的實際須要Hadoop Bin  包括:
Hadoop  hadoop的Shell
hadoop-config.sh 它的做用是對一些變量進行賦值
     HADOOP_HOME(hadoop的安裝目錄)。
     HADOOP_CONF_DIR(hadoop的配置文件目錄)。
     HADOOP_SLAVES(--hosts指定的文件的地址)
hadoop-daemon.sh 單節點啓動
hadoop-daemons.sh 在全部slaves上運行相同的腳本hadoop-daemon.sh
start-all.sh    啓動HDFS與MapReduce
start-balancer.sh 啓動Hadoop的負載均衡
start-dfs.sh  啓動HDFS
start-jobhistoryserver.sh
start-mapred.sh  啓動MapReduce
來進行調整。
stop-all.sh   中止HDFS與MapReduce
stop-balancer.sh 中止作負載均衡
stop-dfs.sh   中止HDFS
stop-jobhistoryserver.sh 中止Job追蹤
stop-mapred.sh 中止MapReduce
task-controller
第二部分:Hadoop Shell 基本操做

nHadoop shell
  包括:html

  1. namenode -format     format the DFS filesystem
  2. secondarynamenode    run the DFS secondary namenode
  3. namenode             run the DFS namenode
  4. datanode             run a DFS datanode
  5. dfsadmin             run a DFS admin client
  6. mradmin              run a Map-Reduce admin client
  7. fsck                 run a DFS filesystem checking utility
  8. fs                   run a generic filesystem user client
  9. balancer             run a cluster balancing utility
  10. fetchdt              fetch  delegation token from the NameNode
  11. jobtracker           run the MapReduce job Tracker node
  12. pipes                run a Pipes job
  13. tasktracker          run a MapReduce task Tracker node
  14. historyserver        run job history servers as a standalone daemon
  15. job                  manipulate MapReduce jobs
  16. queue                get information regarding JobQueues
  17. version              print the version
  18. jar <jar>            run a jar file
  19. distcp <srcurl> <desturl> copy file or directories recursively
  20. archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive
  21. classpath            prints the class path needed to get the
  22.                            Hadoop jar and the required libraries
  23. daemonlog            get/set the log level for each daemon
  24. or
  25. CLASSNAME            run the class named CLASSNAME
複製代碼

推薦文章:
Hadoop Shell命令字典(可收藏)node

文章轉自:http://www.aboutyun.com/thread-6742-1-1.htmlshell

相關文章
相關標籤/搜索