Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C208418062 for ; Wed, 5 Aug 2015 16:05:24 +0000 (UTC) Received: (qmail 36288 invoked by uid 500); 5 Aug 2015 16:05:21 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 36253 invoked by uid 500); 5 Aug 2015 16:05: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 36243 invoked by uid 99); 5 Aug 2015 16:05:21 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 16:05:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4FFDD1A97AD for ; Wed, 5 Aug 2015 16:05:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.901 X-Spam-Level: ** X-Spam-Status: No, score=2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id VFyjesJXhx8t for ; Wed, 5 Aug 2015 16:05:08 +0000 (UTC) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 53D8923129 for ; Wed, 5 Aug 2015 16:05:08 +0000 (UTC) Received: by labkb6 with SMTP id kb6so10061766lab.2 for ; Wed, 05 Aug 2015 09:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=2K2u2wVR+MJR8igwA0dLZvPotCk+7Qbbnw6RNFfvG7w=; b=t/S90ggh4v2p66axt8a5u+KffXJMdsxof3zj/c8FJPLs2CkEuHkwIHEqOZWg2H5n3q abFXcPF3C4RwBejROxJIHsOPJ83oNmP76D1fhUP9DFUaWDa4f4DOnImbp6Vqcchlo1gZ F1JiKy2oi7A3oNfwWXEqPGvRMai1TBvpcNbZAcqQ6geDx5K55ZVMKpP/ukYi1pvlkeMK 0QsVB+0kG3+TIXioSyHw3sTOHOCoNpd27YvjBZCEwe25oteQnc/0SRuh3dHOgflCGWG8 VX97nn4ITb98pQynWZKmQ0E8T8w4SaEvgGhw/MrSe/6hkcJJLEipYhGLp6jHNQRcDVIq yjRA== X-Received: by 10.112.163.226 with SMTP id yl2mr10051613lbb.100.1438790655327; Wed, 05 Aug 2015 09:04:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.6.196 with HTTP; Wed, 5 Aug 2015 09:03:55 -0700 (PDT) In-Reply-To: References: From: Alain RODRIGUEZ Date: Wed, 5 Aug 2015 18:03:55 +0200 Message-ID: Subject: Re: Retrieve all the columnfamily / tables of thrift and CQL from the keyspace in cassandra To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=089e0115fffaeac66d051c928dab --089e0115fffaeac66d051c928dab Content-Type: text/plain; charset=UTF-8 Hi "I use hector" --> This is a very bad idea imho, even more while using C* 2.1. Hector is not maintained for a while and it uses the thrift protocol that allow accessing to limited features with worst performances than native / cql. See http://www.datastax.com/dev/blog/cassandra-2-1-now-over-50-faster Your issue is completely assumed, it is not an issue. A thrift client can't see tables created through CQL (more precisely, I think it can't see any table not created with "COMPACT STORAGE", but I can be wrong on this) Last thing is that I am not sure that anyone at all is still using Hector, so support you might receive will be worst imho. Is there a reason for you to use Hector over the datastax java driver ? Sorry about the bad news, but you really shouldn't stick with Hector. C*heers 2015-08-05 5:35 GMT+02:00 Shuo Chen : > Hi, > > I use hector to manipulate cassandra of version 2.1.8 and want to retrieve > all the tables from certain keyspace in an application. I use > "KeyspaceDefinition.getCfDefs()" to retrieve the columnfamily list in a > keyspace. > > However, I found that the getCfDefs() function can just retrieve the > columnfamily created by the thrift api such as > "me.prettyprint.hector.api.Cluster.updateColumnFamily" but not table > created by CQL such as cqlsh client. > > Then, how to retrieve all the tables from certain keyspace? > > I asked the same question on stackoverflow > > > http://stackoverflow.com/questions/31804797/retrieve-all-the-columnfamily-tables-of-thrift-and-cql-from-the-keyspace-in-ca > > ---- > > Shuo Chen > --089e0115fffaeac66d051c928dab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi

"I use hector&q= uot; --> This is a very bad idea imho, even more while using C* 2.1.

Hector is not maintained for a while and it uses the = thrift protocol that allow accessing to limited features with worst perform= ances than native / cql.


Your issue is completely assumed, it is not an issue. A thrift client can= 't see tables created through CQL (more precisely, I think it can't= see any table not created with "COMPACT STORAGE", but I can be w= rong on this)

Last thing is that I am not sure tha= t anyone at all is still using Hector, so support you might receive will be= worst imho.=C2=A0

Is there a reason for you to us= e Hector over the datastax java driver ?

Sor= ry about the bad news, but you really shouldn't stick with Hector.

C*heers


=

2015-08-05 = 5:35 GMT+02:00 Shuo Chen <chenatu2006@gmail.com>:

Hi,

I use hector to manipulate cassandra of version 2.1.8 and want to ret= rieve all the tables from certain keyspace in an application. I use "K= eyspaceDefinition.getCfDefs()" to retrieve the columnfamily list in a = keyspace.

However, I found that the getCfDefs() function c= an just retrieve the columnfamily created by the thrift api such as "m= e.prettyprint.hector.api.Cluster.updateColumnFamily" but not table cre= ated by CQL such as cqlsh client.

Then, how to retrieve al= l the tables from certain keyspace?

I asked the same quest= ion on stackoverflow

http://stackoverflow.com/questions/31804797/retrieve-all-the-columnf= amily-tables-of-thrift-and-cql-from-the-keyspace-in-ca

----

Shuo Chen


--089e0115fffaeac66d051c928dab--