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 14AB110CA7 for ; Thu, 29 Aug 2013 06:48:18 +0000 (UTC) Received: (qmail 25058 invoked by uid 500); 29 Aug 2013 06:48:15 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 24981 invoked by uid 500); 29 Aug 2013 06:48:14 -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 24973 invoked by uid 99); 29 Aug 2013 06:48:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 06:48:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dinesh.gaddam@gmail.com designates 209.85.223.170 as permitted sender) Received: from [209.85.223.170] (HELO mail-ie0-f170.google.com) (209.85.223.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 06:48:06 +0000 Received: by mail-ie0-f170.google.com with SMTP id 16so43026iea.1 for ; Wed, 28 Aug 2013 23:47:45 -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=i7yovJNtZQHUu1+a+J+iXKfJDfLqLFRir9Bh50k1wvI=; b=VAbRgvYgVdoB9mpkRlpUGsSHJ4Z5hE/c4Qs1fHhdMc+eHpWXg812AizXdv+L+m7nVZ 1basPd5B3bH2i031PHxdn8vhyczaXPIq7uEAOhLs8UJxgZQta6kSQbLwwRx+OKNHlKF6 tt2utOeoYAUc/8/nOiB2cBiHPLnFo6KmZelgwFBQMCc4zr8hvi15xJ/+4Aago2A/4IOC 9hMXpfBbNyTB5umAPkPRY9/lPY2rcLfaZDsF2/9PX1V3M5G2gLIOwQAQe7F6N3/ooklw fXRneyblHh5nUy2BMNHxezUKLQ5fmuPkVFBCKHrf2M9a4W+L0CTJFEybJXLfsZcEI6YM lrGQ== MIME-Version: 1.0 X-Received: by 10.43.168.67 with SMTP id nh3mr885334icc.33.1377758865267; Wed, 28 Aug 2013 23:47:45 -0700 (PDT) Received: by 10.42.130.201 with HTTP; Wed, 28 Aug 2013 23:47:45 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Aug 2013 12:17:45 +0530 Message-ID: Subject: Re: Setting up a multi-node cluster From: Dinesh To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a11c20edcc0281e04e5107b16 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c20edcc0281e04e5107b16 Content-Type: text/plain; charset=ISO-8859-1 My first node is running and second node is not running in this case I tried telnet from second node to first node. Following is the stdout # telnet 10.96.10.207 7000 Trying 10.96.10.207... Connected to 10.96.10.207. Escape character is '^]'. quit Connection closed by foreign host. I see the same output for 7199 & 9160 ports. is this correct. I am not seeing the telnet session as something like telnet> ---------- But when I tried with 7001. I am seeing the below output # telnet 10.96.10.207 7001 Trying 10.96.10.207... telnet: connect to address 10.96.10.207: Connection refused I see the same output for 61620 & 61621 ports ---------- Please suggest On Thu, Aug 29, 2013 at 11:23 AM, Andrey Ilinykh wrote: > To be sure ports are open try to connect from one node to another: > > telnet 7000 > > try all ports. > > Andrey > > > On Wed, Aug 28, 2013 at 10:41 PM, Dinesh wrote: > >> 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 >> > > -- Regards Dinesh --001a11c20edcc0281e04e5107b16 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
My first node is running and second node is not runni= ng in this case

I tried telnet from second node to firs= t node. Following is the stdout
# telnet 10.96.10.207 7000
Trying 10.96.10.2= 07...
Connected to 10.96.10.207.
= Escape character is '^]'.
quit
Connection closed by foreign host.

I see the same output for 7199 & 9160 ports. is this correct. = I am not seeing the telnet session as something like telnet>
-------= ---
But when I tried with 7001. I am seeing the below output=A0
# = telnet 10.96.10.207 7001
Trying 10.96.10.207...
telnet:= connect to address 10.96.10.207: Conne= ction refused

I see the same output for 61620 & 616= 21 ports
----------

Please suggest



On Thu, Aug 29, 2013 at 11:23 AM, Andrey Ilinykh <ailinykh@gmail.com&= gt; wrote:
To be sure ports are open try to connect from one nod= e to =A0another:

telnet <node ip> 7000
=

try all ports.

Andrey


On Wed, Aug 2= 8, 2013 at 10:41 PM, Dinesh <dinesh.gaddam@gmail.com> = wrote:
Hi John,

I had my firewall disabled in both the nodes
To make sure. I che= cked it
# rcSuSEfirewall2 status
Checking the status of SuSEfir= ewall2 =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.p= yeatt@singlewire.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.gaddam@gmail.c= om> 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.6= 61.1184
john.pyeatt= @singlewire.com



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




--
= Regards
Dinesh
--001a11c20edcc0281e04e5107b16--