ListenAddress on node1 has to be an IP address that works for node1, and 
ListenAddress for node2 has to be an IP address that works for node2.  Node2 
can't listen on an IP address that belongs to node1 for the same reason I can't 
listen with your ears.

Tim Freeman
Email: [email protected]
Desk in Palo Alto: (650) 857-2581
Home: (408) 774-1298
Cell: (408) 348-7536 (No reception business hours Monday, Tuesday, and 
Thursday; call my desk instead.)

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Matthias Wessendorf
Sent: Friday, November 20, 2009 4:46 AM
To: [email protected]
Subject: Re: java.net.BindException: Cannot assign requested address

I get the same, when I use the host name of a different server here.
(In trying to build a cluster)

none1
node2

both are config'd as <seed/> elements.
Also the <*Address/> elements point to node1; on node1 that works,
but on node2, I get this exception

(using 0.4.2)

-Matthias

On Tue, Nov 3, 2009 at 11:59 PM,  <[email protected]> wrote:
> if i leave it empty i get the error
> if i give 0.0.0.0 it works
>
> On Tue, Nov 3, 2009 at 2:58 PM, Sammy Yu <[email protected]> wrote:
>>
>> Hi,
>>   I would check to see the ListenAddress in storage-conf.xml to see
>> if it's an address that assigned to this machine.
>>
>> Cheers,
>> Sammy
>>
>> On Tue, Nov 3, 2009 at 2:44 PM,  <[email protected]> wrote:
>> > I get the following error when i try to start cassandra from the latest
>> > git.
>> > If it is very obvious on what is going wrong here, Please point out
>> > thanks
>> >
>> > bin/cassandra -f
>> > Listening for transport dt_socket at address: 8888
>> > DEBUG - Loading settings from bin/../conf/storage-conf.xml
>> > DEBUG - Syncing log with a period of 1000
>> > DEBUG - opening keyspace Keyspace1
>> > DEBUG - adding Super1 as 0
>> > DEBUG - adding Standard2 as 1
>> > DEBUG - adding Standard1 as 2
>> > DEBUG - adding StandardByUUID1 as 3
>> > DEBUG - adding LocationInfo as 4
>> > DEBUG - adding HintsColumnFamily as 5
>> > DEBUG - opening keyspace system
>> >
>> >
>> > INFO - Saved Token not found. Using
>> > 169157697452904505324380333709918946833
>> > ERROR - Exception encountered during startup.
>> > java.net.BindException: Cannot assign requested address
>> >     at sun.nio.ch.Net.bind(Native Method)
>> >     at
>> >
>> > sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
>> >     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
>> >     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
>> >     at
>> >
>> > org.apache.cassandra.net.MessagingService.listen(MessagingService.java:235)
>> >     at
>> >
>> > org.apache.cassandra.service.StorageService.start(StorageService.java:285)
>> >     at
>> >
>> > org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:73)
>> >     at
>> >
>> > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:94)
>> >     at
>> >
>> > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:166)
>> > Exception encountered during startup.
>> > java.net.BindException: Cannot assign requested address
>> >     at sun.nio.ch.Net.bind(Native Method)
>> >     at
>> >
>> > sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
>> >     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
>> >     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
>> >     at
>> >
>> > org.apache.cassandra.net.MessagingService.listen(MessagingService.java:235)
>> >     at
>> >
>> > org.apache.cassandra.service.StorageService.start(StorageService.java:285)
>> >     at
>> >
>> > org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:73)
>> >     at
>> >
>> > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:94)
>> >     at
>> >
>> > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:166)
>> >
>> >
>
>
>
> --
> Bidegg worlds best auction site
> http://bidegg.com
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Reply via email to