You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Asha Subramanian <As...@hcl.com> on 2012/01/18 02:58:48 UTC

Problems Starting Cassandra Server -

I am a new user of Cassandra and want to understand the basics of Cassandra before moving to cluster installations etc..

I picked up the latest version of Cassandra from the home page 1.0.7 released on 2012/01/16. I am installing on Windows 7

I have followed all the instx for changing the Cassandra.yaml and also the environment variables.. However when I start the server, I get the following error -

What could be the problem ???

F:\cassandra\bin>cassandra.bat
Starting Cassandra Server
INFO 07:22:37,766 Logging initialized
INFO 07:22:37,828 JVM vendor/version: Java HotSpot(TM) Client VM/1.6.0_30
INFO 07:22:37,844 Heap size: 1070399488/1070399488
INFO 07:22:37,844 Classpath: F:\cassandra\conf;F:\cassandra\lib\antlr-3.2.jar;F
:\cassandra\lib\apache-cassandra-1.0.6.jar;F:\cassandra\lib\apache-cassandra-cli
entutil-1.0.6.jar;F:\cassandra\lib\apache-cassandra-thrift-1.0.6.jar;F:\cassandr
a\lib\avro-1.4.0-fixes.jar;F:\cassandra\lib\avro-1.4.0-sources-fixes.jar;F:\cass
andra\lib\commons-cli-1.1.jar;F:\cassandra\lib\commons-codec-1.2.jar;F:\cassandr
a\lib\commons-lang-2.4.jar;F:\cassandra\lib\compress-lzf-0.8.4.jar;F:\cassandra\
lib\concurrentlinkedhashmap-lru-1.2.jar;F:\cassandra\lib\guava-r08.jar;F:\cassan
dra\lib\high-scale-lib-1.1.2.jar;F:\cassandra\lib\jackson-core-asl-1.4.0.jar;F:\
cassandra\lib\jackson-mapper-asl-1.4.0.jar;F:\cassandra\lib\jamm-0.2.5.jar;F:\ca
ssandra\lib\jline-0.9.94.jar;F:\cassandra\lib\json-simple-1.1.jar;F:\cassandra\l
ib\libthrift-0.6.jar;F:\cassandra\lib\log4j-1.2.16.jar;F:\cassandra\lib\servlet-
api-2.5-20081211.jar;F:\cassandra\lib\slf4j-api-1.6.1.jar;F:\cassandra\lib\slf4j
-log4j12-1.6.1.jar;F:\cassandra\lib\snakeyaml-1.6.jar;F:\cassandra\lib\snappy-ja
va-1.0.4.1.jar;F:\cassandra\build\classes\main;F:\cassandra\build\classes\thrift
;F:\cassandra\lib\jamm-0.2.5.jar
INFO 07:22:37,859 JNA not found. Native methods will be disabled.
INFO 07:22:37,891 Loading settings from file:/F:/cassandra/conf/cassandra.yaml
ERROR 07:22:38,234 Fatal configuration error error
Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.
Config; exception=Cannot create property=data_file_directories for JavaBean=org.
apache.cassandra.config.Config@1329642; No single argument constructor found for
class [Ljava.lang.String;
in "<reader>", line 10, column 1:
    cluster_name: 'Test Cluster'
    ^

        at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
uct(Constructor.java:372)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
nstructor.java:177)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(Base
Constructor.java:136)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
tructor.java:122)
        at org.yaml.snakeyaml.Loader.load(Loader.java:52)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescr
iptor.java:133)
        at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCa
ssandraDaemon.java:125)
        at org.apache.cassandra.service.AbstractCassandraDaemon.activate(Abstrac
tCassandraDaemon.java:337)
        at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java
