Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3322

./zkServer.sh status failed when reconfig don't write the clientPort into the zoo.cfg

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • None
    • None
    • None

    Description

      look at my zoo.cfg which don't have the clientPort value when using the reconfig.
      cat ../conf/zoo.cfg
      reconfigEnabled=true
      dataDir=../../zkdata2
      syncLimit=5
      dataLogDir=../../zkdataLog2
      initLimit=10
      tickTime=2000
      dynamicConfigFile=/data/software/zookeeper/zookeeper-test2/conf/zoo.cfg.dynamic.1f00000000

      but look at the cmd:"./zkServer.sh status",it needs this clientPort value
      STAT=`"$JAVA" "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}" "-Dzookeeper.log.file=${ZOO_LOG_FILE}" \
      -cp "$CLASSPATH" $JVMFLAGS org.apache.zookeeper.client.FourLetterWordMain \
      $clientPortAddress $clientPort srvr 2> /dev/null \

      otw, ./zkServer.sh status will fail.

      Attachments

        Activity

          People

            maoling Ling Mao
            maoling Ling Mao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: