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 E6C3D17AAD for ; Wed, 8 Oct 2014 15:25:23 +0000 (UTC) Received: (qmail 38605 invoked by uid 500); 8 Oct 2014 15:25:20 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 38575 invoked by uid 500); 8 Oct 2014 15:25:20 -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 38562 invoked by uid 99); 8 Oct 2014 15:25:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 15:25:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tyler@datastax.com designates 209.85.215.50 as permitted sender) Received: from [209.85.215.50] (HELO mail-la0-f50.google.com) (209.85.215.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 15:25:16 +0000 Received: by mail-la0-f50.google.com with SMTP id s18so8835097lam.9 for ; Wed, 08 Oct 2014 08:24:53 -0700 (PDT) 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:from:date :message-id:subject:to:content-type; bh=yHufhSh2jTEyjsAVLv1QiSTel1MX1XUnPMf6Nup3j0E=; b=BpprO+x4/1qpvkIOlsefzKgLrmuvPhoM6jJ8v6v2cOxDw1RZXcgeJ6tiV5vktqg5qt Q/YAHb5t0jzCJHDs/hCeCPpLcIHw7W1sSqZ+L9rLxdLXWLBW87jeCLupIHPPGnRlTykG QZHpVIfMVuHEMt/UoIM0jTt3Q91rUbEZIz2CPRmIF1bu3IVYrO15xpD9tlI+U8p8ioNJ zCZJijRMI7CqhBN+1VLmweAodjdI3DxaVTZqtt1RnTKuYDO3JBJA74vw5NDUCCdpJYEQ eDxNlmvtx8b/1N6kvpAe7CU1E1XVykJuIAyxZt0P2xE+c6XRaDSJZXPEiAgbSfqhtzZo VEHw== X-Gm-Message-State: ALoCoQl7d6pwKMDClpWNonGeZ6NGH/mEEDKrXwXvJElEE5BZqzCVZbnCi6cyojWQEHoU2TqTE36/ X-Received: by 10.112.62.200 with SMTP id a8mr11475248lbs.34.1412781893367; Wed, 08 Oct 2014 08:24:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.202.163 with HTTP; Wed, 8 Oct 2014 08:24:33 -0700 (PDT) In-Reply-To: <84D0C1DC89C21E43BB05CEC803D905010FC6AD9F@MBXEUR04.usersad.everis.int> References: <84D0C1DC89C21E43BB05CEC803D905010FC6AAD3@MBXEUR04.usersad.everis.int> <84D0C1DC89C21E43BB05CEC803D905010FC6AD9F@MBXEUR04.usersad.everis.int> From: Tyler Hobbs Date: Wed, 8 Oct 2014 10:24:33 -0500 Message-ID: Subject: Re: Doubts with the values of the parameter broadcast_rpc_address To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a11c3c5a0e64dc40504eaea58 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3c5a0e64dc40504eaea58 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Oct 8, 2014 at 5:20 AM, Ricard Mestre Subirats < ricard.mestre.subirats@everis.com> wrote: > At the machine with IP 192.168.150.112: > > -cluster_name: 'CassandraCluster1' > > -seeds: "192.168.150.112" > > -listen_address: 192.168.150.112 > > -rpc_address: 0.0.0.0 > > -broadcast_rpc_address: 192.168.150.112 > > > > At the machine with IP 192.168.150.113: > > -cluster_name: 'CassandraCluster1' > > -seeds: "192.168.150.112" > > -listen_address: 192.168.150.113 > > -rpc_address: 0.0.0.0 > > -broadcast_rpc_address: 192.168.150.113 > This is the correct configuration. > > > Then, if we start the service and execute =E2=80=9Cnodetool status=E2=80= =9D the result is > the following: > > *nodetool: Failed to connect to '127.0.0.1:7199 ' = - > NoRouteToHostException: 'There is not any route to the `host''.* > Nodetool does not (generally) use rpc_address/broadcast_rpc_address, because it's not using the normal API, it's using JMX. This is a different problem. If you want to check rpc_address/broadcast_rpc_address, use cqlsh (and pass an address). You can specify a hostname for nodetool with the -h option: nodetool -h 192.168.150.112 status. Depending on your setup, you may also need to edit the line in conf/cassandra-env.sh that sets this option: -Djava.rmi.server.hostname=3D --=20 Tyler Hobbs DataStax --001a11c3c5a0e64dc40504eaea58 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Wed, Oct 8, 2014 at 5:20 AM, Ricard Mestre Subirats &l= t;ri= card.mestre.subirats@everis.com> wrote:

At th= e machine with IP 192.= 168.150.112:

-clus= ter_name: 'CassandraCluster1'

-seed= s: "192.168.150.112"

-list= en_address: 192.168.150.112

-rpc_= address: 0.0.0.0

-broa= dcast_rpc_address: 192.168.150.112

=C2= =A0

At th= e machine with IP 192.= 168.150.113:

-clus= ter_name: 'CassandraCluster1'

-seed= s: "192.168.150.112"

-list= en_address: 192.168.150.113

-rpc_= address: 0.0.0.0

-broa= dcast_rpc_address: 192.168.150.113


This is = the correct configuration.
=C2=A0

=C2= =A0

Then,= if we start the service and execute =E2=80=9Cnodetool status=E2=80=9D the = result is the following:

no= detool: Failed to connect to '127.0.0.1:7199' - NoRouteToHostException: 'There is= not any route to the `host''.

Nodetool does not (generally) use rpc_address/broadcast_rpc_address, becau= se it's not using the normal API, it's using JMX.=C2=A0 This is a d= ifferent problem.=C2=A0 If you want to check rpc_address/broadcast_rpc_addr= ess, use cqlsh (and pass an address).

You can specify a hostname for= nodetool with the -h option: nodetool -h 192.168.150.112 status.=C2=A0 Dep= ending on your setup, you may also need to edit the line in conf/cassandra-= env.sh that sets this option:=C2=A0 -Djava.rmi.server.hostname=3D<public= name>


--
Tyler Hob= bs
DataStax
--001a11c3c5a0e64dc40504eaea58--