:107)
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=data_f
ile_directories for JavaBean=org.apache.cassandra.config.Config@1329642; No sing
le argument constructor found for class [Ljava.lang.String;
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
JavaBean2ndStep(Constructor.java:305)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
(Constructor.java:184)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
uct(Constructor.java:370)
        ... 9 more
Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument constructo
r found for class [Ljava.lang.String;
        at org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(
Constructor.java:419)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
nstructor.java:177)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
JavaBean2ndStep(Constructor.java:298)
        ... 11 more
null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.c
onfig.Config; exception=Cannot create property=data_file_directories for JavaBea
n=org.apache.cassandra.config.Config@1329642; No single argument constructor fou
nd for class [Ljava.lang.String;
Invalid yaml; unable to start server.  See log for stacktrace.

From: Jeremiah Jordan [mailto:jeremiah.jordan@morningstar.com]
Sent: Wednesday, January 18, 2012 4:34 AM
To: user@cassandra.apache.org
Subject: Re: nodetool ring question

There were some nodetool ring load reporting issues with early version of 1.0.X don't remember when they were fixed, but that could be your issue.  Are you using compressed column families, a lot of the issues were with those.
Might update to 1.0.7.

-Jeremiah

On 01/16/2012 04:04 AM, Michael Vaknine wrote:
Hi,

I have a 4 nodes cluster 1.0.3 version

This is what I get when I run nodetool ring

Address         DC          Rack        Status State   Load            Owns    Token
                                                                               127605887595351923798765477786913079296
10.8.193.87     datacenter1 rack1       Up     Normal  46.47 GB        25.00%  0
10.5.7.76       datacenter1 rack1       Up     Normal  48.01 GB        25.00%  42535295865117307932921825928971026432
10.8.189.197    datacenter1 rack1       Up     Normal  53.7 GB         25.00%  85070591730234615865843651857942052864
10.5.3.17       datacenter1 rack1       Up     Normal  43.49 GB        25.00%  127605887595351923798765477786913079296

I have finished running repair on all 4 nodes.

I have less then 10 GB on the /var/lib/cassandra/data/ folders

My question is Why nodetool reports almost 50 GB on each node?

Thanks
Michael

________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

RE: Problems Starting Cassandra Server -

Posted by Asha Subramanian <As...@hcl.com>.
Thank you very much.. The server is up now.. I now hope to get started with my first app on a single cluster Cassandra ...

Asha

From: Dave Brosius [mailto:dbrosius@mebigfatguy.com]
Sent: Wednesday, January 18, 2012 11:23 AM
To: user@cassandra.apache.org; Asha Subramanian
Subject: Re: Problems Starting Cassandra Server -

Change your yaml entry for data_file_directories from

data_file_directories: F:\cassandra\data

to


data_file_directories:
    - F:\cassandra\data


On 01/17/2012 11:54 PM, Asha Subramanian wrote:
Here is the yaml file..

Thanks

From: Dave Brosius [mailto:dbrosius@mebigfatguy.com]
Sent: Wednesday, January 18, 2012 9:07 AM
To: user@cassandra.apache.org<ma...@cassandra.apache.org>; Asha Subramanian
Subject: Re: Problems Starting Cassandra Server -

It probably would be useful to know what your yaml file looks like.

On 01/17/2012 08:58 PM, Asha Subramanian wrote:

I am a new user of Cassandra and want to understand the basics of Cassandra before moving to cluster installations etc..

I picked up the latest version of Cassandra from the home page 1.0.7 released on 2012/01/16. I am installing on Windows 7

I have followed all the instx for changing the Cassandra.yaml and also the environment variables.. However when I start the server, I get the following error -

What could be the problem ???

F:\cassandra\bin>cassandra.bat
Starting Cassandra Server
INFO 07:22:37,766 Logging initialized
INFO 07:22:37,828 JVM vendor/version: Java HotSpot(TM) Client VM/1.6.0_30
INFO 07:22:37,844 Heap size: 1070399488/1070399488
INFO 07:22:37,844 Classpath: F:\cassandra\conf;F:\cassandra\lib\antlr-3.2.jar;F
:\cassandra\lib\apache-cassandra-1.0.6.jar;F:\cassandra\lib\apache-cassandra-cli
entutil-1.0.6.jar;F:\cassandra\lib\apache-cassandra-thrift-1.0.6.jar;F:\cassandr
a\lib\avro-1.4.0-fixes.jar;F:\cassandra\lib\avro-1.4.0-sources-fixes.jar;F:\cass
andra\lib\commons-cli-1.1.jar;F:\cassandra\lib\commons-codec-1.2.jar;F:\cassandr
a\lib\commons-lang-2.4.jar;F:\cassandra\lib\compress-lzf-0.8.4.jar;F:\cassandra\
lib\concurrentlinkedhashmap-lru-1.2.jar;F:\cassandra\lib\guava-r08.jar;F:\cassan
dra\lib\high-scale-lib-1.1.2.jar;F:\cassandra\lib\jackson-core-asl-1.4.0.jar;F:\
cassandra\lib\jackson-mapper-asl-1.4.0.jar;F:\cassandra\lib\jamm-0.2.5.jar;F:\ca
ssandra\lib\jline-0.9.94.jar;F:\cassandra\lib\json-simple-1.1.jar;F:\cassandra\l
ib\libthrift-0.6.jar;F:\cassandra\lib\log4j-1.2.16.jar;F:\cassandra\lib\servlet-
api-2.5-20081211.jar;F:\cassandra\lib\slf4j-api-1.6.1.jar;F:\cassandra\lib\slf4j
-log4j12-1.6.1.jar;F:\cassandra\lib\snakeyaml-1.6.jar;F:\cassandra\lib\snappy-ja
va-1.0.4.1.jar;F:\cassandra\build\classes\main;F:\cassandra\build\classes\thrift
;F:\cassandra\lib\jamm-0.2.5.jar
INFO 07:22:37,859 JNA not found. Native methods will be disabled.
INFO 07:22:37,891 Loading settings from file:/F:/cassandra/conf/cassandra.yaml<file:///F:%5Ccassandra%5Cconf%5Ccassandra.yaml>
ERROR 07:22:38,234 Fatal configuration error error
Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.
Config; exception=Cannot create property=data_file_directories for JavaBean=org.
apache.cassandra.config.Config@1329642; No single argument constructor found for
class [Ljava.lang.String;
in "<reader>", line 10, column 1:
    cluster_name: 'Test Cluster'
    ^

        at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
uct(Constructor.java:372)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
nstructor.java:177)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(Base
Constructor.java:136)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
tructor.java:122)
        at org.yaml.snakeyaml.Loader.load(Loader.java:52)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescr
iptor.java:133)
        at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCa
