Not able to connect to query port 8093 on 'queryEnabled(true)'

query
n1ql

#1

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.

#2

@vinod the queryEnabled setting was only needed for experimental N1QL support with the external cbq-query component. Now all you need to do is download the 4.0 RC0 release and the query engine will be found automatically. So you dont need to set that at all. Either use 3.0 features without N1QL or try it out by using 4.0 RC0


#3

@daschl, I am working on 3.0.1 and can’t use 4.0 RC0 at this moment.
Could you please guide me run N1QL with my existing setup?


#4

@vinod the whole cbq-engine thing was experimental and not meant to be used in production. Since the 4.0 builds shipped, we discontinued the individual query components. You can use the old ones, but I would not recommend that.