Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

winstonwaite's picture
Asked 3 months 1 week ago
Latest activity 1 week 6 days ago

Java client not aware of failed over node under certain circumstances

This is similar to

This is using the 1.4.2 java client.

If I failover from the admin...'s picture
Asked 3 months 1 week ago

Java Bulk add

Does Couchbase support bulk add in a similar manner as CouchDB?

In other words, I would like to update a Couchbase bucket with a List of json objects,
each representing a different document.


swami's picture
Asked 3 months 1 week ago

Java client (1.4.1) taking long to receive configuration updates after fail over

I am using Couchbase server 2.2 and Java client 1.4.1

I have 3 nodes in my cluster. I am doing fail over testing by bring down one of the nodes.

Use iptables to prevent the node from being seen to other machines

Script as below

CB_PORTS=$(sudo netstat -lptun | egrep -...

raycardillo's picture
Asked 3 months 2 weeks ago

Cannot seem to access "Full Set" of a Development View

It looks like some SDKs can request "full_set=true" but I cannot seem to find it anywhere in the Java SDK. There is nothing on the View or Query class from what I see. As a result, I cannot test against Development Views before they're ready for Production. It's easy to do through the REST...

Rajans's picture
Asked 3 months 3 weeks ago

Multiple Couchbase/Resubscriber threads when restarting couchbase

There are 2 Couchbase/Resubscriber threads running when couch-base is up & running, if the couch-base is restarted 2 more Couchbase/Resubscriber threads started running & 2 old one remains there & it seems like there can be multiple threads running simultaneously.. now the problem...

dwen77's picture
Asked 3 months 3 weeks ago

Aynchronous Set in JAVA Client

The aynchronous set method returns a OperationFuture object.
We can use get method of this object to get the result of the operation and the method is a block method. It waits until the operation sends back the response.

But, when the get method returns if we set the PersistTo.TWO?...

thangarajan's picture
Asked 3 months 3 weeks ago
Latest activity 3 months 3 weeks ago

MySQL to Hadoop Migration

Hi All,

I am new to Big Data. now i have one task that i have to migrate my table(s) from MySQL to Hadoop using java client can anyone help me please. I need the flow too.

bahaaldine's picture
Asked 3 months 3 weeks ago
Latest activity 3 months 3 weeks ago

Avoiding shutting down couchbase java client


Is there a way to reuse a couchbase java client connection? I always have to shutdown the connection when making queries in for loop, otherwise I get an out of memory.

Shutting down the connection each time is just inefficient in my use case

Thanks for your help !

ohassidi's picture
Asked 3 months 4 weeks ago
Latest activity 3 months 3 weeks ago

Write a List of documents to couchbase


Is there to write a bulk of documents to couchbase?
For example a list of documents in the form:

    "users": [
            "name": "x",
            "address": "y
dengberg's picture
Asked 4 months 3 days ago
Latest activity 3 months 3 weeks ago

Java client occasionally leaks (non-daemon) netty IO threads after shutdown

We're using CouchbaseClient v1.4 from a Java server with moderately high concurrency.
When we shutdown the Couchbase client, it usually comes down cleanly, but we occasionally see lingering Netty threads: