I am not able to connect to query port after making queryEnabled(true)
Code Snippet:
CouchbaseEnvironment env = DefaultCouchbaseEnvironment.builder()
.computationPoolSize(5)
.bootstrapHttpEnabled(true)
.bootstrapHttpDirectPort(8091)
.bootstrapCarrierDirectPort(11210)
.queryPort(8093)
.queryEnabled(true)
.build();
NOTE: I am using couchbase-server-community_3.0.1 edition
and java-client v 2.1.4
.
Exception:
[WARN] [null][QueryEndpoint]: Could not connect to endpoint, retrying with delay 32 MILLISECONDS:
java.net.ConnectException: Connection refused: no further information: localhost/127.0.0.1:8093
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_71]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739) ~[na:1.7.0_71]
at com.couchbase.client.deps.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:208) ~[core-io-1.1.4.jar:1.1.4]
at com.couchbase.client.deps.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:281) ~[core-io-1.1.4.jar:1.1.4]
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528) [core-io-1.1.4.jar:1.1.4]
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [core-io-1.1.4.jar:1.1.4]
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [core-io-1.1.4.jar:1.1.4]
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [core-io-1.1.4.jar:1.1.4]
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [core-io-1.1.4.jar:1.1.4]
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [core-io-1.1.4.jar:1.1.4]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
[DEBUG] Received signal for outdated configuration.