Search:

Search all manuals
Search this manual
Manual
Membase Manual 1.7
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
4.2 Membase Command-line Interface
Chapter Sections
Chapters

4.2.6. mbvbuckettool Tool

Usage:

/opt/membase/bin/mbvbuckettool mapfile key0 [key1 ... keyN]

The mbvbuckettool expects a vBucketServerMap JSON mapfile, and will print the vBucketId and servers each key should live on. You may use '-' instead for the filename to specify stdin.

Examples:

mbvbuckettool file.json some_key another_key

Or

curl http://host:8091/pools/default/buckets/default | mbvbuckettool - some_key another_key

An example of running it with output:

curl http://127.0.0.1:8091/pools/default/buckets/default | mbvbuckettool - some_key another_key
key: some_key vBucketId: 260 master: http://127.0.0.1:11210/ replicas:
key: another_key vBucketId: 1022 master: http://127.0.0.1:11210/ replicas: