Connect to C* instance inside virtualbox

2014-12-22 Thread Kai Wang
I installed C* in virtualbox via vagrant. Both 9160 and 9042 ports are forwarded from guest to host. I can telnet to those two ports from host to guest. But from my host, I can't connect to C* using cassandra-cli or cqlsh. My host is Windows 7 64bit and guest is CentOS 6.5. Is there anything

Re: Connect to C* instance inside virtualbox

2014-12-22 Thread Ryan Svihla
what is rpc_address set to in cassandra.yaml? my gut is localhost, set it to the interface that communicates between host and guest. On Mon, Dec 22, 2014 at 3:38 PM, Kai Wang dep...@gmail.com wrote: I installed C* in virtualbox via vagrant. Both 9160 and 9042 ports are forwarded from guest to

Re: Connect to C* instance inside virtualbox

2014-12-22 Thread Kai Wang
Ryan, it works! I saw this new config mentioned in Cassandra summit 2014 but didn't realize it applied in my case. Thanks. On Mon, Dec 22, 2014 at 4:43 PM, Ryan Svihla rsvi...@datastax.com wrote: what is rpc_address set to in cassandra.yaml? my gut is localhost, set it to the interface that

Re: Connect to C* instance inside virtualbox

2014-12-22 Thread Kai Wang
Ryan, Actually after I made the change, I was able to connect to C* from host but not from guest anymore. Is this expected? On Mon, Dec 22, 2014 at 8:53 PM, Kai Wang dep...@gmail.com wrote: Ryan, it works! I saw this new config mentioned in Cassandra summit 2014 but didn't realize it

Re: Connect to C* instance inside virtualbox

2014-12-22 Thread Ryan Svihla
totally depends on how the implementation is handled in virtualbox, I'm assuming you're connecting to an IP that makes sense on the guest (ie nodetool -h 192.168.1.100 and cqlsh 192.168.1.100, replace that ip with whatever what you expect)? On Mon, Dec 22, 2014 at 7:58 PM, Kai Wang

Re: Connect to C* instance inside virtualbox

2014-12-22 Thread Kai Wang
on the guest where C* is installed, I run cqlsh without any argument. When I enabled rpc_interface, cqlsh returned can't connect 127.0.0.1:9042. On Mon, Dec 22, 2014 at 9:01 PM, Ryan Svihla rsvi...@datastax.com wrote: totally depends on how the implementation is handled in virtualbox, I'm

Re: Connect to C* instance inside virtualbox

2014-12-22 Thread Ryan Svihla
if this helps..what did you change rpc_address to? On Mon, Dec 22, 2014 at 8:15 PM, Ryan Svihla rsvi...@datastax.com wrote: right that's localhost, you have to change it to match the ip of whatever you changed rpc_address too On Mon, Dec 22, 2014 at 8:07 PM, Kai Wang dep...@gmail.com wrote:

Re: Connect to C* instance inside virtualbox

2014-12-22 Thread Ryan Svihla
right that's localhost, you have to change it to match the ip of whatever you changed rpc_address too On Mon, Dec 22, 2014 at 8:07 PM, Kai Wang dep...@gmail.com wrote: on the guest where C* is installed, I run cqlsh without any argument. When I enabled rpc_interface, cqlsh returned can't

Re: Connect to C* instance inside virtualbox

2014-12-22 Thread Kai Wang
I might misread the comment but I thought I could only set rpc_interface or rpc_address but not both. So I didn't set rpc_addresa. Will double check tomorrow. Thanks. On Dec 22, 2014 9:17 PM, Ryan Svihla rsvi...@datastax.com wrote: if this helps..what did you change rpc_address to? On Mon, Dec

Re: Connect to C* instance inside virtualbox

2014-12-22 Thread Ryan Svihla
so what is the IP address of that interface? attempt to use cqlsh with whatever that address is, otherwise it will default to localhost. On Mon, Dec 22, 2014 at 8:55 PM, Kai Wang dep...@gmail.com wrote: I might misread the comment but I thought I could only set rpc_interface or rpc_address but