Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

haroonlatif's picture
Asked 3 days 19 hours ago
Latest activity 20 hours 1 min ago

Unable to connect to CB server from virtual linux machine

CB Server: 2.5.0 enterprise edition (build-1059)
CB Java SDK: 1.2.3
i have checked on host machine following ports are open.
8091, 8092, 11211, 11210, 11209

I am developing hadoop map reduce job and trying to insert from reducer. currently i am just trying to insert 2...

sarbogast's picture
Asked 4 days 58 min ago
Latest activity 3 days 21 hours ago

Is it possible to track document changes on Sync gateway?

I would like to be able to track document changes on sync gateway in order to trigger some actions like sending an email or a push notification when documents are changed in certain ways. Is it possible to do that in Java using Ektorp or some other library or am I doomed to track the raw stream...

craig's picture
Asked 4 days 7 hours ago

Using "auth-less" bucket, but still see SASL related messages including AuthFailure

I'm using a bucket configured w/ a dedicated port. According to the Couchbase Server UI, this type of bucket is auth-less. However, when I turn up the log level, connect and try to execute some simple operations (GET for instance), I see SASL related log messages. Sometimes I even get...

adelavina's picture
Asked 5 days 9 hours ago

Problem with compression client side

Hi,
I have the following problem:

I'm developping a java app that iterates over a view and evaluates every key to perform some operations with it.
Everything went smooth until the first production run where I got the follwoing:

2014-08-25 17:57:23.732 WARN net.spy....

draiwn's picture
Asked 2 weeks 3 days ago
Latest activity 3 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 2 weeks 3 days ago
Latest activity 1 week 5 days 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 3 weeks 17 hours 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 3 weeks 1 day ago
Latest activity 3 weeks 1 day 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 1 month 1 day 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 1 month 2 days 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....

Pages