It maybe easier to manage virtualbox using vagrant ( http://www.vagrantup.com/ ).
I am going to assume eth0 from your ifconfig output is a dhcp/dynamic IP address thats going to change every time you halt/start your virtualbox instance. Virtualbox is far outside the scope of C* so I'd recommend checking out the manual on Virtualbox networking http://www.virtualbox.org/manual/ch06.html plus using a dynamic IP for c* will probably yield undesirable results. On Thu, Aug 8, 2013 at 2:51 PM, kohanm <kohan.mass...@gmail.com> wrote: > Hi Dave > Can you tell me more specific. > Thanks, > Here are ifconfig: > > ifconfig > eth0 Link encap:Ethernet HWaddr 08:00:27:00:32:0c > inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 > inet6 addr: fe80::a00:27ff:fe00:320c/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:6564 errors:0 dropped:0 overruns:0 frame:0 > TX packets:5588 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:5649530 (5.6 MB) TX bytes:1069524 (1.0 MB) > > 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:16436 Metric:1 > RX packets:20 errors:0 dropped:0 overruns:0 frame:0 > TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:1136 (1.1 KB) TX bytes:1136 (1.1 KB) > > > > On Thu, Aug 8, 2013 at 1:04 PM, David Ward <da...@shareablee.com> wrote: > >> 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) >>> >>> >> > > > -- > Massoud