You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Boris Spasojevic <bo...@epfl.ch> on 2010/07/09 11:50:22 UTC

new node can't find seed node

Hi,

I am attempting to add a new node to a single node already running. 
I have set the first node not to bootstrap, and the second node to
bootstrap whit the first node as it's seeder. The IP configuration is
OK, the machines can ping each other, the seed machine (or should I say
cassandra running on the seed machine) is listening on the port 7000.
Wen I run my second node I get



INFO 11:44:07,933 Auto DiskAccessMode determined to be standard
INFO 11:44:08,284 Saved Token not found. Using
158934030741300235018786336281007527329
INFO 11:44:08,285 Saved ClusterName not found. Using VMCluster
 INFO 11:44:08,293 Creating new commitlog
segment /var/lib/cassandra/commitlog/CommitLog-1278668648293.log
 INFO 11:44:08,425 LocationInfo has reached its threshold; switching in
a fresh Memtable at
CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1278668648293.log', position=416)
 INFO 11:44:08,430 Enqueuing flush of Memtable-LocationInfo@22885256(166
bytes, 4 operations)
 INFO 11:44:08,432 Writing Memtable-LocationInfo@22885256(166 bytes, 4
operations)
 INFO 11:44:08,759 Completed
flushing /var/lib/cassandra/data/system/LocationInfo-1-Data.db
 INFO 11:44:08,812 Starting up server gossip
 INFO 11:44:08,863 Joining: getting load information
 INFO 11:44:08,863 Sleeping 90000 ms to wait for load information...
INFO 11:45:38,866 Joining: getting bootstrap token
ERROR 11:45:38,870 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.java: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.java: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.java: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.java:115)
	at
org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:211)


Any ideas? I have attached the storage-conf.xml of the second node,
because i think that that is the most likely place I could have made a
mistake.

Thanks a lot!

BoriS

Re: new node can't find seed node

Posted by Dimitry Lvovsky <di...@reviewpro.com>.
Sounds like maybe your not binding the 7000 port to the correct interface, maybe you have it set to localhost, rather then the IP address.  If you want to confirm, try prompt> telnet [machine ip] 7000 
If you get a connection refused, then the above is true.

Hope this helps.

Dimitry Lvovsky
Director of Engineering
www.reviewpro.com


On Jul 9, 2010, at 11:50 AM, Boris Spasojevic wrote:

> Hi,
> 
> I am attempting to add a new node to a single node already running. 
> I have set the first node not to bootstrap, and the second node to
> bootstrap whit the first node as it's seeder. The IP configuration is
> OK, the machines can ping each other, the seed machine (or should I say
> cassandra running on the seed machine) is listening on the port 7000.
> Wen I run my second node I get
> 
> 
> 
> INFO 11:44:07,933 Auto DiskAccessMode determined to be standard
> INFO 11:44:08,284 Saved Token not found. Using
> 158934030741300235018786336281007527329
> INFO 11:44:08,285 Saved ClusterName not found. Using VMCluster
> INFO 11:44:08,293 Creating new commitlog
> segment /var/lib/cassandra/commitlog/CommitLog-1278668648293.log
> INFO 11:44:08,425 LocationInfo has reached its threshold; switching in
> a fresh Memtable at
> CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1278668648293.log', position=416)
> INFO 11:44:08,430 Enqueuing flush of Memtable-LocationInfo@22885256(166
> bytes, 4 operations)
> INFO 11:44:08,432 Writing Memtable-LocationInfo@22885256(166 bytes, 4
> operations)
> INFO 11:44:08,759 Completed
> flushing /var/lib/cassandra/data/system/LocationInfo-1-Data.db
> INFO 11:44:08,812 Starting up server gossip
> INFO 11:44:08,863 Joining: getting load information
> INFO 11:44:08,863 Sleeping 90000 ms to wait for load information...
> INFO 11:45:38,866 Joining: getting bootstrap token
> ERROR 11:45:38,870 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.java: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.java: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.java: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.java:115)
> 	at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:211)
> 
> 
> Any ideas? I have attached the storage-conf.xml of the second node,
> because i think that that is the most likely place I could have made a
> mistake.
> 
> Thanks a lot!
> 
> BoriS
> <storage-conf.xml>


Re: new node can't find seed node

Posted by Sasha Dolgy <sd...@gmail.com>.
server2 should be pointing to server1 after server1 is online and in
the logs is accepting thrift connections.  in what you've pasted
below, you show that server2 is connecting to server2 ... not server1.

-sd

On Tue, Apr 26, 2011 at 9:19 AM, Udit Khandelwal <ud...@gmail.com> wrote:
> Boris Spasojevic <boris.spasojevic <at> epfl.ch> writes:
>
>
> i have 2 machines , one windows and other linux. i am facing this issue. Could
> you please tell me how you solved it.
> Machine 1   OS listen_address thrift_address  seeds      JMX_PORT
>  server1    Xp  server1        server1         server1    8080
>  server2    linux server2      server2         server2    8082
>
>
> thanks in advance
> udit
>
>



-- 
Sasha Dolgy
sasha.dolgy@gmail.com

Re: new node can't find seed node

Posted by Udit Khandelwal <ud...@gmail.com>.
Boris Spasojevic <boris.spasojevic <at> epfl.ch> writes:


i have 2 machines , one windows and other linux. i am facing this issue. Could 
you please tell me how you solved it.
Machine 1   OS listen_address thrift_address  seeds      JMX_PORT
 server1    Xp  server1        server1         server1    8080
 server2    linux server2      server2         server2    8082


thanks in advance 
udit


Re: new node can't find seed node

Posted by Boris Spasojevic <bo...@epfl.ch>.
Solved it!

Sorry to spam your inbox!

BoriS

On Fri, 2010-07-09 at 11:50 +0200, Boris Spasojevic wrote:
> Hi,
> 
> I am attempting to add a new node to a single node already running. 
> I have set the first node not to bootstrap, and the second node to
> bootstrap whit the first node as it's seeder. The IP configuration is
> OK, the machines can ping each other, the seed machine (or should I say
> cassandra running on the seed machine) is listening on the port 7000.
> Wen I run my second node I get
> 
> 
> 
> INFO 11:44:07,933 Auto DiskAccessMode determined to be standard
> INFO 11:44:08,284 Saved Token not found. Using
> 158934030741300235018786336281007527329
> INFO 11:44:08,285 Saved ClusterName not found. Using VMCluster
>  INFO 11:44:08,293 Creating new commitlog
> segment /var/lib/cassandra/commitlog/CommitLog-1278668648293.log
>  INFO 11:44:08,425 LocationInfo has reached its threshold; switching in
> a fresh Memtable at
> CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1278668648293.log', position=416)
>  INFO 11:44:08,430 Enqueuing flush of Memtable-LocationInfo@22885256(166
> bytes, 4 operations)
>  INFO 11:44:08,432 Writing Memtable-LocationInfo@22885256(166 bytes, 4
> operations)
>  INFO 11:44:08,759 Completed
> flushing /var/lib/cassandra/data/system/LocationInfo-1-Data.db
>  INFO 11:44:08,812 Starting up server gossip
>  INFO 11:44:08,863 Joining: getting load information
>  INFO 11:44:08,863 Sleeping 90000 ms to wait for load information...
> INFO 11:45:38,866 Joining: getting bootstrap token
> ERROR 11:45:38,870 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.java: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.java: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.java: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.java:115)
> 	at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:211)
> 
> 
> Any ideas? I have attached the storage-conf.xml of the second node,
> because i think that that is the most likely place I could have made a
> mistake.
> 
> Thanks a lot!
> 
> BoriS