Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

draiwn's picture
Asked 6 days 10 hours ago
Latest activity 5 days 19 hours ago

[Solved] Jar conflict with Couchbase inside Spark Streaming job

Hi,

Couchbase Java SDK 1.4.4 uses netty 3.5.5 as dependency but Spark uses Akka Actor which uses netty with a different version.
Does anyone have an idea to solve this jar conflict issue?

Here below the stack strace inside Spark:

...
atomsymbol's picture
Asked 6 days 19 hours ago
Latest activity 1 day 15 hours ago

Java - Binary keys

Hi,

keys in my database are 8-byte binary numbers. I used Couchbase C SDK to insert key-value pairs into the database. Now I would like to retrieve the inserted values by using the Java SDK, but the Java SDK only allows keys of type String. How do I create String keys from 8-byte binary...

sunchen's picture
Asked 1 week 3 days ago

Exception when using scala to call java sdk,and run with Spark

I write some very simple Scala codes followed,these codes make a Spark job,and write something into Couchbase. But when I run this job on Spark,I got an exception.I am wondeing how this happend.
Something must be pointed, if I don't use Spark , the code can work.

CODE LIST:...

witbrock's picture
Asked 1 week 4 days ago
Latest activity 1 week 4 days ago

Maven Dependency with Netbeans 8 doesn't construct correct run classpath

I'm trying the HelloWorld file, and it fails to run
because
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/jettison/json/JSONException

Looking at the IDE's classpath for the HelloWorld class and comparing it with the explicit path in the tutorial, I...

isanfulia's picture
Asked 2 weeks 6 days ago

Querying Views using a POST request instead of GET (key limit)

Hi all,

I was trying to query view with many keys(around 20K) using the Java api but this results in exception. The reason I think is because the query is fired as a GET request which has the limit on the number of characters in the URL. Is there a way to do a POST request on view using...

sivailango.s's picture
Asked 3 weeks 17 hours ago

Sort by particular field rather than key

Hi,

- I have the documents which has 'order' field. I have to get all records sort by order field.
- User id 3 has more document like below, each has 'order'. Now i want to get all documents by the userId with sort by order. Now i could get all documents of userId is 3....

avinash786's picture
Asked 3 weeks 5 days ago

Java sdk apis

I need to get all the buckets through java sdk but there is no way to get it.
I know there are ways to get all the buckets through rest APIs.
I just wanted to know , is there any specific reason for not providing the apis for it?
Same applies to get the design document as well...

avinash786's picture
Asked 3 weeks 5 days ago
Latest activity 3 weeks 4 days ago

Couchbase java sdk 2.0.0

Hi Folks,

What is the tentative date to release/beta java sdk 2.0.0. I am eagerly waiting for it.

Regards,
Avinash

taraka's picture
Asked 4 weeks 1 day ago
Latest activity 4 weeks 13 hours ago

com.couchbase.client.vbucket.BucketUpdateResponseHandler exceptionCaught: Connection reset by peer

Hello,

I have a "connection reset" problem after connecting to couchbase through Java Couchbase client.

Our production configuration :
Tomcat server connecting to couchbase cluster (2 nodes) over firewall. All are hosted in rackspace.

First time it connects fine !!...

sumit_jain's picture
Asked 4 weeks 1 day ago
Latest activity 4 weeks 1 day ago

Update Design Document Java SDK

There are methods to create, get and delete design documents, but there is no update. How can I add new views to an existing design document.

Pages