启动集群顺序

0.关闭防火墙 sudo service iptables stop

1.启动hdfs和yarn  start-all.sh

2.启动oozie        oozied.sh run/start

3.启动历史服务器 mr‐jobhistory‐daemon.sh start historyserver

4.启动flume数据采集 前台启动 [cdh@cdh2 ~]$ flume‐ng agent ‐c flume‐1.5.0‐cdh5.3.6‐bin/conf/ ‐f dir_hdfs.conf ‐‐name
ag1 ‐Dflume.root.logger=INFO,console

后台启动 nohup flume‐ng agent ‐c flume‐1.5.0‐cdh5.3.6‐bin/conf/ ‐f dir_hdfs.conf ‐n ag1
1>/dev/null 2>&1 &

5.启动nginx  sudo service httpd stop

nginx下的sbin目录下./nginx
./nginx ‐s reload
./nginx ‐s stop  执行命令

启动成功 可以通过网页查看 http://192.168.23.200/ 访问


7110 Application                             flume的进程
1913 DataNode         
2090 SecondaryNameNode
1819 NameNode
2235 ResourceManager                yarn
2700 Bootstrap        oozie
2333 NodeManager
3006 JobHistoryServer              历史服务

猜你喜欢

转载自www.cnblogs.com/tk112/p/10271470.html