Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 66143 invoked from network); 9 Dec 2009 12:00:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Dec 2009 12:00:32 -0000 Received: (qmail 29868 invoked by uid 500); 9 Dec 2009 12:00:31 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 29855 invoked by uid 500); 9 Dec 2009 12:00:31 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 29846 invoked by uid 99); 9 Dec 2009 12:00:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 12:00:31 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.221.202] (HELO mail-qy0-f202.google.com) (209.85.221.202) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 12:00:29 +0000 Received: by qyk40 with SMTP id 40so3062787qyk.22 for ; Wed, 09 Dec 2009 04:00:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.9.130 with SMTP id l2mr1309084qcl.41.1260360007488; Wed, 09 Dec 2009 04:00:07 -0800 (PST) In-Reply-To: References: Date: Wed, 9 Dec 2009 17:30:07 +0530 Message-ID: Subject: Re: Cassandra with static IP address on EC2 instance: org.apache.thrift.transport.TTransportException From: Sunil Khedar To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=00163683269c8916fc047a4a6edf --00163683269c8916fc047a4a6edf Content-Type: text/plain; charset=ISO-8859-1 Using Public DNS name in place of Public IP address fixed the issue. Thanks, Sunil On Wed, Dec 9, 2009 at 4:27 PM, Sunil Khedar wrote: > 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 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 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 >>> 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. >>> >> >> > --00163683269c8916fc047a4a6edf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Using Public DNS name in place of Public IP address fixed the issue.
Thanks,
Sunil

On Wed, Dec 9, 2009 at = 4:27 PM, Sunil Khedar <sunil@truesparrow.com> wrote:
same problem is e= ncountered when I set listen address as public IP address.

java.net.BindException: Cannot assign requested address
=A0=A0=A0=A0=A0= =A0=A0 at sun.nio.ch.Net.bind(Native Method)
=A0=A0=A0=A0=A0=A0=A0 at su= n.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
=A0=A0=A0=A0=A0=A0=A0 at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAd= aptor.java:59)
=A0=A0=A0=A0=A0=A0=A0 at sun.nio.ch.ServerSocketAdaptor.b= ind(ServerSocketAdaptor.java:52)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.cas= sandra.net.MessagingService.listen(MessagingService.java:195)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.cassandra.service.StorageService.start(= StorageService.java:260)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.cassandra.s= ervice.CassandraServer.start(CassandraServer.java:70)
=A0=A0=A0=A0=A0=A0= =A0 at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.j= ava:94)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.cassandra.service.CassandraDaemon.main(= CassandraDaemon.java:166)
Exception encountered during startup.
java.= net.BindException: Cannot assign requested address
=A0=A0=A0=A0=A0=A0=A0= at sun.nio.ch.Net.bind(Native Method)
=A0=A0=A0=A0=A0=A0=A0 at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSock= etChannelImpl.java:119)
=A0=A0=A0=A0=A0=A0=A0 at sun.nio.ch.ServerSocket= Adaptor.bind(ServerSocketAdaptor.java:59)
=A0=A0=A0=A0=A0=A0=A0 at sun.n= io.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.cassandra.net.MessagingService.listen(M= essagingService.java:195)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.cassandra.= service.StorageService.start(StorageService.java:260)
=A0=A0=A0=A0=A0=A0= =A0 at org.apache.cassandra.service.CassandraServer.start(CassandraServer.j= ava:70)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.cassandra.service.CassandraDaemon.setup= (CassandraDaemon.java:94)
=A0=A0=A0=A0=A0=A0=A0 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 execut= ed ifconfig command, but the output was not having "eth1" details= .

eth0=A0=A0=A0=A0=A0 Link encap:Ethernet=A0 HWaddr= 11:31:3B:04:E2:13
=A0=A0=A0=A0=A0=A0=A0=A0=A0 inet addr:10.211.229.221=A0 Bcast:10.211.229.25= 5=A0 Mask:255.255.255.0
=A0=A0=A0=A0=A0=A0=A0=A0=A0 inet6 addr: fe80::11= 31:3bff:fe04:e213/64 Scope:Link
=A0=A0=A0=A0=A0=A0=A0=A0=A0 UP BROADCAST= RUNNING MULTICAST=A0 MTU:1500=A0 Metric:1
=A0=A0=A0=A0=A0=A0=A0=A0=A0 R= X packets:144913 errors:0 dropped:0 overruns:0 frame:0
=A0=A0=A0=A0=A0=A0=A0=A0=A0 TX packets:97374 errors:0 dropped:0 overruns:0 = carrier:0
=A0=A0=A0=A0=A0=A0=A0=A0=A0 collisions:0 txqueuelen:1000
= =A0=A0=A0=A0=A0=A0=A0=A0=A0 RX bytes:130499932 (124.4 MiB)=A0 TX bytes:1348= 0650 (12.8 MiB)

lo=A0=A0=A0=A0=A0=A0=A0 Link encap:Local Loopback =A0=A0=A0=A0=A0=A0=A0=A0=A0 inet addr:127.0.0.1=A0 Mask:255.0.0.0
=A0=A0= =A0=A0=A0=A0=A0=A0=A0 inet6 addr: ::1/128 Scope:Host
=A0=A0=A0=A0=A0=A0= =A0=A0=A0 UP LOOPBACK RUNNING=A0 MTU:16436=A0 Metric:1
=A0=A0=A0=A0=A0= =A0=A0=A0=A0 RX packets:1680 errors:0 dropped:0 overruns:0 frame:0
=A0= =A0=A0=A0=A0=A0=A0=A0=A0 TX packets:1680 errors:0 dropped:0 overruns:0 carr= ier:0
=A0=A0=A0=A0=A0=A0=A0=A0=A0 collisions:0 txqueuelen:0
=A0=A0=A0=A0=A0=A0= =A0=A0=A0 RX bytes:180916 (176.6 KiB)=A0 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, Sim= on Smith <simongsmith@gmail.com> wrote:
Do you have your = Amazon security policy set to allow that port? =A0If
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=A0ThriftAddress= , but
> getting following error:
> org.apache.thrift.transport.TTransportException: Could not create
> ServerSocket on address /75.101.152.226:9160.



--00163683269c8916fc047a4a6edf--