What does ifconfig say? use eth0 or eth1's IP or whatever is static. And on that note, setup a static IP ( versus dhcp based ) it will make stopping/starting easier.
On Thu, Aug 8, 2013 at 2:01 PM, kohanm <kohan.mass...@gmail.com> wrote: > Thanks Rob. > Now I am getting listen_address in cassandra.yaml errors > I mentioned before the Cassandra runs on VM VitualBox on windows 7 > machine. > On the ERROR text I changed the real ip address to "MymachineIP". > What should I put on the* listen_address:* in *cassandra.yaml* file? > Thanks. > > short output: > > INFO 12:55:45,372 Cassandra version: 1.2.8 > INFO 12:55:45,382 Thrift API version: 19.36.0 > INFO 12:55:45,382 CQL supported versions: 2.0.0,3.0.5 (default: 3.0.5) > INFO 12:55:45,677 Loading persisted ring state > INFO 12:55:45,696 Starting up server gossip > INFO 12:55:45,861 Enqueuing flush of Memtable-local@28263177(251/251 > serialized/live bytes, 9 ops) > INFO 12:55:45,866 Writing Memtable-local@28263177(251/251 > serialized/live bytes, 9 ops) > INFO 12:55:45,961 Completed flushing > /var/lib/cassandra/data/system/local/system-local-ic-18-Data.db (240 bytes) > for commitlog position ReplayPosition(segmentId=1375991740291, > position=53949) > INFO 12:55:46,663 GC for Copy: 292 ms for 1 collections, 7605200 used; > max is 253558784 > ERROR 12:55:46,994 Fatal configuration error > org.apache.cassandra.exceptions.ConfigurationException: Unable to bind to > address /MymachineIP:7000. Set listen_address in cassandra.yaml to an > interface you can bind to, e.g., your private IP address on EC2 > at > org.apache.cassandra.net.MessagingService.getServerSocket(MessagingService.java:444) > at > org.apache.cassandra.net.MessagingService.listen(MessagingService.java:390) > at > org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:589) > at > org.apache.cassandra.service.StorageService.initServer(StorageService.java:554) > at > org.apache.cassandra.service.StorageService.initServer(StorageService.java:451) > at > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:348) > at > org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:447) > at > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:490) > Unable to bind to address /MymachineIP:7000. Set listen_address in > cassandra.yaml to an interface you can bind to, e.g., your private IP > address on EC2 > Fatal configuration error; unable to start server. See log for stacktrace. > ERROR 12:55:47,059 Exception in thread > Thread[StorageServiceShutdownHook,5,main] > java.lang.NullPointerException > at > org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:321) > at > org.apache.cassandra.service.StorageService.shutdownClientServers(StorageService.java:370) > at > org.apache.cassandra.service.StorageService.access$000(StorageService.java:88) > at > org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:519) > at > org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) > at java.lang.Thread.run(Thread.java:662) > >