incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunil Khedar <su...@truesparrow.com>
Subject Re: Cassandra with static IP address on EC2 instance: org.apache.thrift.transport.TTransportException
Date Wed, 09 Dec 2009 10:57:17 GMT
same problem is encountered when I set listen address as public IP address.

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:195)
        at
org.apache.cassandra.service.StorageService.start(StorageService.java:260)
        at
org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:70)
        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:195)
        at
org.apache.cassandra.service.StorageService.start(StorageService.java:260)
        at
org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:70)
        at
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:94)
        at
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:166)

Thanks,
Sunil

On Wed, Dec 9, 2009 at 3:27 PM, Sunil Khedar <sunil@truesparrow.com> wrote:

> Hey Simon,
>
> 9160 port is already authorized. While debugging I executed ifconfig
> command, but the output was not having "eth1" details.
>
> eth0      Link encap:Ethernet  HWaddr 11:31:3B:04:E2:13
>           inet addr:10.211.229.221  Bcast:10.211.229.255
> Mask:255.255.255.0
>           inet6 addr: fe80::1131:3bff:fe04:e213/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:144913 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:97374 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:130499932 (124.4 MiB)  TX bytes:13480650 (12.8 MiB)
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:1680 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1680 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:180916 (176.6 KiB)  TX bytes:180916 (176.6 KiB)
>
> Do you think it can be a reason?
>
> Thanks,
> Sunil
>
>
> On Tue, Dec 8, 2009 at 8:46 PM, Simon Smith <simongsmith@gmail.com> wrote:
>
>> Do you have your Amazon security policy set to allow that port?  If
>> you were accessing internally before, the internal security policy may
>> have allowed that traffic, but the default external one doesn't (at
>> least that is how it worked for my account).
>>
>> On Tue, Dec 8, 2009 at 10:09 AM, Sunil Khedar <sunil@truesparrow.com>
>> wrote:
>> > Hi All,
>> > I tried using public IP address of my EC2 instance for ThriftAddress,
>> but
>> > getting following error:
>> > org.apache.thrift.transport.TTransportException: Could not create
>> > ServerSocket on address /75.101.152.226:9160.
>>
>
>

Mime
View raw message