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

If JAVA_HOME is not set zk startup and fetching status command execution result misleads user.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.2, 3.6.0
    • Component/s: scripts
    • Labels:
      None

      Description

      If JAVA_HOME is not set, zk startup and fetching status command execution result misleads user.

      1. Eventhough zk startup has failed since JAVA_HOME is not set , on CLI it displays that zk STARTED.

      #:~/Apr3rd/zookeeper-3.4.6/bin> ./zkServer.sh start
      JMX enabled by default
      Using config: /home/REX/Apr3rd/zookeeper-3.4.6/bin/../conf/zoo.cfg
      Starting zookeeper ... STARTED
      

      2. Fetching zk status when JAVA_HOME is not set displays that process not running .

      #:~/Apr3rd/zookeeper-3.4.6/bin> ./zkServer.sh status
      JMX enabled by default
      Using config: /home/REX/Apr3rd/zookeeper-3.4.6/bin/../conf/zoo.cfg
      Error contacting service. It is probably not running.
      

        Attachments

        1. ZOOKEEPER-2156.1.patch
          1 kB
          J.Andreina
        2. ZOOKEEPER-2156.2.patch
          0.9 kB
          J.Andreina
        3. ZOOKEEPER-2156.3.patch
          0.9 kB
          J.Andreina
        4. ZOOKEEPER-2156.4.patch
          0.6 kB
          J.Andreina
        5. ZOOKEEPER-2156.5.patch
          0.6 kB
          J.Andreina

          Issue Links

            Activity

              People

              • Assignee:
                andreina J.Andreina
                Reporter:
                andreina J.Andreina
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: