[ec2-user@myec2hostname ~]$ /opt/couchbase/bin/cbq
Couchbase query shell connected to http://localhost:8093/ . Type Ctrl-D to exit.
cbq> SELECT * FROM travel-sample LIMIT 10;
ERROR 100 : Unable to connect to query service http://localhost:8093/
cbq>
$ /opt/couchbase/bin/cbq
Couchbase query shell connected to http://localhost:8093/ . Type Ctrl-D to exit.
cbq> CREATE PRIMARY INDEX ON 'travel-sample' USING GSI;
ERROR 100 : Unable to connect to query service http://localhost:8093/
cbq>
I think I found the reason. In the admin console, only data service is listed whereas in my similar local setup data, index, and query services are listed.
Why are not index and query service activated even though they were selected in the initial setup of the AMI?
Was the server where it was not enabled an update or a fresh install? I think I saw similar in an upgrade scenario where only the data service was enabled post-install.