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 88CC5114D5 for ; Tue, 26 Aug 2014 07:13:09 +0000 (UTC) Received: (qmail 18252 invoked by uid 500); 26 Aug 2014 07:12:57 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 18214 invoked by uid 500); 26 Aug 2014 07:12:57 -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 18204 invoked by uid 99); 26 Aug 2014 07:12:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2014 07:12:57 +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 (nike.apache.org: domain of clearmidoubt@gmail.com designates 209.85.192.169 as permitted sender) Received: from [209.85.192.169] (HELO mail-pd0-f169.google.com) (209.85.192.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2014 07:12:31 +0000 Received: by mail-pd0-f169.google.com with SMTP id y10so22033735pdj.14 for ; Tue, 26 Aug 2014 00:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=IIW86itMdJjEeNgCafU/ed9AtjbSG9yb/vfEU/rFCQg=; b=wzS2dZUQLDoyi89ovusjAbqns3Y3WdfTqTF+uyfSF+g1A46eHeSRaDeAr4R0nFw8og aZ3Bo8REbpBIC32Bgq8TLsnp9AiFGICBMI50t5RcEufRiNmVsNg2GMEi8UH8CZdQzmn2 CBYYDaQbpfkFBeQQ81/7qQlhjXmzrPV4WpzrrqRTwXpRobJ6tpHNBv2aJyfh6TQ3NxvI zLU4F3zxnffvloNIHRbheL2+t2LoCSmNq5LouXjDJH1dL14EZJSlTRMYgjDYWgX/M2Ft xXkDNLjQHXSC74tRdzYe98VqyjJQLLcSlL4mpeY5YqUsiMrblkatU+4isgjKqcUM3i46 8PcA== MIME-Version: 1.0 X-Received: by 10.68.87.225 with SMTP id bb1mr34818368pbb.89.1409037149286; Tue, 26 Aug 2014 00:12:29 -0700 (PDT) Received: by 10.70.130.199 with HTTP; Tue, 26 Aug 2014 00:12:29 -0700 (PDT) Date: Tue, 26 Aug 2014 12:42:29 +0530 Message-ID: Subject: Installing Cassandra Multinode on CentOs coming up with exception From: Vineet Mishra To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7b621d64c235f7050183064c X-Virus-Checked: Checked by ClamAV on apache.org --047d7b621d64c235f7050183064c Content-Type: text/plain; charset=UTF-8 Hi All, I am installing Cassandra Multinode Setup on a 4 node CentOs Cluster, my cassandra.yaml looks like so cluster_name: 'node' initial_token: 0 num_tokens: 256 seed_provider: - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: - seeds: "192.168.1.32" listen_address: 192.168.1.32 rpc_address: 0.0.0.0 endpoint_snitch: RackInferringSnitch Similarly cassandra.yaml for second node cluster_name: 'node' initial_token: 2305843009213693952 num_tokens: 256 seed_provider: - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: - seeds: "192.168.1.32" listen_address: 192.168.1.36 rpc_address: 0.0.0.0 endpoint_snitch: RackInferringSnitch and so on. . . While trying to start the Server running on the Seed node(192.168.1.32) it throws this nasty exception and didn't start, -bash-4.1$ sudo bin/cassandra -bash-4.1$ INFO 12:19:46,653 Logging initialized INFO 12:19:46,688 Loading settings from file:/home/cluster/cassandra/conf/cassandra.yaml ERROR 12:19:46,985 Fatal configuration error org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:100) at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135) at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:111) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:156) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:496) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:585) Caused by: Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=seed_provider for JavaBean=org.apache.cassandra.config.Config@676c6370; java.lang.reflect.InvocationTargetException in 'reader', line 1, column 1: cluster_name: 'pcross' ^ at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:333) at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141) at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127) at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:475) at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:93) ... 5 more Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=seed_provider for JavaBean=org.apache.cassandra.config.Config@676c6370; java.lang.reflect.InvocationTargetException at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:299) at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:189) at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:331) ... 11 more Caused by: org.yaml.snakeyaml.error.YAMLException: java.lang.reflect.InvocationTargetException at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:542) at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:296) ... 13 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:540) ... 15 more Caused by: java.lang.NullPointerException at org.apache.cassandra.config.SeedProviderDef.(SeedProviderDef.java:33) ... 20 more Invalid yaml I am not sure exactly whats making it to throw NullPointer and halt the process. Expert Advice would be appreciated! URGENT! Thanks! --047d7b621d64c235f7050183064c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi All,

I am = installing Cassandra Multinode Setup on a 4 node CentOs Cluster, my cassand= ra.yaml looks like so

cluster_name: 'node= '
initial_token: 0
num_tokens: 256
seed_provider:
=C2=A0 =C2=A0 - class_name: org.apache.cassandra.locator.SimpleSeed= Provider
parameters:
=C2=A0 =C2=A0 - seeds: "192.1= 68.1.32"
listen_address: 192.168.1.32
rpc_address: 0.0.0.0
= endpoint_snitch: RackInferringSnitch

S= imilarly=C2=A0cassandra.yaml for second node=C2=A0

cluster_name: 'node'
initial_token: 2305843009213693= 952
num_tokens: 256=C2=A0
seed_provider:
=C2= =A0 =C2=A0 - class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
=C2=A0 =C2=A0 - seeds: "192.168.1.32"
listen_addre= ss: 192.168.1.36
rpc_address: 0.0.0.0
endpoint_snitch: = RackInferringSnitch

and so on. . .

While trying to start the Server running on the Seed n= ode(192.168.1.32) it throws this nasty exception and didn't start,


-bash-4.1$ sudo bin/cassandra

-bash-4.1$ =C2=A0INFO 12:19:46,653 Logging initialized
=C2= =A0INFO 12:19:46,688 Loading settings from file:/home/cluster/cassandra/con= f/cassandra.yaml
ERROR 12:19:46,985 Fatal configuration error
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml=
at org.apache.cassa= ndra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java= :100)
at org.a= pache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.jav= a:135)
at org.apache.cassa= ndra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:111)<= /div>
at org.apache.= cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:156)
at org.apache.cassa= ndra.service.CassandraDaemon.activate(CassandraDaemon.java:496)
<= span class=3D"" style=3D"white-space:pre"> at org.apache.cassandra.s= ervice.CassandraDaemon.main(CassandraDaemon.java:585)
Caused by: Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception= =3DCannot create property=3Dseed_provider for JavaBean=3Dorg.apache.cassand= ra.config.Config@676c6370; java.lang.reflect.InvocationTargetException
=C2=A0in 'reader', line 1, column 1:
=C2=A0 =C2=A0 c= luster_name: 'pcross'
=C2=A0 =C2=A0 ^

