Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 37195 invoked from network); 17 Nov 2010 20:10:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 20:10:55 -0000 Received: (qmail 81887 invoked by uid 500); 17 Nov 2010 20:11:22 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 81803 invoked by uid 500); 17 Nov 2010 20:11:21 -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 81793 invoked by uid 99); 17 Nov 2010 20:11:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 20:11:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cassuser@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 20:11:17 +0000 Received: by vws19 with SMTP id 19so48462vws.31 for ; Wed, 17 Nov 2010 12:10:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=odr/effK+l/kDKlzYtAOFBQJEWI3DbsYWCc/y9xwWAk=; b=sMfH1QNeaTd3CUEoqf5CFbRINPfgySDZyjn+MG8J3ZT//MdaRVrx3K2TPR1Pksa1wE p/23aCf4LcE0sqRwtDEWUk8JbifykcTPUqk1pn5kdPAp20Jdyf0aPd7LIX4648cqqrBG ex2QM6cN5K4SlgcRxehI6RK+UnoMX22MVzyZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=KYuX0zjwl81BIkpUs06xV3BIA2ZU/JNFmCylzMOhINagX9iRSQImAIVB2FNE+mZENU 2bu7BbbSiYTmeWi+sEZn3AGIOausDKHglcE/LdC8IgHF/mxLRgJHWq2mi4G/rQyunYxK oEGOclwHYydLVdJJ9JgBGl5/vUhQo7peY2gxY= MIME-Version: 1.0 Received: by 10.229.85.207 with SMTP id p15mr7793907qcl.84.1290024656334; Wed, 17 Nov 2010 12:10:56 -0800 (PST) Received: by 10.220.125.79 with HTTP; Wed, 17 Nov 2010 12:10:56 -0800 (PST) In-Reply-To: References: <9a7aaa5e-1bc7-e3f6-8b67-b644a75951c7@me.com> Date: Wed, 17 Nov 2010 12:10:56 -0800 Message-ID: Subject: Re: Starting up cassandra 0.7 From: CassUser CassUser To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=00163683206c64710604954545a5 --00163683206c64710604954545a5 Content-Type: text/plain; charset=ISO-8859-1 We are putting together a patch for that. Also updating the unit test to capture this case. It wasn't failing as a result of it being backwards. On Wed, Nov 17, 2010 at 11:51 AM, CassUser CassUser wrote: > Thanks for looking into that. I created a jira issue for it: > > https://issues.apache.org/jira/browse/CASSANDRA-1753 > > > > On Wed, Nov 17, 2010 at 11:28 AM, Aaron Morton wrote: > >> That does look like a bug >> http://www.mail-archive.com/dev@cassandra.apache.org/msg01167.html >> >> >> Aaron >> >> >> On 17 Nov, 2010,at 03:55 PM, Aaron Morton >> wrote: >> >> It's certainly looks suspect. I've had a look at the code around >> SSTableImport and SSTableExport and the isDeleted value for the col is based >> on IColumn.isMarkedForDelete read when the data was exported. I'll try to >> have a look tonight, or if someone is still up in the states they may help. >> The current 0.7 branch has the same code. >> >> Are there any other errors in the log? >> >> The code sample you've got there uses the TimestampClocks that were once a >> part of the 0.7 development, but have been removed. So your data sample may >> not be usable going forwards. Can you jump to beta3? >> >> Aaron >> >> >> >> On 17 Nov, 2010,at 02:03 PM, CassUser CassUser >> wrote: >> >> Looking at this closer. I noticed the following in the SSTableImport >> Class: >> >> if (col.isDeleted) { >> cfamily.addColumn(path, hexToBytes(col.value), new >> TimestampClock(col.timestamp)); >> } else { >> cfamily.addTombstone(path, hexToBytes(col.value), new >> TimestampClock(col.timestamp)); >> } >> >> This appears to be backwards. >> >> >> On Tue, Nov 16, 2010 at 4:03 PM, CassUser CassUser wrote: >> >>> Looked at how DatabaseDescriptor is loading the yaml file. Using that >>> approach solves the problem with the column_families mapping exception. >>> >>> The problems we are running into currently is regarding a known dataset >>> not being loaded into our test instance correctly. >>> >>> Steps: >>> 1. Create temp directory to host cassandra test instance >>> 2. Create keyspace directories >>> 3 Update yaml file, and copy to test location >>> 4. Add schema from yaml using DatabaseDescriptor. >>> readTablesFromYaml() & DatabaseDescriptor. >>> setTableDefinition >>> 4. Use SSTableImport.importJson to setup a known dataset. We have JSON >>> files converted to 0.7 compliant (byte [] rows) >>> 5. Start Cassandra instance using the EmbeddedCassandraService class >>> >>> Everything appears to work from the log messages. I get the message " >>> Sampling index for ..", and finally "Listening for thrift clients...". When >>> i use a client to query the data in test instance, I notice keys with no >>> columns/values stored (via keyrange slice). Using a open ended column slice >>> for a known key I'm getting zero results. >>> >>> I'm currently running cassandra 0.7. beta2. Is the steps I've outlined >>> above suppose to work in 0.7? We did something similar in 0.6.4 without any >>> problems. Is there known bugs I can look into? >>> >>> Thanks. >>> >>> >>> >>> >>> On Tue, Nov 16, 2010 at 12:24 PM, Aaron Morton wrote: >>> >>>> I've not used the embedded service. >>>> >>>> The code in o.a.c.service.EmbeddedCassandraService says it will read the >>>> yaml file. If the cluster does not have a schema stored I think it will load >>>> the one from yaml. >>>> >>>> Have you tried starting it up with an empty system data dir ? Does it >>>> pickup the schema from the yaml? >>>> >>>> Aaron >>>> >>>> >>>> On 17 Nov, 2010,at 09:17 AM, CassUser CassUser >>>> wrote: >>>> >>>> >>>> Loading yaml file like so: >>>> FileInputStream yamlInputStream = new FileInputStream( >>>> configTemplateFile); >>>> Constructor constructor = new Constructor(Config.class); >>>> Yaml yaml = new Yaml(new Loader(constructor)); >>>> Config conf = (Config) yaml.load(yamlInputStream); >>>> >>>> Fails on the last line. >>>> >>>> Although if i have the CFs defined like this: >>>> keyspaces: >>>> - column_families: >>>> - !!org.apache.cassandra.config.RawColumnFamily >>>> column_metadata: [] >>>> column_type: null >>>> comment: null >>>> compare_subcolumns_with: null >>>> compare_with: BytesType >>>> default_validation_class: null >>>> gc_grace_seconds: 864000 >>>> keys_cached: 200000.0 >>>> max_compaction_threshold: 32 >>>> min_compaction_threshold: 4 >>>> name: Similarity >>>> preload_row_cache: false >>>> read_repair_chance: 1.0 >>>> rows_cached: 0.0 >>>> >>>> >>>> it appears to startup. Any idea whats going on here? >>>> >>>> >>>> >>>> On Tue, Nov 16, 2010 at 11:58 AM, CassUser CassUser >>> > wrote: >>>> >>>>> >>>>> This is embedded for testing cassandra 0.7 beta2. using >>>>> EmbeddedCassandraService. >>>>> >>>>> and manually adding schema programmatically using: >>>>> for (KSMetaData table : >>>>> DatabaseDescriptor.readTablesFromYaml()) { >>>>> for (CFMetaData cfm : table.cfMetaData().values()) { >>>>> CFMetaData.map(cfm); >>>>> } >>>>> DatabaseDescriptor.setTableDefinition(table, >>>>> DatabaseDescriptorgetDefsVersion()); >>>>> } >>>>> >>>>> Is this the correct way to start up a test server, with the schema >>>>> loaded? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Tue, Nov 16, 2010 at 11:41 AM, Aaron Morton < >>>>> aaron@thelastpickle.com> wrote: >>>>> >>>>>> >>>>>> AFAIK the ArrayStoreException is similar to a type mismatch Is it >>>>>> possible you have something mixed up in your class path or source code if >>>>>> you built from source? >>>>>> >>>>>> It looks like the column family info was deserialised into a >>>>>> o.a.c.config.RawColumnFamily but when that object was added to the >>>>>> RawColumnFamily[] array on o.a.c.config.RawKeyspace if was the wrong type. >>>>>> >>>>>> Have you tried a clean build ? There are some things in the call stack >>>>>> which look custom, are you starting from the command line or is this >>>>>> embedded for testing? >>>>>> >>>>>> Hope that helps. >>>>>> Aaron >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 17 Nov, 2010,at 08:09 AM, CassUser CassUser >>>>>> wrote: >>>>>> >>>>>> >>>>>> >>>>>> Here is the yaml: >>>>>> >>>>>> # Cassandra YAML generated from previous config >>>>>> # Configuration wiki: >>>>>> http://wiki.apache.org/cassandra/StorageConfiguration >>>>>> authenticator: org.apache.cassandraauth.AllowAllAuthenticator >>>>>> >>>>>> >>>>>> auto_bootstrap: false >>>>>> binary_memtable_throughput_in_mb: 256 >>>>>> cluster_name: Test Cluster >>>>>> column_index_size_in_kb: 64 >>>>>> commitlog_rotation_threshold_in_mb: 128 >>>>>> commitlog_sync: periodic >>>>>> commitlog_sync_period_in_ms: 10000 >>>>>> compaction_thread_priority: 1 >>>>>> concurrent_reads: 8 >>>>>> concurrent_writes: 32 >>>>>> disk_access_mode: auto >>>>>> dynamic_snitch: false >>>>>> endpoint_snitch: org.apache.cassandra.locator.SimpleSnitch >>>>>> request_scheduler: org.apache.cassandra.scheduler.RoundRobinScheduler >>>>>> request_scheduler_id: keyspace >>>>>> hinted_handoff_enabled: true >>>>>> in_memory_compaction_limit_in_mb: 128 >>>>>> index_interval: 128 >>>>>> keyspaces: >>>>>> - name: myKeyspace >>>>>> >>>>>> replica_placement_strategy: >>>>>> orgapache.cassandra.locator.SimpleStrategy >>>>>> >>>>>> >>>>>> replication_factor: 1 >>>>>> column_families: >>>>>> - name: Standard1 >>>>>> rows_cached: 100 >>>>>> keys_cached: 1 >>>>>> compare_with: UTF8Type >>>>>> memtable_flush_after_mins: 60 >>>>>> memtable_operations_in_millions: 0.3 >>>>>> memtable_throughput_in_mb: 64 >>>>>> partitioner: org.apache.cassandra.dht.RandomPartitioner >>>>>> phi_convict_threshold: 8 >>>>>> rpc_keepalive: true >>>>>> rpc_port: 9160 >>>>>> rpc_timeout_in_ms: 10000 >>>>>> sliced_buffer_size_in_kb: 64 >>>>>> snapshot_before_compaction: false >>>>>> storage_port: 7000 >>>>>> thrift_framed_transport_size_in_mb: 15 >>>>>> thrift_max_message_length_in_mb: 16 >>>>>> >>>>>> and here is the exception i'm receiving: >>>>>> >>>>>> Caused by: Can't construct a java object for tag:yaml.org,2002:org.apachecassandra.config.Config; >>>>>> exception=Cannot create property=keyspaces for Java >>>>>> Bean=org.apache.cassandra.config.Config@12e43f1; Cannot create >>>>>> property=column_families for >>>>>> JavaBean=org.apache.cassandra.config.RawKeyspace@1a8bd74; >>>>>> null >>>>>> in "", line 3, column 1: >>>>>> authenticator: org.apache.cassan ... >>>>>> ^ >>>>>> >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:372) >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructorjava:177) >>>>>> at >>>>>> org.yaml.snakeyamlconstructor.BaseConstructorconstructDocument(BaseConstructor.java:136) >>>>>> >>>>>> >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:122) >>>>>> at org.yaml.snakeyaml.Loader.load(Loader.java:52) >>>>>> at org.yaml.snakeyaml.Yaml.load(Yaml.java:166) >>>>>> at >>>>>> com.atsid.cassandra.testutils.CassandraTestRunner.updateYamlConfig(CassandraTestRunner.java:134) >>>>>> at >>>>>> com.atsid.cassandra.testutils.CassandraTestRunner.init(CassandraTestRunner.java:119) >>>>>> at >>>>>> com.atsid.cassandra.testutils.CassandraTestRunner.main(CassandraTestRunner.java:272) >>>>>> ... 6 more >>>>>> Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create >>>>>> property=keyspaces for JavaBean=org.apache.cassandraconfig.Config@12e43f1; >>>>>> Cannot cr >>>>>> eate property=column_families for >>>>>> JavaBean=org.apache.cassandra.config.RawKeyspace@1a8bd74; null >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:305) >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:184) >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:370) >>>>>> ... 14 more >>>>>> Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create >>>>>> property=column_families for >>>>>> JavaBean=org.apache.cassandra.config.RawKeyspace@1a8bd74 >>>>>> ; null >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:305) >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:184) >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:177) >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.BaseConstructor.constructSequenceStep2(BaseConstructor.java:239) >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.BaseConstructor.constructSequence(BaseConstructor.java:233) >>>>>> at >>>>>> org.yaml.snakeyaml.constructorConstructor$ConstructSequence.construct(Constructor.java:543) >>>>>> >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.BaseConstructorconstructObject(BaseConstructor.java:177) >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:298) >>>>>> ... 16 more >>>>>> Caused by: java.lang.ArrayStoreException >>>>>> at java.lang.System.arraycopy(Native Method) >>>>>> at java.util.Arrays.copyOf(Arrays.java:2763) >>>>>> at java.util.ArrayList.toArray(ArrayList.java:305) >>>>>> at >>>>>> org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:301) >>>>>> ... 23 more >>>>>> >>>>>> >>>>> >>>> >>> >> > --00163683206c64710604954545a5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable We are putting together a patch for that.=A0 Also updating the unit test to= capture this case.=A0 It wasn't failing as a result of it being backwa= rds.

