Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-29795

Node-init "-c" / "--cluster" documentation should explain clearly the value that needs to be provided to this parameter

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • Major
    • None
    • 5.5.0
    • tools
    • None

    Description

      The command for initializing a Couchbase cluster node node-init has an argument (-c / --cluster) for taking the cluster URL as input as shown below:

      couchbase-cli node-init [--cluster <url>] [--username <user>]
       [--password <password>] [--node-init-data-path <path>]
       [--node-init-index-path <path>] [--node-init-hostname <hostname>]
      

      For example:

      /opt/couchbase/bin/couchbase-cli node-init c $DATA_NODE_IP:8091-node-init-data-path=/opt/couchbase/var/lib/couchbase/data -u Administrator -p password

      As per the documentation, the cluster URL specifies the following:

       

      -c --cluster
      Specifies the hostname of a node in the cluster. See the HOST FORMATS section for more information on specifying a hostname.
      

       

      This option is causing a confusion with respect to the value that needs to be passed to it.

      The expected value that needs to be passed to this argument "-c / --cluster" during a node initialization, is the IP address of the node on which the node initialization takes place. However, this argument causes a confusion where "-c"/"–cluster" can even denote the cluster URL of an existing cluster to which this node needs to be added.

      The server-add command also has the same command line argument "-c / --cluster" that expects the cluster URL of an existing cluster to which a node has to be added.

      For node-init command, the description for the "-c / --cluster" should be changed to mention that the value that needs to be passed to this argument is the IP Address of the node on which the node initialization has to be performed.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              pvarley Patrick Varley (Inactive)
              sindhura.palakodety Sindhura Palakodety (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty