incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Wessendorf <mat...@apache.org>
Subject Re: java.net.BindException: Cannot assign requested address
Date Fri, 20 Nov 2009 12:45:35 GMT
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,  <mobiledreamers@gmail.com> 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 <temijun@gmail.com> 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,  <mobiledreamers@gmail.com> 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

Mime
View raw message