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 D3AE34560 for ; Tue, 17 May 2011 19:27:28 +0000 (UTC) Received: (qmail 17449 invoked by uid 500); 17 May 2011 19:27:26 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 17410 invoked by uid 500); 17 May 2011 19:27:26 -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 17402 invoked by uid 99); 17 May 2011 19:27:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 19:27:26 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.33.216.122] (HELO hapkido.dreamhost.com) (66.33.216.122) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 19:27:19 +0000 Received: from homiemail-a45.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by hapkido.dreamhost.com (Postfix) with ESMTP id 8877A179626 for ; Tue, 17 May 2011 12:26:58 -0700 (PDT) Received: from homiemail-a45.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a45.g.dreamhost.com (Postfix) with ESMTP id A2731480A0 for ; Tue, 17 May 2011 12:26:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=vO5Lk/+1E2 tk4QRWaNFe3R4xRgbnHOaAHZ7w8VGN3pKrgrRJd7pb97hb7bt4qj3rwTTLAYJbLE 8r7rEQt/xZGJAtsb7+R7EWec8iFNQp1Z9Xp2JE+YmyELLogL7ktT3v6T3MFy0D9j DpshdBHd1sIOn01TXScJIGDyX3Ub8oAxE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=7Ij092/3w1DR7+hB oE+A76tnIC4=; b=mYleSk05CjgpqTWfnGgpo7Ulje6zsvGzKEqEKOTlCgKB/ipD jOTa+0FQ0XJeyCdjWcakkSpepe5+KdLhDqjAxF6ph3Z0M2XhHSxjOAIFBNHEMuSU YAMTEPr2w9/tLaTIuIi9J82hHHexLcHazlSwzD/dS0HanIZpDHwLWb4JsxA= Received: from [10.0.1.151] (121-73-157-230.cable.telstraclear.net [121.73.157.230]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a45.g.dreamhost.com (Postfix) with ESMTPSA id C1ECF480A1 for ; Tue, 17 May 2011 12:26:50 -0700 (PDT) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/alternative; boundary=Apple-Mail-20-935693608 Subject: Re: problems using property snitch file Date: Wed, 18 May 2011 07:26:47 +1200 In-Reply-To: To: user@cassandra.apache.org References: <13790679-B50C-477B-8091-791CBB831643@thelastpickle.com> <47BD8153-6E22-4237-A35A-708275DEC8AB@thelastpickle.com> Message-Id: X-Mailer: Apple Mail (2.1084) --Apple-Mail-20-935693608 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Looking at the code the exception below can happen if the ip address = cannot be found in the topology and there is no default set.=20 To test this theory set the logging the DEBUG and look for a log message = from the PropertyFileSnitch that says "Could not find end point information for {}, will use default" {} will = be the endpoint.=20 Also during startup the snitch will log what it was able to read so you = can check it is read what you think.=20 I there is a problem with the topology that would probably explain the = other error. If that does not fix it can you provide the keyspace definition, and = settings such as listen_address and rpc_address .=20 Cheers ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 17 May 2011, at 03:44, Anurag Gujral wrote: > All lines have different IP address,yes I am trying to move single = node in DC1 > Thanks > Anurag >=20 > On Mon, May 16, 2011 at 3:19 AM, aaron morton = wrote: > Do all the lines have the same IP address or is that just how you = redacted them ? >=20 > is the single node in DC1 the one you are moving? >=20 > Cheers >=20 > ----------------- > Aaron Morton > Freelance Cassandra Developer > @aaronmorton > http://www.thelastpickle.com >=20 > On 16 May 2011, at 12:28, Anurag Gujral wrote: >=20 >> IPAddress1=3DDC1:RAC1 >> IPAddress1=3DDC2:RAC1 >> IPAddress1=3DDC2:RAC1 >> IPAddress1=3DDC2:RAC1 >>=20 >> Thanks >> Anurag >>=20 >> On Sun, May 15, 2011 at 4:52 PM, aaron morton = wrote: >> Whats does your cassandra-topology.properties file look like ? >>=20 >> Cheers >>=20 >> ----------------- >> Aaron Morton >> Freelance Cassandra Developer >> @aaronmorton >> http://www.thelastpickle.com >>=20 >> On 14 May 2011, at 11:48, Anurag Gujral wrote: >>=20 >> > Hi All, >> > I have built a cassandra cluster which is using property = snitch file to specify my network topology to cassandra.The keyspace I = have use network topology strategy. >> > >> > When I tried to add new node to this cluster,I get the following = error: >> > RROR [main] 2011-05-13 23:45:44,152 AbstractCassandraDaemon.java = (line 333) Exception encountered during startup. >> > java.lang.NullPointerException >> > at = org.apache.cassandra.locator.PropertyFileSnitch.getDatacenter(PropertyFile= Snitch.java:96) >> > at = org.apache.cassandra.locator.NetworkTopologyStrategy.calculateNaturalEndpo= ints(NetworkTopologyStrategy.java:87) >> > at = org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges(= AbstractReplicationStrategy.java:196) >> > at = org.apache.cassandra.locator.AbstractReplicationStrategy.getPendingAddress= Ranges(AbstractReplicationStrategy.java:230) >> > at = org.apache.cassandra.dht.BootStrapper.getRangesWithSources(BootStrapper.ja= va:195) >> > at = org.apache.cassandra.dht.BootStrapper.bootstrap(BootStrapper.java:83) >> > at = org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:= 525) >> > at = org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.j= ava:453) >> > at = org.apache.cassandra.service.StorageService.initServer(StorageService.java= :403) >> > at = org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassand= raDaemon.java:194) >> > at = org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCass= andraDaemon.java:316) >> > at = org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79) >> > >> > >> > Please Advise. >> > >> > >> > Thanks >> > Anurag >> > >>=20 >>=20 >=20 >=20 --Apple-Mail-20-935693608 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

Also = during startup the snitch will log what it was able to read so you can = check it is read what you think. 

I there = is a problem with the topology that would probably explain the other = error.

If that does not fix it can you provide = the keyspace definition, and settings such as listen_address and = rpc_address . 

Cheers

http://www.thelastpickle.com

On 17 May 2011, at 03:44, Anurag Gujral wrote:

All lines = have different IP address,yes I am trying to move single node in = DC1
Thanks
Anurag

On Mon, May = 16, 2011 at 3:19 AM, aaron morton <aaron@thelastpickle.com> wrote:
Do all the lines have the same IP = address or is that just how you redacted them ?

is the single node in DC1 the one you are = moving?

Cheers

-----------------
Aaron Morton
Freelance = Cassandra Developer
@aaronmorton

On 16 May 2011, at = 12:28, Anurag Gujral wrote:

IPAddress1=3DDC1:RAC1
IPAddress1=3DDC2:RAC1
IPAddress1= =3DDC2:RAC1
IPAddress1=3DDC2:RAC1

Thanks
Anurag

On Sun, May 15, = 2011 at 4:52 PM, aaron morton <aaron@thelastpickle.com> wrote:
Whats = does your cassandra-topology.properties file look like ?

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 14 May 2011, at 11:48, Anurag Gujral wrote:

> Hi All,
>           I have built a cassandra cluster = which is using property snitch file to specify my network topology to = cassandra.The keyspace I have use network topology strategy.
>
> When I tried to add new node to this cluster,I get the following = error:
> RROR [main] 2011-05-13 23:45:44,152 AbstractCassandraDaemon.java = (line 333) Exception encountered during startup.
> java.lang.NullPointerException
>         at = org.apache.cassandra.locator.PropertyFileSnitch.getDatacenter(PropertyFile= Snitch.java:96)
>         at = org.apache.cassandra.locator.NetworkTopologyStrategy.calculateNaturalEndpo= ints(NetworkTopologyStrategy.java:87)
>         at = org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges(= AbstractReplicationStrategy.java:196)
>         at = org.apache.cassandra.locator.AbstractReplicationStrategy.getPendingAddress= Ranges(AbstractReplicationStrategy.java:230)
>         at = org.apache.cassandra.dht.BootStrapper.getRangesWithSources(BootStrapper.ja= va:195)
>         at = org.apache.cassandra.dht.BootStrapper.bootstrap(BootStrapper.java:83)
>         at = org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:= 525)
>         at = org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.j= ava:453)
>         at = org.apache.cassandra.service.StorageService.initServer(StorageService.java= :403)
>         at = org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassand= raDaemon.java:194)
>         at = org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCass= andraDaemon.java:316)
>         at = org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79)<= br> >
>
> Please Advise.
>
>
> Thanks
> Anurag
>





= --Apple-Mail-20-935693608--