You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Alaa Zubaidi <al...@pdf.com> on 2010/07/23 20:36:51 UTC

Failing to create a 2 Node cluster on a Windows machine

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-LocationInfo@10936489(95 
bytes, 2
 operations)
 INFO 11:07:26,640 Writing Memtable-LocationInfo@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.zubaidi@pdf.com 


Re: Failing to create a 2 Node cluster on a Windows machine

Posted by Alaa Zubaidi <al...@pdf.com>.
Thanks for the help,
I tried to create an alias for 127.0.0.2 but it did not work, so I 
created aliases for the DHCP IP and I tried it, the error disappeared, 
but I am not sure that it works the way I want it, I am checking to make 
sure that I have 2 nodes running not only one..

Thanks
 

Jonathan Ellis wrote:
> 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 <al...@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-LocationInfo@10936489(95
>> bytes, 2
>>  operations)
>>  INFO 11:07:26,640 Writing Memtable-LocationInfo@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.zubaidi@pdf.com
>>     
>
>
>
>   

-- 
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.zubaidi@pdf.com 



Re: Failing to create a 2 Node cluster on a Windows machine

Posted by Per Olesen <po...@trifork.com>.
On Jul 26, 2010, at 8:39 PM, Peter Schuller wrote:

>> Completely off topic from the list, but Jonathan do you (or others) by any means know how to create an alias for 127.0.0.2 on a mac? Cause I used 127.0.0.x on linux without a problem, but on my Mac, it seems to need some config to be able to bind to 127.0.0.2 etc.
> 
> sudo ifconfig lo0 add 127.0.0.2
> 

Cool. Seems to work fine. Thank u :-)


Re: Failing to create a 2 Node cluster on a Windows machine

Posted by Peter Schuller <pe...@infidyne.com>.
> Completely off topic from the list, but Jonathan do you (or others) by any means know how to create an alias for 127.0.0.2 on a mac? Cause I used 127.0.0.x on linux without a problem, but on my Mac, it seems to need some config to be able to bind to 127.0.0.2 etc.

sudo ifconfig lo0 add 127.0.0.2

(I have no idea how to do this "properly" on a Mac to make it persist
across reboots, nor can I speak to whether this confuses any of the
mac/system tools or anything. I just briefly tried it now.)

-- 
/ Peter Schuller

Re: Failing to create a 2 Node cluster on a Windows machine

Posted by Per Olesen <po...@trifork.com>.
On Jul 26, 2010, at 3:25 AM, Jonathan Ellis wrote:

> 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.

Completely off topic from the list, but Jonathan do you (or others) by any means know how to create an alias for 127.0.0.2 on a mac? Cause I used 127.0.0.x on linux without a problem, but on my Mac, it seems to need some config to be able to bind to 127.0.0.2 etc.

?



Re: Failing to create a 2 Node cluster on a Windows machine

Posted by Jonathan Ellis <jb...@gmail.com>.
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 <al...@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-LocationInfo@10936489(95
> bytes, 2
>  operations)
>  INFO 11:07:26,640 Writing Memtable-LocationInfo@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.zubaidi@pdf.com



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Re: Failing to create a 2 Node cluster on a Windows machine

Posted by Alaa Zubaidi <al...@pdf.com>.
Thanks..

Kochheiser,Todd W - TOK-DITT-1 wrote:
>
> If you are using XP/SP2, I think MS broke support for using anything 
> other than 127.0.0.1 for loopback. Here is the KB article:
>
> http://support.microsoft.com/kb/884020
>
> I’ve only tested Cassandra clusters using multiple Windows machines. 
> The Cassandra documentation on setting up a cluster implies you should 
> not use 127.0.0.1, but that may not be the issue.
>
> ------------------------------------------------------------------------
>
> *From:* Alaa Zubaidi [mailto:alaa.zubaidi@pdf.com]
> *Sent:* Friday, July 23, 2010 11:37 AM
> *To:* user@cassandra.apache.org
> *Subject:* Failing to create a 2 Node cluster on a Windows machine
>
> 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-LocationInfo@10936489(95 
> bytes, 2
> operations)
> INFO 11:07:26,640 Writing Memtable-LocationInfo@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.zubaidi@pdf.com <ma...@pdf.com> 

-- 
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.zubaidi@pdf.com 



RE: Failing to create a 2 Node cluster on a Windows machine

Posted by "Kochheiser,Todd W - TOK-DITT-1" <tw...@bpa.gov>.
If you are using XP/SP2, I think MS broke support for using anything other than 127.0.0.1 for loopback.  Here is the KB article:

http://support.microsoft.com/kb/884020

I've only tested Cassandra clusters using multiple Windows machines.  The Cassandra documentation on setting up a cluster implies you should not use 127.0.0.1, but that may not be the issue.

________________________________
From: Alaa Zubaidi [mailto:alaa.zubaidi@pdf.com]
Sent: Friday, July 23, 2010 11:37 AM
To: user@cassandra.apache.org
Subject: Failing to create a 2 Node cluster on a Windows machine

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-LocationInfo@10936489(95 bytes, 2
 operations)
 INFO 11:07:26,640 Writing Memtable-LocationInfo@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.zubaidi@pdf.com<ma...@pdf.com>

Re: Failing to create a 2 Node cluster on a Windows machine

Posted by Alaa Zubaidi <al...@pdf.com>.
Any insight is much appreciated..


Alaa Zubaidi 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-LocationInfo@10936489(95 bytes, 2
>  operations)
>  INFO 11:07:26,640 Writing Memtable-LocationInfo@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.zubaidi@pdf.com 

-- 
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.zubaidi@pdf.com