ssandraDaemon.java:125)
        at org.apache.cassandra.service.AbstractCassandraDaemon.activate(Abstrac
tCassandraDaemon.java:337)
        at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java
:107)
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=data_f
ile_directories for JavaBean=org.apache.cassandra.config.Config@1329642; No sing
le argument constructor found for class [Ljava.lang.String;
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
JavaBean2ndStep(Constructor.java:305)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
(Constructor.java:184)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
uct(Constructor.java:370)
        ... 9 more
Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument constructo
r found for class [Ljava.lang.String;
        at org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(
Constructor.java:419)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
nstructor.java:177)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
JavaBean2ndStep(Constructor.java:298)
        ... 11 more
null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.c
onfig.Config; exception=Cannot create property=data_file_directories for JavaBea
n=org.apache.cassandra.config.Config@1329642; No single argument constructor fou
nd for class [Ljava.lang.String;
Invalid yaml; unable to start server.  See log for stacktrace.




________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------


Re: Problems Starting Cassandra Server -

Posted by Dave Brosius <db...@mebigfatguy.com>.
Change your yaml entry for data_file_directories from

data_file_directories: F:\cassandra\data

to


data_file_directories:
     - F:\cassandra\data


On 01/17/2012 11:54 PM, Asha Subramanian wrote:
>
> Here is the yaml file..
>
> Thanks
>
> *From:*Dave Brosius [mailto:dbrosius@mebigfatguy.com]
> *Sent:* Wednesday, January 18, 2012 9:07 AM
> *To:* user@cassandra.apache.org; Asha Subramanian
> *Subject:* Re: Problems Starting Cassandra Server -
>
> It probably would be useful to know what your yaml file looks like.
>
> On 01/17/2012 08:58 PM, Asha Subramanian wrote:
>
> I am a new user of Cassandra and want to understand the basics of 
> Cassandra before moving to cluster installations etc..
>
> I picked up the latest version of Cassandra from the home page 1.0.7 
> released on 2012/01/16. I am installing on Windows 7
>
> I have followed all the instx for changing the Cassandra.yaml and also 
> the environment variables.. However when I start the server, I get the 
> following error --
>
> What could be the problem ???
>
> F:\cassandra\bin>cassandra.bat
>
> Starting Cassandra Server
>
> INFO 07:22:37,766 Logging initialized
>
> INFO 07:22:37,828 JVM vendor/version: Java HotSpot(TM) Client VM/1.6.0_30
>
> INFO 07:22:37,844 Heap size: 1070399488/1070399488
>
> INFO 07:22:37,844 Classpath: 
> F:\cassandra\conf;F:\cassandra\lib\antlr-3.2.jar;F
>
> :\cassandra\lib\apache-cassandra-1.0.6.jar;F:\cassandra\lib\apache-cassandra-cli
>
> entutil-1.0.6.jar;F:\cassandra\lib\apache-cassandra-thrift-1.0.6.jar;F:\cassandr
>
> a\lib\avro-1.4.0-fixes.jar;F:\cassandra\lib\avro-1.4.0-sources-fixes.jar;F:\cass
>
> andra\lib\commons-cli-1.1.jar;F:\cassandra\lib\commons-codec-1.2.jar;F:\cassandr
>
> a\lib\commons-lang-2.4.jar;F:\cassandra\lib\compress-lzf-0.8.4.jar;F:\cassandra\
>
> lib\concurrentlinkedhashmap-lru-1.2.jar;F:\cassandra\lib\guava-r08.jar;F:\cassan
>
> dra\lib\high-scale-lib-1.1.2.jar;F:\cassandra\lib\jackson-core-asl-1.4.0.jar;F:\
>
> cassandra\lib\jackson-mapper-asl-1.4.0.jar;F:\cassandra\lib\jamm-0.2.5.jar;F:\ca
>
> ssandra\lib\jline-0.9.94.jar;F:\cassandra\lib\json-simple-1.1.jar;F:\cassandra\l
>
> ib\libthrift-0.6.jar;F:\cassandra\lib\log4j-1.2.16.jar;F:\cassandra\lib\servlet-
>
> api-2.5-20081211.jar;F:\cassandra\lib\slf4j-api-1.6.1.jar;F:\cassandra\lib\slf4j
>
> -log4j12-1.6.1.jar;F:\cassandra\lib\snakeyaml-1.6.jar;F:\cassandra\lib\snappy-ja
>
> va-1.0.4.1.jar;F:\cassandra\build\classes\main;F:\cassandra\build\classes\thrift
>
> ;F:\cassandra\lib\jamm-0.2.5.jar
>
> INFO 07:22:37,859 JNA not found. Native methods will be disabled.
>
> INFO 07:22:37,891 Loading settings from 
> file:/F:/cassandra/conf/cassandra.yaml 
> <file:///F:%5Ccassandra%5Cconf%5Ccassandra.yaml>
>
> ERROR 07:22:38,234 Fatal configuration error error
>
> Can't construct a java object for 
> tag:yaml.org,2002:org.apache.cassandra.config.
>
> Config; exception=Cannot create property=data_file_directories for 
> JavaBean=org.
>
> apache.cassandra.config.Config@1329642; No single argument constructor 
> found for
>
> class [Ljava.lang.String;
>
> in "<reader>", line 10, column 1:
>
>     cluster_name: 'Test Cluster'
>
>     ^
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
>
> uct(Constructor.java:372)
>
>         at 
> org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
>
> nstructor.java:177)
>
>         at 
> org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(Base
>
> Constructor.java:136)
>
>         at 
> org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
>
> tructor.java:122)
>
>         at org.yaml.snakeyaml.Loader.load(Loader.java:52)
>
>         at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
>
>         at 
> org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescr
>
> iptor.java:133)
>
>         at 
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCa
>
> ssandraDaemon.java:125)
>
>         at 
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(Abstrac
>
> tCassandraDaemon.java:337)
>
>         at 
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java
>
> :107)
>
> Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create 
> property=data_f
>
> ile_directories for 
> JavaBean=org.apache.cassandra.config.Config@1329642; No sing
>
> le argument constructor found for class [Ljava.lang.String;
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
>
> JavaBean2ndStep(Constructor.java:305)
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
>
> (Constructor.java:184)
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
>
> uct(Constructor.java:370)
>
>         ... 9 more
>
> Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument 
> constructo
>
> r found for class [Ljava.lang.String;
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(
>
> Constructor.java:419)
>
>         at 
> org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
>
> nstructor.java:177)
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
>
> JavaBean2ndStep(Constructor.java:298)
>
>         ... 11 more
>
> null; Can't construct a java object for 
> tag:yaml.org,2002:org.apache.cassandra.c
>
> onfig.Config; exception=Cannot create property=data_file_directories 
> for JavaBea
>
> n=org.apache.cassandra.config.Config@1329642; No single argument 
> constructor fou
>
> nd for class [Ljava.lang.String;
>
> Invalid yaml; unable to start server.  See log for stacktrace.
>
>
> ------------------------------------------------------------------------
> ::DISCLAIMER::
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and 
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its 
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily 
> reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, 
> modification, distribution and / or publication of
> this message without the prior written consent of the author of this 
> e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender 
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------


RE: Problems Starting Cassandra Server -

Posted by Asha Subramanian <As...@hcl.com>.
Here is the yaml file..

Thanks

From: Dave Brosius [mailto:dbrosius@mebigfatguy.com]
Sent: Wednesday, January 18, 2012 9:07 AM
To: user@cassandra.apache.org; Asha Subramanian
Subject: Re: Problems Starting Cassandra Server -

It probably would be useful to know what your yaml file looks like.

On 01/17/2012 08:58 PM, Asha Subramanian wrote:

I am a new user of Cassandra and want to understand the basics of Cassandra before moving to cluster installations etc..

I picked up the latest version of Cassandra from the home page 1.0.7 released on 2012/01/16. I am installing on Windows 7

I have followed all the instx for changing the Cassandra.yaml and also the environment variables.. However when I start the server, I get the following error -

What could be the problem ???

F:\cassandra\bin>cassandra.bat
Starting Cassandra Server
INFO 07:22:37,766 Logging initialized
INFO 07:22:37,828 JVM vendor/version: Java HotSpot(TM) Client VM/1.6.0_30
INFO 07:22:37,844 Heap size: 1070399488/1070399488
INFO 07:22:37,844 Classpath: F:\cassandra\conf;F:\cassandra\lib\antlr-3.2.jar;F
:\cassandra\lib\apache-cassandra-1.0.6.jar;F:\cassandra\lib\apache-cassandra-cli
entutil-1.0.6.jar;F:\cassandra\lib\apache-cassandra-thrift-1.0.6.jar;F:\cassandr
a\lib\avro-1.4.0-fixes.jar;F:\cassandra\lib\avro-1.4.0-sources-fixes.jar;F:\cass
andra\lib\commons-cli-1.1.jar;F:\cassandra\lib\commons-codec-1.2.jar;F:\cassandr
a\lib\commons-lang-2.4.jar;F:\cassandra\lib\compress-lzf-0.8.4.jar;F:\cassandra\
lib\concurrentlinkedhashmap-lru-1.2.jar;F:\cassandra\lib\guava-r08.jar;F:\cassan
dra\lib\high-scale-lib-1.1.2.jar;F:\cassandra\lib\jackson-core-asl-1.4.0.jar;F:\
cassandra\lib\jackson-mapper-asl-1.4.0.jar;F:\cassandra\lib\jamm-0.2.5.jar;F:\ca
ssandra\lib\jline-0.9.94.jar;F:\cassandra\lib\json-simple-1.1.jar;F:\cassandra\l
ib\libthrift-0.6.jar;F:\cassandra\lib\log4j-1.2.16.jar;F:\cassandra\lib\servlet-
api-2.5-20081211.jar;F:\cassandra\lib\slf4j-api-1.6.1.jar;F:\cassandra\lib\slf4j
-log4j12-1.6.1.jar;F:\cassandra\lib\snakeyaml-1.6.jar;F:\cassandra\lib\snappy-ja
va-1.0.4.1.jar;F:\cassandra\build\classes\main;F:\cassandra\build\classes\thrift
;F:\cassandra\lib\jamm-0.2.5.jar
INFO 07:22:37,859 JNA not found. Native methods will be disabled.
INFO 07:22:37,891 Loading settings from file:/F:/cassandra/conf/cassandra.yaml<file:///F:\cassandra\conf\cassandra.yaml>
ERROR 07:22:38,234 Fatal configuration error error
Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.
Config; exception=Cannot create property=data_file_directories for JavaBean=org.
apache.cassandra.config.Config@1329642; No single argument constructor found for
class [Ljava.lang.String;
in "<reader>", line 10, column 1:
    cluster_name: 'Test Cluster'
    ^

        at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
uct(Constructor.java:372)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
nstructor.java:177)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(Base
Constructor.java:136)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
tructor.java:122)
        at org.yaml.snakeyaml.Loader.load(Loader.java:52)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescr
iptor.java:133)
        at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCa
