last day (15 days later) » 

4:15 PM
0
Q: couchbase where can I execute cbq command

RE RE RE REI have a couchbase server and I want to connect to it from my query engine. I asked a lot and I found that I have to use this command ./cbq-engine -couchbase http://--couchbase-server-name--:8091/ regarding that I have many questions about that command, like where should I put the username a...

 
What query engine is that? Couchbase has got a lot client SDK:s for many platforms.
 
@folkol yes I know and I am already using the skd for pythong and java but i am asking about querying my server like the n1q1 does with its data using browser. got me please? if not please check my previous question
 
Couchbase has got a GUI, by default on port :8091, you can use that to inspect the documents (And more).
Also, I think that you can specify the username and password in the URL. Like myuser:mypass@servername:8091. That works with the command line tool at least.
 
@folkol but I can't use that to query my document on my server, right? that 8091 is for document on localhost on data folder, not for real data on my server witch is a couchbase server online
 
You will have to browse port :8091 on one of the servers in the cluster, yes.
 
4:15 PM
@folkol do you mean editing the start_tutorla.bat to include the username and password? and what about my online server please?
 
I have not used Couchbase on windows, but with a unix environment, you open a browser and go to "server_url":8091
If that port is behind a firewall, you have to gain access somehow. Either through a ssh tunnel, if you have ssh access, or by asking the administrator to open that port in the firewall.
 
please focus with me
 
(This holds whether you use a browser of the command line tool)
 
that is the same for windows
 
Yeah ok
 
4:17 PM
but I don't want to query the local data
 
No, I understand that.
 
I want to query the data on my online server
 
But it works the same on a remote server.
 
I have bought a couchbase server on amazon website and I must query it
how ?
 
Ok
 
4:18 PM
how can I specifiy the server that I want to query?
 
I have only used the SDK and the Browser GUI for Couchbase, so I do not know about that tool of yours.
Do you have ssh access to your couchbase computer?
 
so you are saying that I should use python toquery my server right?
yes I do
do you imply to use Rutty?
 
I work with Unix, so I do not know what tools you have available on a Windows computer. What I could do is to open "serverip:8091" in a browser and see if that port is open.
 
let me check
 
If it is, log in there and do whatever you have to do. If that port is NOT open, I would open a ssh tunnel to that computer (ssh -L 8091:localhost:8091 myuser@serverip -N) and then open the browser on localhost.
And if I do not have ssh access, I would ask the computer admin for access either way.
 
4:23 PM
serverip:8091 does't work and I should have supposed that, actually I have bought a server node on a server so I just have access to the node, plus I do have the ssl credentials but I dont' know exactly how to use them.
I guess I will go back to query the server from a programming language
 
You do that. But you will have to sort out how to administrate the installation somehow anyway. And the GUI is a good way of doing that.
What elastic cloud are you using? Amazon?
 
yes
u?
 
I am not hosting anything myself, but we have an OpenStack cloud in house where I work.
 
It is the time for leaving the office, I guess we can chat again after 3 or 4 hours if you available
appreciate the efforts
Bye
 
Bye, and good luck!
 

last day (15 days later) »