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

Dump all keys from a bucket

1 reply [Last post]
  • Login or register to post comments
Fri, 02/24/2012 - 03:03
j99
Offline
Joined: 02/24/2012
Groups: None

I was googling around and found various python + tap solutions that should enable me to dump all keys from a bucket but none of them worked for me. I have a bucket at port 11230 and I need to get a dump of all keys in order to fill them into sphinx search engine.

If I execute:

# python /opt/couchbase/lib/python/tap_example.py 127.0.0.1:11230

I get the following output:

info: New bin connection from None
error: uncaptured python exception, closing channel <tap.TapConnection connected at 0x7f5d287184d0> (<type 'exceptions.AssertionError'>: [/usr/lib/python2.6/asyncore.py|read|78] [/usr/lib/python2.6/asyncore.py|handle_read_event|428] [/opt/couchbase/lib/python/mc_bin_server.py|handle_read|325])

this error is the same even if I try some other host or port. I also tried many other python scripts that I found on forums and groups but all of them produced the same error.

My primary development environment includes PHP & Perl on Debian linux box but I will take any solution that would just dump all the keys into plain text file.

Thank you for any help!

Top
  • Login or register to post comments
Fri, 03/02/2012 - 20:34
mikew
Offline
Joined: 03/14/2011
Groups:

I haven't given this a try, but I filed a bug so someone will take a look at this issue.

http://www.couchbase.com/issues/browse/PYCBC-22

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