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

Enable remote jmx, zkCli.sh start failed with jmx communication error

    XMLWordPrintableJSON

    Details

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

      OS: Centos 6.7 x86_64
      Zookeeper: 3.4.9
      Java: HotSpot 1.8.0_65-b17

      Description

      My laptop is Macbook Pro with macOS Sierra (IP: 192.168.2.102). An VM (IP: 192.168.2.107) is running on VirtualBox.

      Deploy zookeeper-3.4.9 on VM, enable the remote JMX with option:

      -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8415 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.rmi.port=8415
      -Djava.rmi.server.hostname=192.168.2.107

      Test with jconsole on Mac, connect 192.168.2.107:8415 works fine.

      Runnign zkCli.sh failed
      $ bin/zkCli.sh
      Error: JMX connector server communication error: service:jmx:rmi://localhost.localdomain:8415

      $ cat /etc/hosts
      127.0.0.1 localhost.localdomain localhost
      ::1 localhost6.localdomain6 localhost6

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              linbo linbo.liao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: