From cassandra-user-return-2478-apmail-incubator-cassandra-user-archive=incubator.apache.org@incubator.apache.org Tue Feb 09 09:07:38 2010 Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 89830 invoked from network); 9 Feb 2010 09:07:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2010 09:07:38 -0000 Received: (qmail 1518 invoked by uid 500); 9 Feb 2010 09:07:37 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 1485 invoked by uid 500); 9 Feb 2010 09:07:36 -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 1476 invoked by uid 99); 9 Feb 2010 09:07:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 09:07:36 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of weijunli@gmail.com designates 209.85.222.194 as permitted sender) Received: from [209.85.222.194] (HELO mail-pz0-f194.google.com) (209.85.222.194) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 09:07:28 +0000 Received: by pzk32 with SMTP id 32so1193059pzk.27 for ; Tue, 09 Feb 2010 01:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type:x-mailer:thread-index :content-language; bh=XBGlWCINVQTA1q108ScTC4GNHtGyD4ImE2kQBahBEi8=; b=UAAjP/SbuLgS3zKKL/K6iOggHmUgNTEI/SpCUO1ruuKJa5BnEV/9a8QvFEyijFlLMY hoc2fyGs/+bs3VRkKhSn8l01GpdNCF2XxrHy1m7h0IXN+sY5RDElNMd4yD7c32xp/Hto p6jRT4PUuc7OAkYsglj5nVAEufhTWUVUIeZV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; b=ZYgirHUNFRyTRgwAoHvQqxEpxsK6oxolu019L9QMM6LibapWvFW2oLSDTECvcP4+w1 cvue42VgtKlKh/fXsG5JVHpU5LTBeNbY2HQLpNzuXhmelHaUKtFfqhVkPLp/0VxMMvTw sdLvuMIboEG0ILOwFOOuonPLFJzlwNJ6Ixxpc= Received: by 10.114.6.27 with SMTP id 27mr1617516waf.208.1265706420705; Tue, 09 Feb 2010 01:07:00 -0800 (PST) Received: from WaynePC (173-11-95-78-SFBA.hfc.comcastbusiness.net [173.11.95.78]) by mx.google.com with ESMTPS id 22sm4628662pzk.2.2010.02.09.01.06.58 (version=SSLv3 cipher=RC4-MD5); Tue, 09 Feb 2010 01:06:59 -0800 (PST) From: "Weijun Li" To: Subject: Unable connect Thrift client to cassandra remotely (connection refused) Date: Tue, 9 Feb 2010 01:06:39 -0800 Message-ID: <037b01caa967$30faf840$92f0e8c0$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_037C_01CAA924.22D7B840" X-Mailer: Microsoft Office Outlook 12.0 thread-index: AcqpZy/ypZSU+TNJS1+20F9HSUVqsw== Content-Language: en-us This is a multi-part message in MIME format. ------=_NextPart_000_037C_01CAA924.22D7B840 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, I installed Cassandra 0.50 and started the instance without any problem. The problem is: if I run bin/cassandra-cli --host localhost -port 9160 it worked perfectly. But whenever I tried to connect from any non-localhost and non-127.0.0.1 address (from other server or same server with domain name), I got "connection refused", --no matter how I open port, disable firewall or change port number. So is there any default restriction in Cassandra that doesn't allow non-localhost client connection? How can I get Cassandra-cli to work remotely on an Cassandra instance? Also it seems to have same issue for nodeprobe. -bash-3.1# bin/cassandra-cli --host [xxxx-hostname] -port 9160 Exception java.net.ConnectException: Connection refused org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused at org.apache.thrift.transport.TSocket.open(TSocket.java:185) at org.apache.cassandra.cli.CliMain.connect(CliMain.java:65) at org.apache.cassandra.cli.CliMain.main(CliMain.java:151) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at org.apache.thrift.transport.TSocket.open(TSocket.java:180) ... 2 more Thanks, -Weijun ------=_NextPart_000_037C_01CAA924.22D7B840 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I installed Cassandra  0.50 and started the = instance without any problem. The problem is: if I run

 

bin/cassandra-cli --host localhost -port = 9160

 

it worked perfectly.

 

But whenever I tried to connect from any = non-localhost and non-127.0.0.1 address (from other server or same server with domain = name), I got “connection refused”, --no matter how I open port, disable = firewall or change port number.

 

So is there any default restriction in Cassandra = that doesn’t allow non-localhost client connection? How can I get Cassandra-cli to = work remotely on an Cassandra instance? Also it seems to have same issue for nodeprobe.

 

-bash-3.1# bin/cassandra-cli --host [xxxx-hostname] = -port 9160

Exception java.net.ConnectException: Connection = refused

org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused

        at org.apache.thrift.transport.TSocket.open(TSocket.java:185)

=

        at org.apache.cassandra.cli.CliMain.connect(CliMain.java:65)

        at org.apache.cassandra.cli.CliMain.main(CliMain.java:151)

Caused by: java.net.ConnectException: Connection = refused

        at java.net.PlainSocketImpl.socketConnect(Native Method)

        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)<= /o:p>

        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

=

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

=

        at java.net.Socket.connect(Socket.java:519)

        at java.net.Socket.connect(Socket.java:469)

        at org.apache.thrift.transport.TSocket.open(TSocket.java:180)

=

        ... 2 = more

 

Thanks,

-Weijun

------=_NextPart_000_037C_01CAA924.22D7B840--