Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Developer Guide 2.0
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
8.5 Managing Couchbase Nodes
Chapter Sections
Chapters

8.5.3. Configuring Index Path for a Node

The path for the index files can be configured through the use of the index_path parameter:

Example as follows:

shell> curl -X POST -u admin:password \
    -d index_path=/var/tmp/text-index \
    http://localhost:8091/nodes/self/controller/settings

As a raw HTTP request:

HTTP Request
POST /nodes/self/controller/settings HTTP/1.1
Host: localhost:8091
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Authorization: Basic YWRtaW46YWRtaW4=
Content-Length: xx path=/var/tmp/test

The HTTP response will contain the response code and optional error message:

HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0

As of Couchbase Server 2.0.1 if you try to set the data path at this endpoint, you will receive this error:

ERROR: unable to init 10.3.4.23 (400) Bad Request
{u'error': u'Changing data of nodes that are part of provisioned cluster is not supported'}