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 3297518110 for ; Wed, 5 Aug 2015 16:24:44 +0000 (UTC) Received: (qmail 85479 invoked by uid 500); 5 Aug 2015 16:24:40 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 85437 invoked by uid 500); 5 Aug 2015 16:24:40 -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 85427 invoked by uid 99); 5 Aug 2015 16:24:40 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 16:24:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C49BAC027E for ; Wed, 5 Aug 2015 16:24:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.001 X-Spam-Level: *** X-Spam-Status: No, score=3.001 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id WN0JmHQjeAvP for ; Wed, 5 Aug 2015 16:24:30 +0000 (UTC) Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id E7CAA20775 for ; Wed, 5 Aug 2015 16:24:29 +0000 (UTC) Received: by qkfc129 with SMTP id c129so16774926qkf.1 for ; Wed, 05 Aug 2015 09:24:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=ALNVAxtADno5vQRwwzYco0iyk2N/NxB7csrYh4eckj8=; b=kSgMehcS5/m7c4voutv6UqbZeFqXbQGcPE2POrXv0OHcELnat+d4AIOLF1tA5GfbTe 4Eu9kxDKNLVzsKo4hRlVqYOo9VaOnwbHf4Mm2496Klh/Wmq5Sp0cj1/uEg9X0wLDb2/0 htEHifHiGM0XFBTIXlSoGTWC5VYHoTT8gj2inMC/8jt2HVDPfn6ogYmvM2XXmJxWtc0y YT7+NTdfXfLK/rVFrFmX+cHnloYAG2N/JG5z+FGdVH7UlrqosSbVFp1L7Ko3lkiMsm65 s6o+aBqLkJoFxO+wtG7LuswwZ5frP3PEIX1X0sV3QWIj9zEmMf8TPbJrU1RbWhMAGrwS 6onw== X-Received: by 10.55.17.34 with SMTP id b34mr15116599qkh.97.1438791863157; Wed, 05 Aug 2015 09:24:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Haddad Date: Wed, 05 Aug 2015 16:24:13 +0000 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=001a1146fc84e8cbb7051c92d51b --001a1146fc84e8cbb7051c92d51b Content-Type: text/plain; charset=UTF-8 +1. The project hasn't had a single relevant commit in almost a full year and is now officially unsupported. Migrate your data asap to CQL. On Wed, Aug 5, 2015 at 9:05 AM Alain RODRIGUEZ wrote: > 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 >> > > --001a1146fc84e8cbb7051c92d51b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
+1.=C2=A0 The project hasn't had a single relevant com= mit in almost a full year and is now officially unsupported.=C2=A0 Migrate = your data asap to CQL.


<= div dir=3D"ltr">On Wed, Aug 5, 2015 at 9:05 AM Alain RODRIGUEZ <arodrime@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
Hi

<= /div>
"I use hector" --> This is a very bad idea imho, eve= n more while using C* 2.1.

Hector is not maintaine= d for a while and it uses the thrift protocol that allow accessing to limit= ed features with worst performances than native / cql.

=

Your issue is completely = assumed, it is not an issue. A thrift client can't see tables created t= hrough 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 us= ing Hector, so support you might receive will be worst imho.=C2=A0

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*heer= s
<= br>


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 retrieve= all the tables from certain keyspace in an application. I use "Keyspa= ceDefinition.getCfDefs()" to retrieve the columnfamily list in a keysp= ace.

However, I found that the getCfDefs() function can ju= st retrieve the columnfamily created by the thrift api such as "me.pre= ttyprint.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 o= n stackoverflow

<= a href=3D"http://stackoverflow.com/questions/31804797/retrieve-all-the-colu= mnfamily-tables-of-thrift-and-cql-from-the-keyspace-in-ca" target=3D"_blank= ">http://stackoverflow.com/questions/31804797/retrieve-all-the-columnfamily= -tables-of-thrift-and-cql-from-the-keyspace-in-ca

=

----

Shuo Chen


--001a1146fc84e8cbb7051c92d51b--