我在couchbase bucket 'SAMPLE'里面创建了json文档'test',它是远程的 . couchbase的URL是http://testcouch.employee.com:8091/index.html - IP是124.10.0.2
沙发用户名:helloUser
沙发密码:helloUser
Connection.java
static CouchbaseEnvironment couchbaseEnvironment = DefaultCouchbaseEnvironment.builder()
.queryTimeout(10000)
.build();
static Cluster cluster = CouchbaseCluster.create(couchbaseEnvironment,"http://testcouch.employee.com");
static Bucket bucket = cluster.openBucket("SAMPLE","helloUser++");
尝试连接时遇到以下错误:
警告:[null] [KeyValueEndpoint]:无法连接到 endpoints ,重试延迟32 MILLISECONDS:com.couchbase.client.core.endpoint.kv.AuthenticationException:com.couchbase.client.core.endpoint.kv上的身份验证失败.KeyValueAuthHandler.checkIsAuthed(KeyValueAuthHandler.java:288)at com.couchbase.client.core.endpoint.kv.KeyValueAuthHandler.channelRead0(KeyValueAuthHandler.java:173)