Tap dump of memcached bucket with SASL auth via Java SDK

91 views
Skip to first unread message

Kirill Safonov

unread,
Jan 13, 2014, 9:00:52 PM1/13/14
to couc...@googlegroups.com
Hi there,

We've got a Memcached bucket on port 11211 (SASL auth) on our Couchbase server. Is there any way we can do a TAP dump using Java API?

When using com.couchbase.client.TapClient an exception is thrown:
Exception in thread "main" java.lang.ClassCastException: com.couchbase.client.CouchbaseMemcachedConnection cannot be cast to com.couchbase.client.CouchbaseConnection
at com.couchbase.client.TapConnectionProvider.reconfigure(TapConnectionProvider.java:90)
at com.couchbase.client.vbucket.ReconfigurableObserver.update(ReconfigurableObserver.java:54)
at java.util.Observable.notifyObservers(Observable.java:142)
at com.couchbase.client.vbucket.BucketMonitor.setBucket(BucketMonitor.java:277)
at com.couchbase.client.vbucket.BucketMonitor.startMonitor(BucketMonitor.java:216)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.subscribe(ConfigurationProviderHTTP.java:340)
at com.couchbase.client.TapConnectionProvider.<init>(TapConnectionProvider.java:76)
at com.couchbase.client.TapConnectionProvider.<init>(TapConnectionProvider.java:61)
at com.couchbase.client.TapClient.tapDump(TapClient.java:300)
....

On the other hand net.spy.memcached.TapClient does not seem to accept the password that is required to connect to the bucket.

Thanks,
 Kirill

Kirill Safonov

unread,
Jan 19, 2014, 2:30:38 AM1/19/14
to couc...@googlegroups.com
Hi!

Can anyone please help?

Kirill

Aliaksey Kandratsenka

unread,
Jan 19, 2014, 2:38:28 AM1/19/14
to couc...@googlegroups.com
On Sat, Jan 18, 2014 at 11:30 PM, Kirill Safonov <kirill....@gmail.com> wrote:
Hi!

Can anyone please help?

memcached buckets do not support tap. At all.

Kirill Safonov

unread,
Jan 19, 2014, 2:39:47 AM1/19/14
to couc...@googlegroups.com
Thanks Aliaksey,

Is there any way we can dump all the keys/values in the bucket?

Kirill

--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/couchbase/dyiSk9D3Jk0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to couchbase+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Michael Nitschinger

unread,
Jan 19, 2014, 9:33:42 AM1/19/14
to couc...@googlegroups.com
I don't think there is a way to do this, you'd have to use couchbase buckets and a view, ideally.

And Aliaksey is right, TAP is only supported for couchbase buckets right now (and so does the couchbase java sdk!)

Michael Nitschinger

unread,
Jan 19, 2014, 10:28:29 AM1/19/14
to couc...@googlegroups.com
Oh, one more note.. TAP in general is not officially supported at all (from the client side), the couchbase java implementation is currently "best effort" and has some known limitations.

Kirill Safonov

unread,
Jan 19, 2014, 10:59:19 AM1/19/14
to couc...@googlegroups.com
Thanks Mike!
Reply all
Reply to author
Forward
0 new messages