Re: 0.7.0beta3 Cassandra frequently log GC for ConcurrentMarkSweep

2010-12-06 Thread Ying Tang
And after checking node who gc concurrentMarkSweep frequently ,it's OC(Current old space capacity (KB)) is 1006016.0 ,it's OU(Old space utilization (KB).) is also 1006016.0 ,almost all memory. Dose this situation imply this heap size is set too low? On Mon, Dec 6, 2010 at 8:07 PM,

0.7.0beta3 Cassandra frequently log GC for ConcurrentMarkSweep

2010-12-06 Thread Ying Tang
I hava a two node , running cassandra ,both's memory is 4G. First i set heap size to 2G ,both run normal . The i set heap size to 1G , the client who insert data to and read data from cassandra began throw Read\Write Unavailable Exception . And one cassandra node began logging GC for ConcurrentM

Re: When to call the major compaction ?

2010-12-01 Thread Ying Tang
x27;s gc , intend to remove the unused file on harddisk ? On Wed, Dec 1, 2010 at 10:54 PM, Chen Xinli wrote: > > > 2010/12/1 Ying Tang > >> I'm confused , plz ingore the mail above. >> Here is my confusion , >>posterior to 0.6.6/0.7 , minor compaction

Re: When to call the major compaction ?

2010-12-01 Thread Ying Tang
g to be removed by jvm gc . Am i right? On Wed, Dec 1, 2010 at 9:10 PM, Ying Tang wrote: > 1. So posterior to 0.6.6/0.7 , minor compaction and major compaction both > can clean out rows 'tagged' tombstones , this kind of clean out doesn't > mead remove it from the disk per

Re: Can not connect to cassandra 0.7 using CLI

2010-12-01 Thread Ying Tang
try bin/cassandra-cli --host On Wed, Dec 1, 2010 at 7:29 PM, Joshua Partogi wrote: > Hi there, > > I just downloaded cassandra 0.7rc1. I started it using bin/cassandra > without making any configuration changes. > > I then tried to connect using the CLI with command like this: > > f...@ubuntu:~

Re: When to call the major compaction ?

2010-12-01 Thread Ying Tang
tables into one , clean out the tombstone , let the un-tombstones rows be into a new ordered sstable ? On Wed, Dec 1, 2010 at 7:30 PM, Sylvain Lebresne wrote: > On Wed, Dec 1, 2010 at 12:11 PM, Ying Tang wrote: > > And i have another question , what's the difference between m

Re: When to call the major compaction ?

2010-12-01 Thread Ying Tang
And i have another question , what's the difference between minor compaction and major compaction? On 12/1/10, Chen Xinli wrote: > 2010/12/1 Ying Tang > >> Every time cassandra creates a new sstable , it will call the >> CompactionManager.submitMinorIfNeeded ? And if the

TheGC inspector's frequency

2010-12-01 Thread Ying Tang
The GCInspector's start() method , In this method , StorageService.scheduledTasks.scheduleWithFixedDelay(t, INTERVAL_IN_MS, INTERVAL_IN_MS, TimeUnit.MILLISECONDS); t is Runnable t and it's run method is logIntervalGCStats. According to this code segment , the logIntervalGCStats should be run every

When to call the major compaction ?

2010-11-30 Thread Ying Tang
Every time cassandra creates a new sstable , it will call the CompactionManager.submitMinorIfNeeded ? And if the number of memtables is beyond MinimumCompactionThreshold , the minor compaction will be called. And there is also a method named CompactionManager.submitMajor , and the call relations

Re: What the thrift version cassandra 0.7 beta uses?

2010-09-16 Thread Ying Tang
er. > > On Sep 16, 2010, at 9:10 PM, Ying Tang wrote: > > > What the thrift version cassandra 0.7 beta uses? > > > > -- > > Best regards, > > > > Ivy Tang > > > > > > > > -- Best regards, Ivy Tang

What the thrift version cassandra 0.7 beta uses?

2010-09-16 Thread Ying Tang
What the thrift version cassandra 0.7 beta uses? -- Best regards, Ivy Tang

Re: Error when compile pelops

2010-09-13 Thread Ying Tang
che/cassandra/cassandra/0.7.0-2010-09-12_19-23-07/cassandra-0.7.0-2010-09-12_19-23-07.jar&&; >> unzip -t cassandra.jar > > > Which version of Maven are you using? > > On Tue, Sep 14, 2010 at 1:02 PM, Ying Tang wrote: > >> I download the pelops source frm git

Error when compile pelops

2010-09-13 Thread Ying Tang
I download the pelops source frm github , then cd the pelops folder. mvn compile But the error occurs. INFO] Compilation failure error: error reading /root/.m2/repository/org/apache/cassandra/cassandra/0.7.0-2010-09-12_19-23-07/cassandra-0.7.0-2010-09-12_19-23-07.jar; error in opening zip fil

Re: Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Ying Tang
oh.solve it. Change the rpc_address to my localhost's ip ,then in the client code ,the TSocket can connect to the ip. On Thu, Sep 9, 2010 at 4:14 AM, Ying Tang wrote: > no , i didn't change the yaml file. > > > On Thu, Sep 9, 2010 at 4:10 AM, Benjamin Black wrote: &g

Re: Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Ying Tang
gt; > On Thu, Sep 9, 2010 at 1:06 AM, Ying Tang wrote: > > I'm using cassandra 0.7 . > > And in storage-conf . > > > > # The address to bind the Thrift RPC service to > > rpc_address: localhost > > # port for Thrift to listen on > > rpc_port:

Connect to localhost is ok,but the ip fails.

2010-09-09 Thread Ying Tang
I'm using cassandra 0.7 . And in storage-conf . # The address to bind the Thrift RPC service to rpc_address: localhost # port for Thrift to listen on rpc_port: 9160 In my client , the code below works successfully. TSocket socket = new TSocket("localhost", 9160); TTransport trans

Re: timeout when insert an indexed column

2010-09-07 Thread Ying Tang
his insert operation would fail. On 9/7/10, Carlin Wong wrote: > Hi Ivy, > > Are you sure about this. > One is TimedOutException, and another is ArrayIndexOutOfBoundsException. > I can't see any connection. Please point out, thank you. > > Calin4J > >

Re: timeout when insert an indexed column

2010-09-07 Thread Ying Tang
oh ,i've found this https://issues.apache.org/jira/browse/CASSANDRA-1402 On 9/7/10, Ying Tang wrote: > Before inserting, the Cassandra.client is assined the keyspace . > ColumnParent parent = new ColumnParent(); >parent.setColumn_family("Standard1"); >

Re: timeout when insert an indexed column

2010-09-07 Thread Ying Tang
yspace and column family you trying to insert to? > > > parent.setColumn_family("Standard1"); > > -Original Message- > From: Ying Tang [mailto:ivytang0...@gmail.com] > Sent: Tuesday, September 07, 2010 11:10 AM > To: user@cassandra.apache.org > Subject: t

timeout when insert an indexed column

2010-09-07 Thread Ying Tang
Hi all, I don't know if anyone had post this question , if it is ,plz let me know the post. Here is the problem i met: First , i create the keyspace that contains a columnfamily ,and the columfamily contains a indexed column . The code is : ColumnDef clDef = new ColumnDef("name

Re: the process of reading and writing

2010-09-03 Thread Ying Tang
In dynamo's paper ,it says: Each key, k, is assigned to a coordinator node . The coordinator is in charge of the replication of the data items that fall within its range. On Fri, Sep 3, 2010 at 2:56 PM, Benjamin Black wrote: > On Thu, Sep 2, 2010 at 8:19 PM, Ying Tang wrote: > >

Re: the process of reading and writing

2010-09-02 Thread Ying Tang
soon as the first > node does. It will then look at the result from the other nodes and kick off > the Read Repair is needed. But this is after your read request has > completed. > > Aaron > > > > On 03 Sep, 2010,at 03:19 PM, Ying Tang wrote: > > Recently , i read th

the process of reading and writing

2010-09-02 Thread Ying Tang
Recently , i read the paper about Cassandra again . And now i have some concepts about the reading and writing . We all know Cassandra uses NWR , When read : the request ---> a random node in Cassandra .This node acts as a proxy ,and it routes the request. Here , 1. the proxy node route this requ

Re: The entry of Cassandra

2010-08-16 Thread Ying Tang
ng to write something simple API > working with 0.7.0beta1 amt though am I the only one that thinks NOT using > clients like hector is simpler (in a way, to feel in control at least)? > > > > *Från:* Ying Tang [mailto:ivytang0...@gmail.com] > *Skickat:* den 16 augusti 2010

Re: The entry of Cassandra

2010-08-16 Thread Ying Tang
libraries that help with that as well as > connection pooling and other goodies > > > On Mon, Aug 16, 2010 at 1:14 PM, Ying Tang wrote: > >>After reading the docs and the thrift demo , i found that if the demo >> ,if we want to connect to the database , we mus

The entry of Cassandra

2010-08-16 Thread Ying Tang
After reading the docs and the thrift demo , i found that if the demo ,if we want to connect to the database , we must first do "TTransport tr = new TSocket("localhost", 9160) " . Then we operate on the database through this TTransport . But this operation assigns a fixed IP , so all r