• Zookeeper的多节点集群详细启动步骤(3或5节点)


    分为

      (1)分别去3或5节点上去启动Zookeeper进程

      (2)自己写个脚本,直接在主节点上去启动Zookeeper进程。

    (1)分别去3或5节点上去启动Zookeeper进程

      第一步:

    [hadoop@HadoopMaster zookeeper-3.4.6]$ pwd
    /home/hadoop/app/zookeeper-3.4.6
    [hadoop@HadoopMaster zookeeper-3.4.6]$ jps
    3113 Jps
    [hadoop@HadoopMaster zookeeper-3.4.6]$ bin/zkServer.sh start
    JMX enabled by default
    Using config: /home/hadoop/app/zookeeper-3.4.6/bin/../conf/zoo.cfg
    Starting zookeeper ... STARTED
    [hadoop@HadoopMaster zookeeper-3.4.6]$ jps
    3133 QuorumPeerMain
    3146 Jps
    [hadoop@HadoopMaster zookeeper-3.4.6]$

      第二步:

    [hadoop@HadoopSlave1 hadoop-2.6.0]$ cd $ZOOKEEPER_HOME
    [hadoop@HadoopSlave1 zookeeper-3.4.6]$ pwd
    /home/hadoop/app/zookeeper-3.4.6
    [hadoop@HadoopSlave1 zookeeper-3.4.6]$ jps
    3088 Jps
    [hadoop@HadoopSlave1 zookeeper-3.4.6]$ bin/zkServer.sh start
    JMX enabled by default
    Using config: /home/hadoop/app/zookeeper-3.4.6/bin/../conf/zoo.cfg
    Starting zookeeper ... STARTED
    [hadoop@HadoopSlave1 zookeeper-3.4.6]$ jps
    3122 Jps
    3109 QuorumPeerMain
    [hadoop@HadoopSlave1 zookeeper-3.4.6]$

      第三步:
    [hadoop@HadoopSlave2 ~]$ cd $ZOOKEEPER_HOME
    [hadoop@HadoopSlave2 zookeeper-3.4.6]$ pwd
    /home/hadoop/app/zookeeper-3.4.6
    [hadoop@HadoopSlave2 zookeeper-3.4.6]$ jps
    4511 Jps
    [hadoop@HadoopSlave2 zookeeper-3.4.6]$ bin/zkServer.sh start
    JMX enabled by default
    Using config: /home/hadoop/app/zookeeper-3.4.6/bin/../conf/zoo.cfg
    Starting zookeeper ... STARTED
    [hadoop@HadoopSlave2 zookeeper-3.4.6]$ jps
    4531 QuorumPeerMain
    4545 Jps
    [hadoop@HadoopSlave2 zookeeper-3.4.6]$

      这里,我以3节点作为演示,5个节点的Zookeeper大同小异,不多赘述。

    (2)自己写个脚本,直接在主节点上去启动Zookeeper进程。

    [hadoop@djt11 zookeeper]$ runRemoteCmd.sh "/home/hadoop/app/zookeeper/bin/zkServer.sh start" zookeeper

      

      具体,如下博客

           hadoop-2.6.0.tar.gz的集群搭建(5节点)

  • 相关阅读:
    面试题
    网络编程-1
    excel文件导入数据库--jxl包
    excel文件导入数据库
    1113 Integer Set Partition (25 分)集合分割
    1120 Friend Numbers (20 分)set的使用
    1099 Build A Binary Search Tree (30 分)
    1092 To Buy or Not to Buy (字符串删除)
    1127 ZigZagging on a Tree (30 分)树的层次遍历
    1155 Heap Paths (30 分)判断是否是一个堆
  • 原文地址:https://www.cnblogs.com/zlslch/p/6553525.html
Copyright © 2020-2023  润新知