Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.10
    • Fix Version/s: None
    • Component/s: other
    • Labels:
      None
    • Environment:

      centos 6.5
      jdk1.8.0_131

      Description

      I deploy ZooKeeper in a cluster of three nodes on three different linux machines.
      All is going well,but I got the output of " Error contacting service. It is probably not running " when I executed "zkServer.sh status" to check if the node of cluster was running.
      Finally, I found a problem in zkServer.sh
      it got "clientPort=2181" when executing "zkServer.sh status" ,but the correct String is only "2181".So, It is a solution to the problem that removing "clientPort=" from "clientPort=2181" .

      I hope you understand me. My poor English.

        Activity

        Hide
        neha.bathra Neha Bathra added a comment -

        I have tried the same thing and it works fine for me until I have

        clientPort=2181

        configured in my zoo.cfg. But when it is not configured in the zoo.cfg, and default value is taken (maybe from code) then it occurs.

        The fix can go like if it is configured in zoo.cfg, take this value and extract clientPort value from it else consider default value.

        Makes sense??

        Show
        neha.bathra Neha Bathra added a comment - I have tried the same thing and it works fine for me until I have clientPort=2181 configured in my zoo.cfg. But when it is not configured in the zoo.cfg, and default value is taken (maybe from code) then it occurs. The fix can go like if it is configured in zoo.cfg, take this value and extract clientPort value from it else consider default value. Makes sense??
        Hide
        cloudhy huangyun added a comment -

        Thank you
        I will try it later.

        Show
        cloudhy huangyun added a comment - Thank you I will try it later.

          People

          • Assignee:
            neha.bathra Neha Bathra
            Reporter:
            cloudhy huangyun
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development