How Can I Obtain the IP Address and Port Number of a ZooKeeper Instance?

You can obtain the IP address and port number of a ZooKeeper instance through the MRS console or MRS Manager.

Method 1: Obtaining the IP address and port number of a ZooKeeper through the MRS console

  1. On the Dashboard page, click Synchronize on the right side of IAM User Sync to synchronize IAM users.

  2. Click the Components tab and choose ZooKeeper. On the displayed page, click Instances to view the business IP address of a ZooKeeper instance.

  3. Click the Service Configuration tab. On the displayed page, search for the clientPort parameter to view the port number of the ZooKeeper instance.

Method 2: Obtaining the IP address and port number of a ZooKeeper through MRS Manager

  1. Log in to MRS Manager. For details, see .

  2. Perform the following operations to obtain the IP address and port number of a ZooKeeper instance.

    • For clusters of MRS 3.x or earlier

      1. Choose Services > ZooKeeper. On the displayed page, click the Instance tab to view the business IP address of a ZooKeeper instance.

      2. Click the Service Configuration tab. On the displayed page, search for the clientPort parameter to view the port number of the ZooKeeper instance.

    • For clusters of MRS 3.x or later

      1. Choose Cluster > Services > ZooKeeper. On the displayed page, click the Instance tab to view the business IP address of a ZooKeeper instance.

      2. Click the Configurations tab. On the displayed page, search for the clientPort parameter to view the port number of the ZooKeeper instance.