I know on a mac you need to explicitly create an alias for 127.0.0.2 before it can be used. Maybe something similar applies to Windows.
On Fri, Jul 23, 2010 at 11:36 AM, Alaa Zubaidi <alaa.zuba...@pdf.com> wrote: > Hi, > > I am new to Cassandra, and I want to create a 2 node cluster on the SAME > machine running windows for testing my application before we get new > hardware. > I am facing "No other nodes seen! Unable to bootstrap" > The first node starts successfully while the second node gives me the error. > All ports are open and the firewall is off. > > I changed cassandra.bat for the 2node (transport=dt_socket address=8889 and > jmxremote.port=8081) > Attached is the config file for the second node---> > Here are some configuration for the second node: > <AutoBootstrap>true</AutoBootstrap> > ... > <Seeds> > <Seed>127.0.0.1</Seed> > </Seeds> > ... > <ListenAddress>127.0.0.2</ListenAddress> > <!-- internal communications port --> > <StoragePort>7000</StoragePort> > ... > <ThriftAddress>127.0.0.2</ThriftAddress> > <!-- Thrift RPC port (the port clients connect to). --> > <ThriftPort>9160</ThriftPort> > > Here are some configuration for the Fist node: > <AutoBootstrap>true</AutoBootstrap> > ... > <Seeds> > <Seed>127.0.0.1</Seed> > </Seeds> > ... > <ListenAddress>127.0.0.1</ListenAddress> > <!-- internal communications port --> > <StoragePort>7000</StoragePort> > ... > <ThriftAddress>127.0.0.1</ThriftAddress> > <!-- Thrift RPC port (the port clients connect to). --> > <ThriftPort>9160</ThriftPort> > > > Here is the actual output when I try to start the second node: > C:\development\Cassandra\Node2\bin>cassandra.bat -f > Starting Cassandra Server > Listening for transport dt_socket at address: 8889 > INFO 11:07:26,156 Auto DiskAccessMode determined to be standard > INFO 11:07:26,437 Sampling index for > D:\Cassandra\node2\data\system\LocationInf > o-1-Data.db > INFO 11:07:26,546 Replaying > D:\Cassandra\node2\commitlog\CommitLog-127990614678 > 1.log > INFO 11:07:26,562 Finished reading > D:\Cassandra\node2\commitlog\CommitLog-12799 > 06146781.log > INFO 11:07:26,562 Log replay complete > INFO 11:07:26,625 Saved Token found: > 163146947600437170198195869670086589920 > INFO 11:07:26,625 Saved ClusterName found: Test Cluster > INFO 11:07:26,625 Saved partitioner not found. Using > org.apache.cassandra.dht.R > andomPartitioner > INFO 11:07:26,625 Creating new commitlog segment > D:\Cassandra\node2\commitlog\C > ommitLog-1279908446625.log > INFO 11:07:26,640 LocationInfo has reached its threshold; switching in a > fresh > Memtable at > CommitLogContext(file='D:\Cassandra\node2\commitlog\CommitLog-127990 > 8446625.log', position=361) > INFO 11:07:26,640 Enqueuing flush of memtable-locationi...@10936489(95 > bytes, 2 > operations) > INFO 11:07:26,640 Writing memtable-locationi...@10936489(95 bytes, 2 > operations > ) > INFO 11:07:26,765 Completed flushing > D:\Cassandra\node2\data\system\LocationInf > o-2-Data.db > INFO 11:07:26,765 Starting up server gossip > INFO 11:07:26,796 Joining: getting load information > INFO 11:07:26,796 Sleeping 90000 ms to wait for load information... > INFO 11:08:56,796 Joining: getting bootstrap token > ERROR 11:08:56,843 Exception encountered during startup. > java.lang.RuntimeException: No other nodes seen! Unable to bootstrap > at > org.apache.cassandra.dht.BootStrapper.getBootstrapSource(BootStrapper > .java:120) > at > org.apache.cassandra.dht.BootStrapper.getBalancedToken(BootStrapper.j > ava:102) > at > org.apache.cassandra.dht.BootStrapper.getBootstrapToken(BootStrapper. > java:97) > at > org.apache.cassandra.service.StorageService.initServer(StorageService > .java:357) > at > org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.jav > a:115) > at > org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java > :211) > Exception encountered during startup. > java.lang.RuntimeException: No other nodes seen! Unable to bootstrap > at > org.apache.cassandra.dht.BootStrapper.getBootstrapSource(BootStrapper > .java:120) > at > org.apache.cassandra.dht.BootStrapper.getBalancedToken(BootStrapper.j > ava:102) > at > org.apache.cassandra.dht.BootStrapper.getBootstrapToken(BootStrapper. > java:97) > at > org.apache.cassandra.service.StorageService.initServer(StorageService > .java:357) > at > org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.jav > a:115) > at > org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java > :211) > > > > -- > Alaa Zubaidi > PDF Solutions, Inc. > 333 West San Carlos Street, Suite 700 > San Jose, CA 95110 USA > Tel: 408-283-5639 (or 408-280-7900 x5639) > fax: 408-938-6479 > email: alaa.zuba...@pdf.com -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com