Hi all, 

(not sure if this is a Cassandra or Vagrant difficulty, so I'm starting 
here, sorry in advance if it's not appropriate)

I am failing to connect with cqlsh to a Cassandra DB installed on Ubuntu 
12.04 running on virtual-box 4.1.16 created/started through Vagrant 1.4.2. 

I have this issue with both Cassandra 1.2 and Cassandra 2. 

>From within the box, all is fine, Cassandra is running and I can access it: 

"
vagrant@precise64:~$ cqlsh
Connected to Test Cluster at localhost:9160.
[cqlsh 3.1.7 | Cassandra 1.2.11 | CQL spec 3.0.0 | Thrift protocol 19.36.1]
Use HELP for help.
"


I configured this port forwarding: 

"
   config.vm.network :forwarded_port, guest: 6627, host: 6627   # storm 
Nimbus Thrift port 
   config.vm.network :forwarded_port, guest: 7777, host: 7777   # storm UI
   config.vm.network :forwarded_port, guest: 2181, host: 2181   # zk
   config.vm.network :forwarded_port, guest: 7000, host: 7000   # Cassandra 
cluster
   config.vm.network :forwarded_port, guest: 9160, host: 9160   # Cassandra 
Thrift client
   config.vm.network :forwarded_port, guest: 9042, host: 9042   # Cassandra 
CQL client
   config.vm.network :forwarded_port, guest: 7199, host: 7199   # Cassandra 
jmx
"

as well as this: 


"
  config.vm.provider :virtualbox do |vb|
  vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
  end
"


Port forwarding for 7777 is successful: it's an http server I can access 
from a browser on my host. 

Starting cqlsh on the host machine however fails like this

"
$./cqlsh
Connection error: TSocket read 0 bytes
$./cqlsh localhost 9160
Connection error: TSocket read 0 bytes
"

It seems localhost 9160 is ok though since using another (incorrect) port 
yields another error: 


"
(alabs)Svends-iMac:bin svend$ ./cqlsh localhost 1234
Connection error: Could not connect to localhost:1234
"


A quick google mentions this is a "cassandra server side error", but no 
message appear on the cassandra log during my connection attempt. 


I suspect it might be related to this Cassandra config param: 

"
listen_address: localhost
"

But if so, what value to use instead? If not, where to look for error 
information?


Thanks a lot in advance for you help!





-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to