cdh版本hadoop五节点部署

感觉这篇很不错,记录下:http://blog.csdn.net/u010270403/article/details/51446674

启动集群

  • 1、启动zookeeper
[hadoop@cdhnode1 app]$ runRemoteCmd.sh "/home/hadoop/app/zookeeper-3.4.5-cdh5.4.5/bin/zkServer.sh start" zk
  • 2、启动HDFS
[hadoop@cdhnode1 app]$ ./hadoop-2.6.0-cdh5.4.5/sbin/start-dfs.sh  
  • 3、在cdhnode1节点上执行
[hadoop@cdhnode1 app]$ ./hadoop-2.6.0-cdh5.4.5/sbin/start-yarn.sh  
  • 4、在cdhnode2节点上面执行
[hadoop@cdhnode2 app]$ ./hadoop-2.6.0-cdh5.4.5/sbin/yarn-daemon.sh start resourcemanager  

关闭集群

  • 1、在cdhnode2节点上面执行
[hadoop@cdhnode2 app]$ ./hadoop-2.6.0-cdh5.4.5/sbin/yarn-daemon.sh stop resourcemanager  
  • 2、在cdhnode1节点上执行
[hadoop@cdhnode1 app]$ ./hadoop-2.6.0-cdh5.4.5/sbin/stop-yarn.sh  
  • 3、关闭HDFS
[hadoop@cdhnode1 app]$ ./hadoop-2.6.0-cdh5.4.5/sbin/stop-dfs.sh  
  • 4、关闭zookeeper
[hadoop@cdhnode1 app]$ runRemoteCmd.sh "/home/hadoop/app/zookeeper-3.4.5-cdh5.4.5/bin/zkServer.sh stop" zk

你可能感兴趣的:(hadoop)