七个节点,进程分布如下:
master1 namenode hmaster master kafka
slave2 namenode hmaster worker kafka
slave3 nodemanager/resourcemanager worker kafka
slave4 nodemanager/resourcemanager worker kafka
slave5 datanode QuorumPeerMain/journalnode regionserver worker
slave6 datanode QuorumPeerMain/journalnode regionserver worker
slave7 datanode QuorumPeerMain/journalnode regionserver worker
平时的启动命令:
1.slave5,slave6,slave
zkServer.sh start
2.slave5
hadoop-daemons.sh start journalnode
3.master1,slave2
hadoop-daemon.sh start namenode
4.master1
hadoop-daemons.sh start datanode
5.slave3
start-yarn.sh
6.slave4
yarn-daemon.sh start resourcemanager
7.master1,slave2
hadoop-daemon.sh start zkfc
8.master1
mr-jobhistory-daemon.sh start historyserver
9.master1
start-hbase.sh
10.slave2
hbase-daemon.sh start master
其它杂七杂八的常用命令:
1.防火墙状态
service iptables status
2.关闭防火墙
service iptables stop
chkconfig iptables off
3.安全模式
hdfs dfsadmin -safemode get|enter|leave