Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFA6C10BDD for ; Tue, 6 Jan 2015 17:30:48 +0000 (UTC) Received: (qmail 45383 invoked by uid 500); 6 Jan 2015 17:30:46 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 45342 invoked by uid 500); 6 Jan 2015 17:30:46 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 45332 invoked by uid 99); 6 Jan 2015 17:30:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 17:30:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 17:30:19 +0000 Received: by mail-wg0-f54.google.com with SMTP id z12so11915814wgg.41 for ; Tue, 06 Jan 2015 09:29:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=HUnEf1+KBOBlIHGKMmrotxW3fRCU0QBKvayJn1mSJxE=; b=Cvf0LE9wAP04LdFhh3oZig3AdOU7xDDerjmY/oxs4v/wCRQhIr73gjI/IomMvHKX70 EOcGOQllAGvg4j1WgSt/YFtb1VyX+LPNRjXkbHXYkMxjZJ9HmQdKCyUfXjqxTew9Zac6 T8NloYv/B+8j9b7ObkMmtoeVdHtEQ9GR7IRVVpXdNBXYF/wUsLnQTHAPABQg8pBtyBfq jPTz0bo8v/Vs9IzerKc9Ag8EkoAB8KvwSVphxxiGzpCmPEyk0pnzI6VVCvPvyR+QmxvL iHwlfwwTg70UROZ8t6iHj8u5bawNQErJgtPUOBoyDwPa3W1mLAMuvxudTbdRCH+hMXAu mAnA== X-Gm-Message-State: ALoCoQkEongyPWZtf6FMzDhSu5IgMOP+Esxospyb85mFY1xAUYtne9NTy3sZLmzsTtRfIkyZfcrm MIME-Version: 1.0 X-Received: by 10.180.21.133 with SMTP id v5mr39713938wie.44.1420565353410; Tue, 06 Jan 2015 09:29:13 -0800 (PST) Received: by 10.27.128.212 with HTTP; Tue, 6 Jan 2015 09:29:13 -0800 (PST) X-Originating-IP: [73.55.186.150] In-Reply-To: References: Date: Tue, 6 Jan 2015 11:29:13 -0600 Message-ID: Subject: Re: Can't connect to cassandra node from different host From: Ryan Svihla To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7b87477c454778050bff2546 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b87477c454778050bff2546 Content-Type: text/plain; charset=UTF-8 0.0.0.0 is usually not a good idea for a variety of reasons (though more recent versions of the java driver appear to handle rpc_address fine). Listen address should be what the cluster needs to listen on, and rpc_address should be the ip that you're to connect to. On Sat, Jan 3, 2015 at 11:52 PM, Chamila Wijayarathna < cdwijayarathna@gmail.com> wrote: > Thanks Jonathan, > > It worked after setting both listen address and rpc_address to 0.0.0.0 > > On Sun, Jan 4, 2015 at 7:58 AM, Jonathan Haddad wrote: > >> This is most likely because your listen address is set to localhost. Try >> changing it to listen on the external interface. >> >> >> On Sat Jan 03 2015 at 10:03:57 AM Chamila Wijayarathna < >> cdwijayarathna@gmail.com> wrote: >> >>> Hello all, >>> >>> I have a cassandra node at a machine. When I access cqlsh from the same >>> machne it works properly. >>> >>> But when I tried to connect to it's cqlsh using "192.x.x.x" from another >>> machine, I'm getting an error saying >>> >>> Connection error: ('Unable to connect to any servers', {'192.x.x.x': >>> error(111, "Tried connecting to [('192.x.x.x', 9042)]. Last error: >>> Connection refused")}) >>> >>> What is the reason for this? How can I fix it? >>> >>> Thank You! >>> -- >>> *Chamila Dilshan Wijayarathna,* >>> SMIEEE, SMIESL, >>> Undergraduate, >>> Department of Computer Science and Engineering, >>> University of Moratuwa. >>> >> > > > -- > *Chamila Dilshan Wijayarathna,* > SMIEEE, SMIESL, > Undergraduate, > Department of Computer Science and Engineering, > University of Moratuwa. > -- Thanks, Ryan Svihla --047d7b87477c454778050bff2546 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
0.0.0.0 is usually not a good idea for a variety of reason= s (though more recent versions of the java driver appear to handle rpc_addr= ess fine).=C2=A0 Listen address should be what the cluster needs to listen = on, and rpc_address should be the ip that you're to connect to.

On Sat, Jan 3, 2015= at 11:52 PM, Chamila Wijayarathna <cdwijayarathna@gmail.com>= ; wrote:
Thanks J= onathan,

It worked after setting both listen address and= =C2=A0rpc_address to 0.0.0.0
=

On Sun, Jan 4, 2015 at 7:58 AM, Jonathan Haddad <jon@jonhaddad.com>= ; wrote:
This is most likely becau= se your listen address is set to localhost.=C2=A0 Try changing it to listen= on the external interface.


On = Sat Jan 03 2015 at 10:03:57 AM Chamila Wijayarathna <cdwijayarathna@gmail.com>= wrote:
Hello all,
<= br>
I have a cassandra node at a machine. When I access cqlsh fro= m the same machne it works properly.

But when I tr= ied to connect to it's cqlsh using "192.x.x.x" from another m= achine, I'm getting an error saying

Connection= error: ('Unable to connect to any servers', {'192.x.x.x': = error(111, "Tried connecting to [('192.x.x.x', 9042)]. Last er= ror: Connection refused")})
=C2=A0
Wha= t is the reason for this? How can I fix it?

Thank = You!
--
Chamila Dilshan = Wijayarathna,
SMIEEE, SMIESL,
Undergraduate,
Department of Com= puter Science and Engineering,
University of Moratuwa.



--
=
Chamila Dilshan Wijayarathna,
SMIEEE, SMIESL,
Undergradua= te,
Department of Computer Science and Engineering,
University of Mor= atuwa.



--
=

Thanks,

<= div>Ryan Svihla

--047d7b87477c454778050bff2546--