Details
-
Task
-
Resolution: Duplicate
-
Major
-
None
-
5.5.0
-
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
- duplicates
-
MB-29793 node-init "-c" / "--cluster " command line argument can cause confusion with respect to the value that needs to be provided to it.
- Open