Cassandra update row after delete immediately, and read that, the data not right?

2014-12-25 Thread yhqruc
Hi, all I write a program to test the cassandra2.1. I have 6 nodes cluster. First, I insert 1 million row data into cassandra. the row key from 1 to 100. Then I run my test program. My test program first delete(use batch mutate) the row and insert (use batch mutate) that row,

Re: Cassandra update row after delete immediately, and read that, the data not right?

2014-12-25 Thread Jack Krupansky
What RF? Is the update and read immediately after the delete and insert, or is the read after doing all the updates? Is the delete and insert done with a single batch? -- Jack Krupansky On Thu, Dec 25, 2014 at 4:14 AM, yhq...@sina.com wrote: Hi, all I write a program to test the

Sqoop Free Form Import Query Breaks off

2014-12-25 Thread Vineet Mishra
Hi All, I am facing a issue while Sqoop(Sqoop version: 1.4.3-cdh4.7.0) Import, I am having a Java threaded code to import data from multiple databases running at different servers. Currently I am doing a Java Process Execute something like to execute sqoop job,

Re: Sqoop Free Form Import Query Breaks off

2014-12-25 Thread Jens Rantil
Hi, Does this have anything to do with Cassandra? Also, please try to avoid cross posting; It makes it hard for - future readers to read the full thread. - anyone to follow the full thread. - anyone to respond. I assume there are few who are enrolled to both mailing lists at the same time.

Re: Sqoop Free Form Import Query Breaks off

2014-12-25 Thread Vineet Mishra
Hey regret for the same, as you can see this is a urgent issue I am stuck at and in a hurry instead of including cloudera mailing list eventually I ended up in adding cassandra. Will take care of it in future and thanks for your mail. :) On Thu, Dec 25, 2014 at 9:01 PM, Jens Rantil

Re: Sqoop Free Form Import Query Breaks off

2014-12-25 Thread Abraham Elmahrek
Seems like exec parses the command with StringTokenizer [1]. This may have some difficulty parsing with quotes. Try using the array form of this command to explicitly define your String tokens [2]. Ref: 1.

Re: Sqoop Free Form Import Query Breaks off

2014-12-25 Thread Vineet Mishra
Hi Abe, Thanks for your quick suggestion, even I already tried this as well and unfortunately this too didn't worked for my case. At last I got a work around to the problem, I got a understanding that since its was working fine given the same command through command terminal and was breaking

Re: Sqoop Free Form Import Query Breaks off

2014-12-25 Thread Abraham Elmahrek
Glad it's working. I'm a bit concerned that it didn't work. So just for future reference, removing quotes might be necessary as well. -Abe On Thu, Dec 25, 2014 at 12:39 PM, Vineet Mishra clearmido...@gmail.com wrote: Hi Abe, Thanks for your quick suggestion, even I already tried this as

转发:Re: Cassandra update row after delete immediately, and read that, the data not right?

2014-12-25 Thread yhqruc
Hi, all: The test program first insert one row and then delete it, then read it to compare. The test program run this flow row by row, not batch. Today I found the problem is caused by the deletion timestamp. The machine running the test program may not be time sync with cassandra

Throughput Vs Latency

2014-12-25 Thread Ajay
Hi, I am new to No SQL (and Cassandra). As I am going through few articles on Cassandra, it says Cassandra achieves highest throughput among various No SQL solutions but at the cost of high read and write latency. I have a basic question here - (If my understanding is right) Latency means the

RE: Throughput Vs Latency

2014-12-25 Thread Job Thomas
Hi, First of all,the write latency of cassandra is not high(Read is high). The high throughput is achieved through distributes read and write. Your doubt ( If Latency is more how come the Throughput is high ) is some what right if you put high consistency to both read and write. You will

Re: Throughput Vs Latency

2014-12-25 Thread Ajay
Thanks Thomas for the clarification. If I use the Consistency level of QUORUM for Read and Write, the Latency would affect the Throughput right? Thanks Ajay On Fri, Dec 26, 2014 at 11:15 AM, Job Thomas j...@suntecgroup.com wrote: Hi, First of all,the write latency of cassandra is not

RE: Throughput Vs Latency

2014-12-25 Thread Job Thomas
Hi Ajay, My understanding is this,If you have a cluster of 3 nodes with replication factor of 3 , then the latency has more roll in throughput. It the cluster size is 6 with replication factor or 3 and if you are using multithreaded client, then the latency remain same and you will get

Re: Throughput Vs Latency

2014-12-25 Thread Ajay
Hi Thomas, I am little confused when you say multithreaded client. Actually we don't explicitly invoke read on multiple servers (for replicated data) from the client code. So how does multithreaded client fix this? Thanks Ajay On Fri, Dec 26, 2014 at 12:08 PM, Job Thomas j...@suntecgroup.com

RE: Throughput Vs Latency

2014-12-25 Thread Job Thomas
Even if you are connecting the client to one running node, it will just act as co-coordinator , the read write/read will ends in the actual node where the data exists. Bu multithread, I mean non serialized read/write (read or write , one after another). If this is the case then surely ur