at org.yaml.snakey= aml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:= 333)
at org.yaml.snakeya= ml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)
at org.yaml.snak= eyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:14= 1)
at org.yaml.snakeya= ml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127)
at org.yaml.snakey= aml.Yaml.loadFromReader(Yaml.java:481)
at org.yaml.snakeya= ml.Yaml.loadAs(Yaml.java:475)
at org.apache.cassandra.config.YamlConfigurationLoader.load= Config(YamlConfigurationLoader.java:93)
... 5 more
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property= =3Dseed_provider for JavaBean=3Dorg.apache.cassandra.config.Config@676c6370= ; java.lang.reflect.InvocationTargetException
at org.yaml.snakeya= ml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constr= uctor.java:299)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(= Constructor.java:189)
at org.yaml.snakeya= ml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:3= 31)
... 11 mor= e
Caused by: org.yaml.snakeyaml.error.YAMLException: java.lang.reflect.I= nvocationTargetException
at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.= construct(Constructor.java:542)
at org.yaml.snakeya= ml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)
at org.yaml.snak= eyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Con= structor.java:296)
... 13 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructo= rAccessorImpl.newInstance0(Native Method)
at sun.reflect.Nati= veConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57= )
at sun.refle= ct.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcces= sorImpl.java:45)
at java.lang.reflec= t.Constructor.newInstance(Constructor.java:526)
at org.yaml.snakeyaml.constructor.Constru= ctor$ConstructSequence.construct(Constructor.java:540)
... 15 more
Caused by: java.lang.NullPointerException
at org.apache.cassandra.config.SeedProviderD= ef.<init>(SeedProviderDef.java:33)
... 20 more
Invalid yaml


I am not sure= exactly whats making it to throw NullPointer and halt the process.

Expert Advice would be appreciated!
UR= GENT!

Thanks!
--047d7b621d64c235f7050183064c--