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 90C3110B50 for ; Thu, 29 Aug 2013 05:41:44 +0000 (UTC) Received: (qmail 52106 invoked by uid 500); 29 Aug 2013 05:41:41 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 51882 invoked by uid 500); 29 Aug 2013 05:41:33 -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 51874 invoked by uid 99); 29 Aug 2013 05:41:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 05:41:32 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dinesh.gaddam@gmail.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 05:41:27 +0000 Received: by mail-ie0-f182.google.com with SMTP id aq17so10547089iec.41 for ; Wed, 28 Aug 2013 22:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fY7BfK7unz+tmDkSKu4bZdlindaIgMummHQJ/4pJNXs=; b=t3vzw6InVV4BG+zlEGNY07NQBSP1gkkwU7WAjwQ2R7XmjMD3/jgnKRaMwC+0tafrrH 4NvGDmDJGQem9EfaII6TzNMZXALlLxYR17aJDk5xyNwcebNJ93GgO/XDbTOFXnHZ7JCU T6OmBLc3TLSl9v6N4AYx62OvrominDxoHKSWfHJV6lT05G93Ov4nMqqgGvym5IyKwmP2 kmdTXru28nxyur4mon2FlahuhYR5miknTYVUapb95WYGzxEcjMekoF8v2ObHso36hfcg 1Cz6QJXZnIZGA9fA3QHYJgEXKpnBRHZ18pqZRtjpi7XQTW3sVG37ZWC/NxShKQdHr+Mt H61A== MIME-Version: 1.0 X-Received: by 10.50.122.102 with SMTP id lr6mr15284154igb.0.1377754867450; Wed, 28 Aug 2013 22:41:07 -0700 (PDT) Received: by 10.42.130.201 with HTTP; Wed, 28 Aug 2013 22:41:07 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Aug 2013 11:11:07 +0530 Message-ID: Subject: Re: Setting up a multi-node cluster From: Dinesh To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=089e01538a807664c204e50f8d38 X-Virus-Checked: Checked by ClamAV on apache.org --089e01538a807664c204e50f8d38 Content-Type: text/plain; charset=ISO-8859-1 Hi John, I had my firewall disabled in both the nodes To make sure. I checked it # rcSuSEfirewall2 status Checking the status of SuSEfirewall2 unused if it's, on it says running Please suggest the further steps, where to look and troubleshoot, if you have any idea On Thu, Aug 29, 2013 at 2:34 AM, John Pyeatt wrote: > Have you verified that your firewall is configured for the cassandra > traffic. At the very least you need to make certain the following ports are > open between nodes: 7000, 7001, 7199, 9160, 61620 and 61621. > > > On Wed, Aug 28, 2013 at 12:36 AM, Dinesh wrote: > >> In my case rpc_address in both the nodes is set to 0.0.0.0 which means it >> listens on all interfaces. it has a larger scope (to listen on all >> localhost, ipv4, hostnames, ipv6 addresses) than providing just the >> hostname/ipv4 addresses >> >> anyway I initially checked that, but it's the same exception I got in >> this case also >> >> >> >> >> On Wed, Aug 28, 2013 at 10:40 AM, Naresh Yadav wrote: >> >>> >>> You would need to configure rpc_address also with hostname/ips on both >>> the nodes. >>> >>> Naresh >>> >>> On Wed, Aug 28, 2013 at 10:15 AM, Dinesh wrote: >>> >>>> Hi, >>>> >>>> I am trying to setup a two node Cassandra cluster >>>> >>>> Able to start the first node, but not seeing the following exception >>>> while starting the second node >>>> >>>> ERROR 17:31:34,315 Exception encountered during startup >>>> java.lang.IllegalStateException: Unable to contact any seeds! >>>> at >>>> org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:947) >>>> at >>>> org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:716) >>>> at >>>> org.apache.cassandra.service.StorageService.initServer(StorageService.java:554) >>>> at >>>> org.apache.cassandra.service.StorageService.initServer(StorageService.java:451) >>>> at >>>> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:348) >>>> at >>>> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:447) >>>> at >>>> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:490) >>>> java.lang.IllegalStateException: Unable to contact any seeds! >>>> at >>>> org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:947) >>>> at >>>> org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:716) >>>> at >>>> org.apache.cassandra.service.StorageService.initServer(StorageService.java:554) >>>> at >>>> org.apache.cassandra.service.StorageService.initServer(StorageService.java:451) >>>> at >>>> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:348) >>>> at >>>> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:447) >>>> at >>>> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:490) >>>> Exception encountered during startup: Unable to contact any seeds! >>>> ERROR 17:31:34,322 Exception in thread >>>> Thread[StorageServiceShutdownHook,5,main] >>>> java.lang.NullPointerException >>>> at >>>> org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:321) >>>> at >>>> org.apache.cassandra.service.StorageService.shutdownClientServers(StorageService.java:370) >>>> at >>>> org.apache.cassandra.service.StorageService.access$000(StorageService.java:88) >>>> >>>> >>>> >>>> >>>> ============================= >>>> My yaml configuration files have these modified >>>> >>>> >>>> first node yaml >>>> --------------- >>>> initial_token: -9223372036854775808 # generated this using tokengen tool >>>> seeds: "10.96.19.207" # which is the IP of first node >>>> listen_address: 10.96.19.207 # which is the IP of first node itself >>>> rpc_address: 0.0.0.0 >>>> >>>> second node yaml >>>> ---------------- >>>> initial_token: 0 >>>> seeds: "10.96.19.207" # which is the IP of first node >>>> listen_address: 10.96.10.223 # which is the IP of second node >>>> rpc_address: 0.0.0.0 >>>> >>>> >>>> ================== >>>> >>>> Can anyone please help me what went wrong with my configuration? >>>> >>>> Regards >>>> Dinesh >>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> -- >> Regards >> Dinesh >> > > > > -- > John Pyeatt > Singlewire Software, LLC > www.singlewire.com > ------------------ > 608.661.1184 > john.pyeatt@singlewire.com > -- Regards Dinesh --089e01538a807664c204e50f8d38 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi John,

