Parse xml and store data in Map using xom parser

2013-12-08 Thread Santosh Shet
Hi, I am trying to parse below shown XML file using xom parser in java and put each key,value pairs into Map. Later I am trying to insert this Map into Cassandra using Mutator object. My XML file looks like as below: 0.25000 Percentage

Re: Parse xml and store data in Map using xom parser

2013-12-08 Thread Dave Brosius
Not really a cassandra question, but it would seem your xml file isn't particularly well designed. It would seem you need to qualify your entries with indices when put in the map, such as put("test.1.C", "0"); put("test.2.C", "50"); before figuring out the cassandra angle, i'd rethin

Re: Multiple writers writing to a cassandra node...

2013-12-08 Thread Aaron Morton
IllegalRequestException does not existing in the server code in version 2.0. Is this thrown by the client ? InvalidRequestException is thrown in a number of places. Check you are using the client correctly. cheers - Aaron Morton New Zealand @aaronmorton Co-Founder & Principa

Re: Unable to run hadoop_cql3_word_count examples

2013-12-08 Thread Aaron Morton
> InvalidRequestException(why:consistency level LOCAL_ONE not compatible with > replication strategy (org.apache.cassandra.locator.SimpleStrategy)) at > > The LOCAL_ONE consistency level can only be used with the NetworkTopologyStrategy. I had a quick look and the code does not use LOCAL_ONE

Re: Commitlog replay makes dropped and recreated keyspace and column family rows reappear

2013-12-08 Thread Aaron Morton
Do you have the logs from after the restart ? Did it include a "Drop Keyspace…” INFO level message ? Cheers - Aaron Morton New Zealand @aaronmorton Co-Founder & Principal Consultant Apache Cassandra Consulting http://www.thelastpickle.com On 4/12/2013, at 2:44 am, Desimpel, I

Re: CQL workaround for modifying a primary key

2013-12-08 Thread Aaron Morton
I just tested this with 1.2.9 and DROP TABLE took a snapshot and moved the existing files out of the dir. Do you have some more steps to reproduce ? Cheers A - Aaron Morton New Zealand @aaronmorton Co-Founder & Principal Consultant Apache Cassandra Consulting http://www.thelas

Re: How to measure data transfer between data centers?

2013-12-08 Thread Hobin Yoon
I had the same requirement and modified iptraf to log traffic every second. https://github.com/hobinyoon/iptraf-3.0.0.git Hobin On Thu, Dec 5, 2013 at 2:17 AM, Jason Wee wrote: > Hi, > > Will it be simpler to just measure the network interface of the node > instead? > > /Jason > > > On Thu, D

Re: Unable to run hadoop_cql3_word_count examples

2013-12-08 Thread Parth Patil
Hi Aaron, Thanks for your response. I didn't make any change to the code when I got that exception. I just ran the example as is after I cloned the repo from github. I did a git pull today on cassandra-2.0 branch, built via ant and re-ran the example and now I am not getting the error from before

Re: Multiple writers writing to a cassandra node...

2013-12-08 Thread Krishna Chaitanya
Fixed the bug. One of the clients was trying to drop a context to which another client was writing and this was causing the exception. Thanks. On Dec 8, 2013 11:31 PM, "Aaron Morton" wrote: > IllegalRequestException does not existing in the server code in version > 2.0. Is this thrown by the cli

RE: Parse xml and store data in Map using xom parser

2013-12-08 Thread Santosh Shet
Hi Dave, Thanks for your reply. I don't have any control over the XML file. I would try to put in HashMap as you suggested. Regards, Santosh From: Dave Brosius [mailto:dbros...@mebigfatguy.com] Sent: Sunday, December 08, 2013 9:39 PM To: user@cassandra.apache.org Subject: Re: Parse xml and stor