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:dbros...@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.
-----------------------------------------------------------------------------------------------------------------------