execute command with node-init-data-path , path is not changing
when i am trying to initialize the node with the data path as "/app/couchbase/data" instead of default data path "/opt/couchbase/var/lib/couchbase/data",
node is getting initialized successfully but path is not changing.
Command is :
shell> couchbase-cli cluster-init –c localhost –u Administrator –p password
--cluster-init-username=Administrator –-cluster-init-password=password –-cluster-init-ramsize=256 –-node-init-data-path=/app/couchbase/data
Output:
SUCCESS: init localhost
Could you please help me why my node-init-data-path is still default path .
Hi Mikew,
Thanks for the response.
This node is not already set up.
To recheck again i have installed couchbase server on new server .
1.Install couchbase-server
sudo rpm –-install couchbase-server-community_x86_64_1.8.1.rpm
once i ran above command (installing couchbase server) itself couchbase server default path is being created - /opt/couchbase/var/lib/couchbase/data
2.Initialize the cluster:
shell> couchbase-cli cluster-init –c localhost –u Administrator –p password --cluster-init-username=Administrator –-cluster-init-password=password –-cluster-init-ramsize=256 –-node-init-data-path=/app/couchbase/data
path is still the same default one.
Working fine when i use curl command : shell > curl -uAdministrator:password -d path=/app/couchbase/data http://localhost:8091/nodes/self/controller/settings
Through command line it's not working.
Could you please check .
Has this node already been set up? I'm pretty sure that you can't change the data path once it's set.