ssandraDaemon.java:125)
        at org.apache.cassandra.service.AbstractCassandraDaemon.activate(Abstrac
tCassandraDaemon.java:337)
        at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java
:107)
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=data_f
ile_directories for JavaBean=org.apache.cassandra.config.Config@1329642; No sing
le argument constructor found for class [Ljava.lang.String;
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
JavaBean2ndStep(Constructor.java:305)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
(Constructor.java:184)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
uct(Constructor.java:370)
        ... 9 more
Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument constructo
r found for class [Ljava.lang.String;
        at org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(
Constructor.java:419)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
nstructor.java:177)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
JavaBean2ndStep(Constructor.java:298)
        ... 11 more
null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.c
onfig.Config; exception=Cannot create property=data_file_directories for JavaBea
n=org.apache.cassandra.config.Config@1329642; No single argument constructor fou
nd for class [Ljava.lang.String;
Invalid yaml; unable to start server.  See log for stacktrace.




________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

Re: Problems Starting Cassandra Server -

Posted by Dave Brosius <db...@mebigfatguy.com>.
It probably would be useful to know what your yaml file looks like.

On 01/17/2012 08:58 PM, Asha Subramanian wrote:
>
> I am a new user of Cassandra and want to understand the basics of 
> Cassandra before moving to cluster installations etc..
>
> I picked up the latest version of Cassandra from the home page 1.0.7 
> released on 2012/01/16. I am installing on Windows 7
>
> I have followed all the instx for changing the Cassandra.yaml and also 
> the environment variables.. However when I start the server, I get the 
> following error --
>
> What could be the problem ???
>
> F:\cassandra\bin>cassandra.bat
>
> Starting Cassandra Server
>
> INFO 07:22:37,766 Logging initialized
>
> INFO 07:22:37,828 JVM vendor/version: Java HotSpot(TM) Client VM/1.6.0_30
>
> INFO 07:22:37,844 Heap size: 1070399488/1070399488
>
> INFO 07:22:37,844 Classpath: 
> F:\cassandra\conf;F:\cassandra\lib\antlr-3.2.jar;F
>
> :\cassandra\lib\apache-cassandra-1.0.6.jar;F:\cassandra\lib\apache-cassandra-cli
>
> entutil-1.0.6.jar;F:\cassandra\lib\apache-cassandra-thrift-1.0.6.jar;F:\cassandr
>
> a\lib\avro-1.4.0-fixes.jar;F:\cassandra\lib\avro-1.4.0-sources-fixes.jar;F:\cass
>
> andra\lib\commons-cli-1.1.jar;F:\cassandra\lib\commons-codec-1.2.jar;F:\cassandr
>
> a\lib\commons-lang-2.4.jar;F:\cassandra\lib\compress-lzf-0.8.4.jar;F:\cassandra\
>
> lib\concurrentlinkedhashmap-lru-1.2.jar;F:\cassandra\lib\guava-r08.jar;F:\cassan
>
> dra\lib\high-scale-lib-1.1.2.jar;F:\cassandra\lib\jackson-core-asl-1.4.0.jar;F:\
>
> cassandra\lib\jackson-mapper-asl-1.4.0.jar;F:\cassandra\lib\jamm-0.2.5.jar;F:\ca
>
> ssandra\lib\jline-0.9.94.jar;F:\cassandra\lib\json-simple-1.1.jar;F:\cassandra\l
>
> ib\libthrift-0.6.jar;F:\cassandra\lib\log4j-1.2.16.jar;F:\cassandra\lib\servlet-
>
> api-2.5-20081211.jar;F:\cassandra\lib\slf4j-api-1.6.1.jar;F:\cassandra\lib\slf4j
>
> -log4j12-1.6.1.jar;F:\cassandra\lib\snakeyaml-1.6.jar;F:\cassandra\lib\snappy-ja
>
> va-1.0.4.1.jar;F:\cassandra\build\classes\main;F:\cassandra\build\classes\thrift
>
> ;F:\cassandra\lib\jamm-0.2.5.jar
>
> INFO 07:22:37,859 JNA not found. Native methods will be disabled.
>
> INFO 07:22:37,891 Loading settings from 
> file:/F:/cassandra/conf/cassandra.yaml
>
> ERROR 07:22:38,234 Fatal configuration error error
>
> Can't construct a java object for 
> tag:yaml.org,2002:org.apache.cassandra.config.
>
> Config; exception=Cannot create property=data_file_directories for 
> JavaBean=org.
>
> apache.cassandra.config.Config@1329642; No single argument constructor 
> found for
>
> class [Ljava.lang.String;
>
> in "<reader>", line 10, column 1:
>
>     cluster_name: 'Test Cluster'
>
>     ^
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
>
> uct(Constructor.java:372)
>
>         at 
> org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
>
> nstructor.java:177)
>
>         at 
> org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(Base
>
> Constructor.java:136)
>
>         at 
> org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
>
> tructor.java:122)
>
>         at org.yaml.snakeyaml.Loader.load(Loader.java:52)
>
>         at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
>
>         at 
> org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescr
>
> iptor.java:133)
>
>         at 
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCa
>
> ssandraDaemon.java:125)
>
>         at 
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(Abstrac
>
> tCassandraDaemon.java:337)
>
>         at 
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java
>
> :107)
>
> Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create 
> property=data_f
>
> ile_directories for 
> JavaBean=org.apache.cassandra.config.Config@1329642; No sing
>
> le argument constructor found for class [Ljava.lang.String;
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
>
> JavaBean2ndStep(Constructor.java:305)
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
>
> (Constructor.java:184)
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.constr
>
> uct(Constructor.java:370)
>
>         ... 9 more
>
> Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument 
> constructo
>
> r found for class [Ljava.lang.String;
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(
>
> Constructor.java:419)
>
>         at 
> org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseCo
>
> nstructor.java:177)
>
>         at 
> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct
>
> JavaBean2ndStep(Constructor.java:298)
>
>         ... 11 more
>
> null; Can't construct a java object for 
> tag:yaml.org,2002:org.apache.cassandra.c
>
> onfig.Config; exception=Cannot create property=data_file_directories 
> for JavaBea
>
> n=org.apache.cassandra.config.Config@1329642; No single argument 
> constructor fou
>
> nd for class [Ljava.lang.String;
>
> Invalid yaml; unable to start server.  See log for stacktrace.
>
>