On Wed, Nov 17, 2010 at 11:51 AM, Ca= ssUser CassUser <cassuser@gmail.com> wrote:
Thanks for lookin= g into that. I created a jira issue for it:

https://issues.a= pache.org/jira/browse/CASSANDRA-1753



On Wed, Nov 17, 2010 at 11:28 AM, Aaron Morton <aaron@thelastpickle.= com> wrote:

Aaron


On 17 Nov, 2010= ,at 03:55 PM, Aaron Morton <aaron@thelastpickle.com> wrote:

<= div>
It's certainly looks suspect. I've had a look at the code = around SSTableImport and SSTableExport and the isDeleted value for the col = is based on IColumn.isMarkedForDelete read when the data was exported. I= 9;ll try to have a look tonight, or if someone is still up in the states th= ey may help. The current 0.7 branch has the same code.=A0

Are there any other errors in the log?=A0
The code sample you've got there uses the TimestampClocks t= hat were once a part of the 0.7 development, but have been removed. So your= data sample may not be usable going forwards. Can you jump to beta3?

Aaron



On 17= Nov, 2010,at 02:03 PM, CassUser CassUser <cassuser@gmail.com> wrote:

Looking at t= his closer.=A0 I noticed the following in the SSTableImport Class:

= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (col.isDeleted) {
=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cfamily.addColumn(path, hexToBytes(col.value= ), new TimestampClock(col.timestamp));
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } else {
=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 cfamily.addTombstone(path, hexToBytes(col.value), new Ti= mestampClock(col.timestamp));
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 }
This appears to be backwards.


