Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.6.x

Export All Keys

3 replies [Last post]
  • Login or register to post comments
Wed, 12/15/2010 - 08:38
marcusadolfsson
Offline
Joined: 12/15/2010
Groups: None

Can someone give me a pointer on how I could use the TAP interface to export all the keys from a membase cluster? We are trying to write some code to selectivly invalidate keys but need the export so we can loop through them.

Top
  • Login or register to post comments
Wed, 12/15/2010 - 17:14
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

you can use the following command:

/opt/membase/bin/ep_engine/management/tap.py host:port
 
This will give you data from the default bucket. Specifying a particular bucket is not supported in the current release.
 
 
Thanks
Bhawana

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
  • Login or register to post comments
Thu, 12/16/2010 - 13:48
marcusadolfsson
Offline
Joined: 12/15/2010
Groups: None

Thanks for the response. Executing the code I get a python error. No luck googling for clues.

/opt/membase/bin/ep_engine/management/tap.py 127.0.0.1:11210

info: New bin connection from None
error: uncaptured python exception, closing channel <__main__.TapConnection connected at 0x7d70e0> (<type 'exceptions.AssertionError'>: [/usr/lib64/python2.6/asyncore.py|read|76] [/usr/lib64/python2.6/asyncore.py|handle_read_event|416] [/opt/membase/1.6.0.1/bin/ep_engine/management/mc_bin_server.py|handle_read|325])

We only have one bucket, but I am guessing it is not the "default" bucket.

Bucket Name: store_cache
Bucket Type: Membase
Access Control: Port: 11212

Top
  • Login or register to post comments
Thu, 12/16/2010 - 15:08
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

Hello,

The tap.py doesn't yet support buckets other than default. There is a jira issue about it open.

 

http://jira.membase.org/browse/MB-2725

 

Thanks

Bhawana

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker