Using Win7 host, Ubuntu 14.04 LTS guest, VM Player4.0 and Datastax 4.8.11 Cassandra 2.1.17
My application on the same VM is unable to connect to a service running on the same VM. Everything was working fine but suddenly not. It is a Cassandra service and the service is up and running- I can see nothing in the logs. cqlsh unable to connect to server. I am successfully starting dse and datastax-agent and they are all running fine, including cassandra. The error is:
ubuntu:~$ cqlsh Connection error: ('Unable to connect to any servers', {'192.168.254.143': error(113, "Tried connecting to [('192.168.254.143', 9042)]. Last error: No route to host")}
Tried rebooting VM and my VM Player also, also tried below but did not help
$ sudo service network-manager restart
@ubuntu:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0c:29:0f:c0:d4
inet addr:192.168.254.145 Bcast:192.168.254.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe0f:c0d4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1152 errors:0 dropped:0 overruns:0 frame:0
TX packets:887 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:803063 (803.0 KB) TX bytes:156336 (156.3 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:546 errors:0 dropped:0 overruns:0 frame:0
TX packets:546 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:61405 (61.4 KB) TX bytes:61405 (61.4 KB)
@ubuntu:~$ sudo netstat -anp|grep 9042
[sudo] password for xxxxx:
@ubuntu:~$
No output
l@ubuntu:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.254.2 0.0.0.0 UG 0 0 0 eth0
192.168.254.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
Thanks
(posted on stack overflow did not get response trying here - sorry for duplicate)