On Tue, Nov 16, 2010 at 4:03 PM, CassUser CassUser <= cassuser@gmail.com> wrote:
=
Looked at how DatabaseDescriptor is loading the yaml file.= =A0 Using that approach solves the problem with the column_families mapping= exception.

The problems we are running into currently is regarding a known dataset= not being loaded into our test instance correctly.

Steps:
1.=A0 Create temp directory to host cassandra test instance2.=A0 Create keyspace directories
3=A0 Update yaml file, and copy to t= est location
4.=A0 Add schema from yaml using DatabaseDescriptor.
readTablesFromYaml() & DatabaseDescriptor.
setTableDefinition
=
4.=A0 Use SSTableImport.importJson to setup a known dataset.=A0 We ha= ve JSON files converted to 0.7 compliant (byte [] rows)
5.=A0 Start Cass= andra instance using the EmbeddedCassandraService class

Everything appears to work from the log messages.=A0 I get the message = " Sampling index for ..", and finally "Listening for thrift = clients...".=A0 When i use a client to query the data in test instance= , I notice keys with no columns/values stored (via keyrange slice).=A0 Usin= g a open ended column slice for a known key I'm getting zero results.
I'm currently running cassandra 0.7. beta2.=A0 Is the steps I'v= e outlined above suppose to work in 0.7?=A0 We did something similar in 0.6= .4 without any problems.=A0 Is there known bugs I can look into?

Tha= nks.




On Tue, Nov 16, 201= 0 at 12:24 PM, Aaron Morton <aaron@thelastpickle.com> = wrote:
I've not used the embedded service.=A0

The code in o.a.c.service.EmbeddedCassandraService = says it will read the yaml file. If the cluster does not have a schema stor= ed I think it will load the one from yaml.=A0

Have you tried starting it up with an empty system data= dir ? Does it pickup the schema from the yaml?

Aa= ron

=A0
On 17 Nov, 2010,at 09:17 AM, = CassUser CassUser <cassuser@gmail.com> wrote:

=

Loading yaml file like so:
=A0= =A0=A0 =A0=A0=A0 FileInputStream yamlInputStream =3D new FileInputStream( =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 configTemplateFile);
=A0=A0=A0 =A0=A0=A0 Constructor constructor =3D new Constructor(Config.clas= s);
=A0=A0=A0 =A0=A0=A0 Yaml yaml =3D new Yaml(new Loader(constructor));=
=A0=A0=A0 =A0=A0=A0 Config conf =3D (Config) yaml.load(yamlInputStream);
Fails on the last line.

Although if i have the CFs defined like= this:
keyspaces:
- column_families:
=A0 - !!org.apache.cassandra.= config.RawColumnFamily
=A0=A0=A0 column_metadata: []
=A0=A0=A0 column_type: null
=A0=A0=A0 c= omment: null
=A0=A0=A0 compare_subcolumns_with: null
=A0=A0=A0 compar= e_with: BytesType
=A0=A0=A0 default_validation_class: null
=A0=A0=A0 = gc_grace_seconds: 864000
=A0=A0=A0 keys_cached: 200000.0
=A0=A0=A0 max_compaction_threshold: 32
=A0=A0=A0 min_compaction_threshol= d: 4
=A0=A0=A0 name: Similarity
=A0=A0=A0 preload_row_cache: false=A0=A0=A0 read_repair_chance: 1.0
=A0=A0=A0 rows_cached: 0.0

