I'm trying to use the Java SDK to write a simple query but no matter what I try, it always times out with the following exception
java.util.concurrent.TimeoutException
at com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:93)
at com.couchbase.client.java.CouchbaseBucket.query(CouchbaseBucket.java:510)
CouchbaseCluster cluster = CouchbaseCluster.create(myServerAddress);
Bucket bucket = cluster.openBucket("beer-sample", 10, TimeUnit.MINUTES);
ViewResult result = bucket.query(ViewQuery.from("beer", "by_name").limit(1), 10, TimeUnit.MINUTES);
What am I doing wrong? I feel like I'm missing something simple.
I appreciate any help.
Bill