cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jk2mhm <jk2...@yahoo.com>
Subject Re: cassandra initial script does not take default cluster_name
Date Mon, 14 May 2012 23:01:45 GMT

aaron morton <aaron <at> thelastpickle.com> writes:

> 
> Looks like a formatting error in the yaml file. 
> Cheers
> 
> 
> 
> -----------------
> Aaron Morton
> Freelance Developer
>  <at> aaronmorton
> http://www.thelastpickle.com
> 
> 
> 
> 
> On 15/05/2012, at 8:12 AM, jk2mhm wrote:
> when I tried to start my first Cassandra service instance, i got following 
error message, JavaBean=org.apache.cassandra.config.Config <at> 7c2e1f1f; No 
single argument constructor found for class [Ljava.lang.String; in "<reader>", 
line 10, column 1:    cluster_name: 'testCluster'I have Java 1.6 and set 
commitlog, data and saved_caches in cassandra.yxmlfull log:INFO [main] 2012-05-
14 13:05:43,655 AbstractCassandraDaemon.java (line 100) Logging initialized INFO 
[main] 2012-05-14 13:05:43,659 AbstractCassandraDaemon.java (line 121) JVM 
vendor/version: Java HotSpot(TM) 64-Bit Server VM/1.6.0_26 INFO [main] 2012-05-
14 13:05:43,659 AbstractCassandraDaemon.java (line 122) Heap size: 
1060372480/1060372480 INFO [main] 2012-05-14 13:05:43,659 
AbstractCassandraDaemon.java (line 123) Classpath: C:\apache-cassandra-
1.1.0\conf;C:\apache-cassandra-1.1.0\lib\antlr-3.2.jar;C:\apache-cassandra-
1.1.0\lib\apache-cassandra-1.1.0.jar;C:\apache-cassandra-1.1.0\lib\apache-
cassandra-clientutil-1.1.0.jar;C:\apache-cassandra-1.1.0\lib\apache-cassandra-
thrift-1.1.0.jar;C:\apache-cassandra-1.1.0\lib\avro-1.4.0-fixes.jar;C:\apache-
cassandra-1.1.0\lib\avro-1.4.0-sources-fixes.jar;C:\apache-cassandra-
1.1.0\lib\commons-cli-1.1.jar;C:\apache-cassandra-1.1.0\lib\commons-codec-
1.2.jar;C:\apache-cassandra-1.1.0\lib\commons-lang-2.4.jar;C:\apache-cassandra-
1.1.0\lib\compress-lzf-0.8.4.jar;C:\apache-cassandra-
1.1.0\lib\concurrentlinkedhashmap-lru-1.2.jar;C:\apache-cassandra-
1.1.0\lib\guava-r08.jar;C:\apache-cassandra-1.1.0\lib\high-scale-lib-
1.1.2.jar;C:\apache-cassandra-1.1.0\lib\jackson-core-asl-1.9.2.jar;C:\apache-
cassandra-1.1.0\lib\jackson-mapper-asl-1.9.2.jar;C:\apache-cassandra-
1.1.0\lib\jamm-0.2.5.jar;C:\apache-cassandra-1.1.0\lib\jline-
0.9.94.jar;C:\apache-cassandra-1.1.0\lib\json-simple-1.1.jar;C:\apache-
cassandra-1.1.0\lib\libthrift-0.7.0.jar;C:\apache-cassandra-1.1.0\lib\log4j-
1.2.16.jar;C:\apache-cassandra-1.1.0\lib\metrics-core-2.0.3.jar;C:\apache-
cassandra-1.1.0\lib\servlet-api-2.5-20081211.jar;C:\apache-cassandra-
1.1.0\lib\slf4j-api-1.6.1.jar;C:\apache-cassandra-1.1.0\lib\slf4j-log4j12-
1.6.1.jar;C:\apache-cassandra-1.1.0\lib\snakeyaml-1.6.jar;C:\apache-cassandra-
1.1.0\lib\snappy-java-1.0.4.1.jar;C:\apache-cassandra-1.1.0\lib\snaptree-
0.1.jar;C:\apache-cassandra-1.1.0\build\classes\main;C:\apache-cassandra-
1.1.0\build\classes\thrift;C:\apache-cassandra-1.1.0\lib\jamm-0.2.5.jar INFO 
[main] 2012-05-14 13:05:43,662 CLibrary.java (line 66) JNA not found. Native 
methods will be disabled. INFO [main] 2012-05-14 13:05:43,670 
DatabaseDescriptor.java (line 127) Loading settings from file:/C:/apache-
cassandra-1.1.0/conf/cassandra.yamlERROR [main] 2012-05-14 13:05:43,762 
DatabaseDescriptor.java (line 479) Fatal configuration error errorCan'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 
<at> 7c2e1f1f; No single argument constructor found for class 
[Ljava.lang.String; in "<reader>", line 10, column 1:    cluster_name: 
'testCluster'    ^	at 
org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constru
ctor.java:372)	at 
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.j
ava:177)	at 
org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor
.java:136)	at 
org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.jav
a: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.loadYaml(DatabaseDescriptor.java:
143)	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>
(DatabaseDescriptor.java:118)	at 
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaem
on.java:126)	at 
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraD
aemon.java:353)	at 
org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)Caused
 
by: org.yaml.snakeyaml.error.YAMLException: Cannot create 
property=data_file_directories for JavaBean=org.apache.cassandra.config.Config 
<at> 7c2e1f1f; No single argument constructor found for class 
[Ljava.lang.String;	at 
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2nd
Step(Constructor.java:305)	at 
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructo
r.java:184)	at 
org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constru
ctor.java:370)	... 10 moreCaused by: org.yaml.snakeyaml.error.YAMLException: No 
single argument constructor found for class [Ljava.lang.String;	at 
org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(Constructor
.java:419)	at 
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.j
ava:177)	at 
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2nd
Step(Constructor.java:298)	... 12 more
> 
> 
> 
> 
> 

Thanks Aaron,
  but I did not modify that line. could it be that the original package is 
corrupted?





Mime
View raw message