it appears to startup.=A0 Any idea whats going on here?


=

On Tue, Nov 16, 2010 at 11:58 AM, CassUser Ca= ssUser <cassuser@gmail.com> wrote:

This is embedded for testing cassandra 0.7 beta2.=A0 using EmbeddedCassandr= aService.

and manually adding schema programmatically using:
=A0= =A0=A0 =A0=A0=A0 for (KSMetaData table : DatabaseDescriptor.readTablesFromY= aml()) {
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 for (CFMetaData cfm : table.cfMetaData().valu= es()) {
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 CFMetaData.map(cfm);
= =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 }
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 DatabaseDe= scriptor.setTableDefinition(table,
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0= =A0 =A0=A0=A0 DatabaseDescriptorgetDefsVersion());
=A0=A0=A0 =A0=A0=A0 }

Is this the correct way to start up a test ser= ver, with the schema loaded?




On Tue, Nov 16, 2010 at 11:41 AM, Aaron Morton <aaron@the= lastpickle.com> wrote:

AFAIK the ArrayStoreException is similar to a type mismatch=A0Is it possibl= e you have something mixed up in your class path or source code if you buil= t from source?=A0

It looks like the column family info was deserialised i= nto a o.a.c.config.RawColumnFamily but when that object was added to the Ra= wColumnFamily[] array on o.a.c.config.RawKeyspace if was the wrong type.=A0=

Have you tried a clean build ? There are some things in= the call stack which look custom, are you starting from the command line o= r is this embedded for testing?

Hope that helps.
Aaron





On 17 Nov, 2010,at 08:09 AM, CassUser CassUser <cassuser@gmail.com&= gt; wrote:



Here is the yaml:

# Cassandra YAML generated from previous config=
# Configuration wiki: http://wiki.apache.org/cassandra/StorageConf= iguration
authenticator: org.apache.cassandraauth.AllowAllAuthenticator

=

auto_bootstrap: false
binary_memtable_throughput_in_mb: 2= 56
cluster_name: Test Cluster
column_index_size_in_kb: 64
commitlog_rotation_threshold_in_mb: 128
commitlog_sync: periodic
commitlog_sync_period_in_ms: 10000
compactio= n_thread_priority: 1
concurrent_reads: 8
concurrent_writes: 32
dis= k_access_mode: auto
dynamic_snitch: false
endpoint_snitch: org.apache= .cassandra.locator.SimpleSnitch
request_scheduler: org.apache.cassandra.scheduler.RoundRobinScheduler
re= quest_scheduler_id: keyspace
hinted_handoff_enabled: true
in_memory_c= ompaction_limit_in_mb: 128
index_interval: 128
keyspaces:
=A0=A0= =A0 - name: myKeyspace

=A0=A0=A0=A0=A0 replica_placement_strategy: orgapache.cassandra.locator.Sim= pleStrategy


