cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Brosius <dbros...@mebigfatguy.com>
Subject Re: Problems Starting Cassandra Server -
Date Wed, 18 Jan 2012 03:37:07 GMT
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.
>
>


Mime
View raw message