I had my firewall disabled in = both the nodes
To make sure. I checked it
# rcSuSEfirew= all2 status
Checking the status of SuSEfirewall2 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0unused

if it's, on it says running

Please suggest the further steps, where to look and troubleshoot, i= f you have any idea






On Thu, Aug 29, 2013 at 2:34 AM, John Pyeatt <john.pyeatt@sing= lewire.com> wrote:
Have you verified that your= firewall is configured for the cassandra traffic. At the very least you ne= ed to make certain the following ports are open between nodes: 7000, 7001, = 7199, 9160, 61620 and 61621.


On Wed, Aug 28, 2013 at 12:36 AM, Dinesh <dinesh.ga= ddam@gmail.com> wrote:
In my case rpc_address in b= oth the nodes is set to 0.0.0.0 which means it listens on all interfaces. i= t has a larger scope (to listen on all localhost, ipv4, hostnames, ipv6 add= resses) than providing just the hostname/ipv4 addresses

anyway I initially checked that, but it's the same excep= tion I got in this case also




On Wed, Aug 28, 2013 at 10:40 AM, Naresh Yadav <nyadav.ait@gmail.com> wrote:

You would need to configure rpc_address also with hostname/ips on both = the nodes.

Naresh
On Wed, Aug 28, 2013 at 10:15 AM, Dinesh <dinesh.gaddam@gmail.com> wrote:
Hi,

I am trying to setup a two node Cas= sandra cluster

Able to start the first node, but n= ot seeing the following exception while starting the second node

ERROR 17:31:34,315 Exception encountered during startup=
java.lang.IllegalStateException: Unable to contact any seeds!
=A0 =A0 =A0 =A0 at org.apache.cassandra.service.StorageService.boot= strap(StorageService.java:947)
=A0 =A0 =A0 =A0 at org.apache.cassandra.service.StorageService.joinTok= enRing(StorageService.java:716)
=A0 =A0 =A0 =A0 at org.apache.cas= sandra.service.StorageService.initServer(StorageService.java:554)
=A0 =A0 =A0 =A0 at org.apache.cassandra.service.StorageService.initServer(= StorageService.java:451)
=A0 =A0 =A0 =A0 at org.apache.cassandra.service.CassandraDaemon.setup(= CassandraDaemon.java:348)
=A0 =A0 =A0 =A0 at org.apache.cassandra= .service.CassandraDaemon.activate(CassandraDaemon.java:447)
=A0 = =A0 =A0 =A0 at org.apache.cassandra.service.CassandraDaemon.main(CassandraD= aemon.java:490)
java.lang.IllegalStateException: Unable to contact any seeds!
=A0 =A0 =A0 =A0 at org.apache.cassandra.service.StorageService.bootstrap(= StorageService.java:947)
=A0 =A0 =A0 =A0 at org.apache.cassandra.= service.StorageService.joinTokenRing(StorageService.java:716)
=A0 =A0 =A0 =A0 at org.apache.cassandra.service.StorageService.initSer= ver(StorageService.java:554)
=A0 =A0 =A0 =A0 at org.apache.cassan= dra.service.StorageService.initServer(StorageService.java:451)
= =A0 =A0 =A0 =A0 at org.apache.cassandra.service.CassandraDaemon.setup(Cassa= ndraDaemon.java:348)
=A0 =A0 =A0 =A0 at org.apache.cassandra.service.CassandraDaemon.activa= te(CassandraDaemon.java:447)
=A0 =A0 =A0 =A0 at org.apache.cassan= dra.service.CassandraDaemon.main(CassandraDaemon.java:490)
Except= ion encountered during startup: Unable to contact any seeds!
ERROR 17:31:34,322 Exception in thread Thread[StorageServiceShutdownHo= ok,5,main]
java.lang.NullPointerException
=A0 =A0 =A0 = =A0 at org.apache.cassandra.service.StorageService.stopRPCServer(StorageSer= vice.java:321)
=A0 =A0 =A0 =A0 at org.apache.cassandra.service.StorageService.shutdow= nClientServers(StorageService.java:370)
=A0 =A0 =A0 =A0 at org.ap= ache.cassandra.service.StorageService.access$000(StorageService.java:88)




=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
My yaml configuration files have these modified


first node yaml
---------------
initial_token: -9223372036854775808 # generated this using tokengen to= ol
seeds: "10.96.19.207" # which is the IP of first nod= e
listen_address: 10.96.19.207 # which is the IP of first node it= self
rpc_address: 0.0.0.0

second node yaml
----------------
initial_token: 0
seeds: "10.96= .19.207" # which is the IP of first node
listen_address: 10.= 96.10.223 # which is the IP of second node
rpc_address: 0.0.0.0


=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Can anyone please help me what went wrong with my configuration?

Regards
Dinesh









<= font color=3D"#888888">--
Regards
Dinesh



--
John Pyeatt
Singlewire Software, LLC
www.singlewire.com=
------------------
608.661.1184
john.pyeatt= @singlewire.com



--
Regards
D= inesh
--089e01538a807664c204e50f8d38--