= =A0=A0=A0=A0=A0 replication_factor: 1
=A0=A0=A0=A0=A0 column_families:=A0=A0=A0=A0=A0=A0=A0 - name: Standard1
=A0=A0=A0=A0=A0=A0=A0=A0=A0 rows_cached: 100
=A0=A0=A0=A0=A0=A0=A0=A0=A0 keys_cached: 1
=A0=A0=A0=A0=A0=A0=A0=A0=A0 compare_with: UTF8Type
memtable_flush_after_= mins: 60
memtable_operations_in_millions: 0.3
memtable_throughput_in_= mb: 64
partitioner: org.apache.cassandra.dht.RandomPartitioner
phi_co= nvict_threshold: 8
rpc_keepalive: true
rpc_port: 9160
rpc_timeout_in_ms: 10000
sliced= _buffer_size_in_kb: 64
snapshot_before_compaction: false
storage_port= : 7000
thrift_framed_transport_size_in_mb: 15
thrift_max_message_leng= th_in_mb: 16

and here is the exception i'm receiving:

Caused by: Can'= t construct a java object for tag:yaml.org,2002:org.apachecassandra.config.Config; exception=3DCanno= t create property=3Dkeyspaces for Java
Bean=3Dorg.apache.cassandra.config.Config@12e43f1; Cannot create property= =3Dcolumn_families for JavaBean=3Dorg.apache.cassandra.config.RawKeyspace@1= a8bd74;
null
=A0in "<reader>", line 3, column 1:
= =A0=A0=A0 authenticator: org.apache.cassan ...
=A0=A0=A0 ^

=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.= Constructor$ConstructYamlObject.construct(Constructor.java:372)
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.BaseConstructor= .constructObject(BaseConstructorjava:177)
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyamlconstructor.BaseConstructorconst= ructDocument(BaseConstructor.java:136)


=A0= =A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.BaseConstructor.getSin= gleData(BaseConstructor.java:122)
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.Loader.load(Loader.java:52)
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
=A0= =A0=A0=A0=A0=A0=A0 at com.atsid.cassandra.testutils.CassandraTestRunner.upd= ateYamlConfig(CassandraTestRunner.java:134)
=A0=A0=A0=A0=A0=A0=A0 at com= .atsid.cassandra.testutils.CassandraTestRunner.init(CassandraTestRunner.jav= a:119)
=A0=A0=A0=A0=A0=A0=A0 at com.atsid.cassandra.testutils.CassandraTestRunner.= main(CassandraTestRunner.java:272)
=A0=A0=A0=A0=A0=A0=A0 ... 6 more
C= aused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=3D= keyspaces for JavaBean=3Dorg.apache.cassandraconfig.Config@12e43f1; Cannot = cr
eate property=3Dcolumn_families for JavaBean=3Dorg.apache.cassandra.config.= RawKeyspace@1a8bd74; null
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.co= nstructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor= .java:305)
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.Constructor$Constru= ctMapping.construct(Constructor.java:184)
=A0=A0=A0=A0=A0=A0=A0 at org.y= aml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constru= ctor.java:370)
=A0=A0=A0=A0=A0=A0=A0 ... 14 more
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property= =3Dcolumn_families for JavaBean=3Dorg.apache.cassandra.config.RawKeyspace@1= a8bd74
; null
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor= .Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:305= )
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.Constructor$Constru= ctMapping.construct(Constructor.java:184)
=A0=A0=A0=A0=A0=A0=A0 at org.y= aml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.j= ava:177)
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.BaseCon= structor.constructSequenceStep2(BaseConstructor.java:239)
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.BaseConstructor.con= structSequence(BaseConstructor.java:233)
=A0=A0=A0=A0=A0=A0=A0 at = org.yaml.snakeyaml.constructorConstructor$ConstructSequence.construct(Const= ructor.java:543)

=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.BaseConstructor= constructObject(BaseConstructor.java:177)
=A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.Constructor$Constru= ctMapping.constructJavaBean2ndStep(Constructor.java:298)
=A0=A0=A0=A0=A0= =A0=A0 ... 16 more
Caused by: java.lang.ArrayStoreException
=A0=A0=A0= =A0=A0=A0=A0 at java.lang.System.arraycopy(Native Method)
=A0=A0=A0=A0=A0=A0=A0 at java.util.Arrays.copyOf(Arrays.java:2763)
=A0= =A0=A0=A0=A0=A0=A0 at java.util.ArrayList.toArray(ArrayList.java:305)
= =A0=A0=A0=A0=A0=A0=A0 at org.yaml.snakeyaml.constructor.Constructor$Constru= ctMapping.constructJavaBean2ndStep(Constructor.java:301)
=A0=A0=A0=A0=A0=A0=A0 ... 23 more
<= /div>



=

--00163683206c64710604954545a5--