Re: Does securing C*'s CQL native interface (running on port 9042) automatically secure its Thrift API interface (running on port 9160)?

2016-11-01 Thread Sam Tunnicliffe
gt; Hi, > > I secured my C* cluster by having "authenticator: > org.apache.cassandra.auth.PasswordAuthenticator" in cassandra.yaml. I > know it secures the CQL native interface running on port 9042 because my > code uses such interface. Does this also secure the Thrift API inte

Does securing C*'s CQL native interface (running on port 9042) automatically secure its Thrift API interface (running on port 9160)?

2016-10-31 Thread Li, Guangxing
Hi, I secured my C* cluster by having "authenticator: org.apache.cassandra.auth.PasswordAuthenticator" in cassandra.yaml. I know it secures the CQL native interface running on port 9042 because my code uses such interface. Does this also secure the Thrift API interface running on po

Announcement: Thrift API deprecation

2016-01-04 Thread Jonathan Ellis
Thrift has been officially frozen for almost two years and unofficially for longer. Meanwhile, maintaining Thrift support through changes like 8099 has been a substantial investment. Thus, we are officially deprecating Thrift now and removing support in 4.0, i.e. Nov 2016 if tick-tock goes as pl

Re: Use Cassnadra thrift API with collection type

2014-06-24 Thread Huiliang Zhang
Yes, I realized the way to use CQL. I checked the way how map data is represented by using cassandra-cli. For each element in the map, it use the key as part of the column name and value as the column value. I just cannot insert this by using thrift API because I already defined a CompositeType

Re: Use Cassnadra thrift API with collection type

2014-06-23 Thread Sylvain Lebresne
ing depends on the collection. The fact is, updating CQL collection from thrift is technically possible but it is not recommended in any way. I strongly advise you to stick to CQL if you want to use CQL collections. -- Sylvain > > > -- > *From:* Huil

RE: Use Cassnadra thrift API with collection type

2014-06-23 Thread James Campbell
type ?column.value = DataType.map(DataType.ascii, DataType.decimal).serialize(yourMapGoesHere); column.timestamp = new Date().getTime(); ... From: Huiliang Zhang Sent: Friday, June 20, 2014 10:10 PM To: user@cassandra.apache.org Subject

Use Cassnadra thrift API with collection type

2014-06-20 Thread Huiliang Zhang
org.apache.cassandra.cql3.statements.SelectStatement.handleGroup(SelectStatement.java:1169) at org.apache.cassandra.cql3.statements.SelectStatement.processColumnFamily(SelectStatement.java:1076) ... So the question is how to write map data into cassandra by thrift API. Appreciated for any help. Thanks, Huiliang

Re: Serial Consistency and Thrift API

2014-03-15 Thread Panagiotis Garefalakis
Thanks for all your replies. I was thinking to modify YCSB to support lightweight transactions in order to measure the overhead introduced. Since YCSB extends thrift api this is the only way to do it. I am not quite sure how to use CAS but I am now looking at it. If there is an easier way to

Re: Serial Consistency and Thrift API

2014-03-15 Thread Peter Lin
anga...@gmail.com> wrote: > >> >> Hello all, >> >> I am running some tests in my cluster and I wanted to try some of the new >> features of Cassandra like lightweight transactions and Serial Writes. >> Surprisingly I found out that Serial writes are not supported by the &

Re: Serial Consistency and Thrift API

2014-03-15 Thread Sylvain Lebresne
e not supported by the > Thrift API. > They *are* supported by thrift. First, let me remark that both "lightweight transactions" and "Serial Writes" are 2 names for the same thing. And in thrift it's supported through the cas() method. -- Sylvain > Is there an

Re: Serial Consistency and Thrift API

2014-03-14 Thread Peter Lin
luster and I wanted to try some of the new >> features of Cassandra like lightweight transactions and Serial Writes. >> Surprisingly I found out that Serial writes are not supported by the >> Thrift API. >> Is there any patch available or the only way to support them is thou

Re: Serial Consistency and Thrift API

2014-03-14 Thread Robert Coli
On Fri, Mar 14, 2014 at 11:59 AM, Panagiotis Garefalakis wrote: > I am running some tests in my cluster and I wanted to try some of the new > features of Cassandra like lightweight transactions and Serial Writes. > Surprisingly I found out that Serial writes are not supported by the >

Serial Consistency and Thrift API

2014-03-14 Thread Panagiotis Garefalakis
Hello all, I am running some tests in my cluster and I wanted to try some of the new features of Cassandra like lightweight transactions and Serial Writes. Surprisingly I found out that Serial writes are not supported by the Thrift API. Is there any patch available or the only way to support them

Re: Cassandra 1.2 Atomic Batches and Thrift API

2013-02-12 Thread Drew Kutcharian
ssandra client mailing list: > client-...@cassandra.apache.org. > > -- > Sylvain > > > On Tue, Feb 12, 2013 at 4:44 AM, Drew Kutcharian wrote: > Hey Guys, > > Is the new atomic batch feature in Cassandra 1.2 available via the thrift > API? If so, how can I use it? > > -- Drew > >

Re: Cassandra 1.2 Atomic Batches and Thrift API

2013-02-12 Thread Sylvain Lebresne
dominique.dev...@thalesgroup.com> wrote: > Is Cassandra 1.1 Row Level Isolation (a kind of batch-like) related to > "traditional" batch_mutate or atomic_batch_mutate Thrift API ? > > ** ** > > Thanks for the answer. > > ** ** > > Dominique >

RE: Cassandra 1.2 Atomic Batches and Thrift API

2013-02-12 Thread DE VITO Dominique
Is Cassandra 1.1 Row Level Isolation (a kind of batch-like) related to "traditional" batch_mutate or atomic_batch_mutate Thrift API ? Thanks for the answer. Dominique De : Sylvain Lebresne [mailto:sylv...@datastax.com] Envoyé : mardi 12 février 2013 10:19 À : user@cassandra.apache

Re: Cassandra 1.2 Atomic Batches and Thrift API

2013-02-12 Thread Sylvain Lebresne
feature in Cassandra 1.2 available via the thrift > API? If so, how can I use it? > > -- Drew > >

Cassandra 1.2 Atomic Batches and Thrift API

2013-02-11 Thread Drew Kutcharian
Hey Guys, Is the new atomic batch feature in Cassandra 1.2 available via the thrift API? If so, how can I use it? -- Drew

Create column family with Composite key column via thrift API

2012-10-11 Thread Vivek Mishra
Hi, I know one way is to execute cql query via thrift client to create a column family having compound primary/composite columns. But is it the only way? Looks like i would end up creating own "CQLTranslator/Wrapper" to deal with compound primary/composite columns!(Or may be something else in n

Re: Problems using Thrift API in C

2011-08-04 Thread aaron morton
est version of Thrift (0.7) it seems that older > versions cannot talk to Cassandra properly. > > - Original Message - > From: "Rafael Almeida" > To: user@cassandra.apache.org > Sent: Thursday, August 4, 2011 1:53:20 PM > Subject: Re: Problems using Thrift AP

Re: Problems using Thrift API in C

2011-08-04 Thread Konstantin Naryshkin
Rafael: Try using the latest version of Thrift (0.7) it seems that older versions cannot talk to Cassandra properly. - Original Message - From: "Rafael Almeida" To: user@cassandra.apache.org Sent: Thursday, August 4, 2011 1:53:20 PM Subject: Re: Problems using Thrif

Re: Problems using Thrift API in C

2011-08-04 Thread Rafael Almeida
- Original Message - > From: Konstantin Naryshkin > To: user@cassandra.apache.org > Cc: > Sent: Thursday, August 4, 2011 10:36 AM > Subject: Re: Problems using Thrift API in C > > I have had similar issues when I generated Cassandra for Erlang. It seems > t

Re: Problems using Thrift API in C

2011-08-04 Thread Konstantin Naryshkin
). - Original Message - From: "Aleksandrs Saveljevs" To: user@cassandra.apache.org Sent: Monday, August 1, 2011 7:41:49 AM Subject: Re: Problems using Thrift API in C No, at least not at the default logging level. However, we have solved the problem by checking out the latest r

Re: Problems using Thrift API in C

2011-08-01 Thread Aleksandrs Saveljevs
for more details). Because Zabbix is written in C, we are considering using Thrift API in C, too. However, we are running into problems trying to get even the basic code work. Consider the attached source code. This is essentially a rewrite of the first part of the C++ example

Re: Problems using Thrift API in C

2011-07-29 Thread ruslan usifov
or > more details). Because Zabbix is written in C, we are considering using > Thrift API in C, too. > > However, we are running into problems trying to get even the basic code > work. Consider the attached source code. This is essentially a rewrite of > the first part of the C++ exa

Re: Problems using Thrift API in C

2011-07-29 Thread Aleksandrs Saveljevs
12:29 PM, Aleksandrs Saveljevs wrote: Dear all, We are considering using Cassandra for storing gathered data in Zabbix (see https://support.zabbix.com/browse/ZBXNEXT-844 for more details). Because Zabbix is written in C, we are considering using Thrift API in C, too. However, we are running into

Re: Problems using Thrift API in C

2011-07-28 Thread Eric Tamme
On 07/28/2011 05:29 AM, Aleksandrs Saveljevs wrote: essentially a rewrite of the first part of the C++ example given at http://wiki.apache.org/cassandra/ThriftExamples#C.2B-.2B- . If we run it under strace, we see that it hangs on the call to recv() when setting keyspace: $ strace -s 64 ./tes

Problems using Thrift API in C

2011-07-28 Thread Aleksandrs Saveljevs
Dear all, We are considering using Cassandra for storing gathered data in Zabbix (see https://support.zabbix.com/browse/ZBXNEXT-844 for more details). Because Zabbix is written in C, we are considering using Thrift API in C, too. However, we are running into problems trying to get even the

thrift API

2011-07-11 Thread 魏金仙
Hi, can anyone explain why APIs include multiget, batch_insert,get_range_slice are removed in Version above 7.0?

Re: 0.8.0 thrift api?

2011-04-24 Thread Michael Fortin
and the counter API are accessible via Thrift. > > Robert Jackson > > From: "Michael Fortin" > To: user@cassandra.apache.org > Sent: Saturday, April 23, 2011 2:38:07 PM > Subject: 0.8.0 thrift api? > > Hi, > Were can I find the thrift api documentation for 0

Re: 0.8.0 thrift api?

2011-04-23 Thread Robert Jackson
: Saturday, April 23, 2011 2:38:07 PM Subject: 0.8.0 thrift api? Hi, Were can I find the thrift api documentation for 0.8? What's in the wiki is only for <=7. I'm especially inserted in the new query and counter api's. That's accessible via thrift, right? Thanks, Mike

Re: 0.8.0 thrift api?

2011-04-23 Thread Kirk Peterson
The best documentation (imo) for the Thrift API, is the cassandra.thrift file in the 'interface' subdirectory of the releas. Because cassandra.thrift is used to generate client bindings, it is always up to date, and usually well commented. The wiki lags behind, but sometimes will have mo

0.8.0 thrift api?

2011-04-23 Thread Michael Fortin
Hi, Were can I find the thrift api documentation for 0.8? What's in the wiki is only for <=7. I'm especially inserted in the new query and counter api's. That's accessible via thrift, right? Thanks, Mike

Re: Calls block when using Thrift API

2010-08-30 Thread Gary Dusbabek
If you're only interested in accessing data natively, I suggest you try the "fat client." It brings up a node that participates in gossip, exposes the StorageProxy API, but does not receive a token and so does not have storage responsibilities. StorageService.instance.initClient(); in 0.7 you wi

Re: Calls block when using Thrift API

2010-08-29 Thread Ruben de Laat
w Socket("127.0.0.1", 9160); >>> TSocket transport = new TSocket(socket); >>> TBinaryProtocol tBinaryProtocol = new TBinaryProtocol(transport); >>> Client client = new Client(tBinaryProtocol); >>> System.out.println(client.describe_cluster_name()); >&g

Re: Calls block when using Thrift API

2010-08-27 Thread Ruben de Laat
Client(tBinaryProtocol); >> System.out.println(client.describe_cluster_name()); >> >> The problem is that it hangs/blocks on the >> "client.describe_cluster_name()" call, actually it hangs on any call I >> have tried. >> I was first trying with t

Re: Calls block when using Thrift API

2010-08-27 Thread Ran Tavory
client = new Client(tBinaryProtocol); > System.out.println(client.describe_cluster_name()); > > The problem is that it hangs/blocks on the > "client.describe_cluster_name()" call, actually it hangs on any call I > have tried. > I was first trying with the Pelops client, bu

Calls block when using Thrift API

2010-08-27 Thread Ruben de Laat
t = new Client(tBinaryProtocol); System.out.println(client.describe_cluster_name()); The problem is that it hangs/blocks on the "client.describe_cluster_name()" call, actually it hangs on any call I have tried. I was first trying with the Pelops client, but that one is using the Thrift API as

Re: New Changes in Cass 0.7 Thrift API Interface

2010-05-21 Thread Gary Dusbabek
On Thu, May 20, 2010 at 22:16, Arya Goudarzi wrote: > > P.S. By the way, if someone grants me access, I'd like to contribute to the > documentaions on Apache Cassandra. > I believe anybody can create a wiki account and make changes. Have at it! Gary.

New Changes in Cass 0.7 Thrift API Interface

2010-05-20 Thread Arya Goudarzi
Hi Fellows, I just joined this mailing list but I've been on the IRC for a while. Pardon if this post is a repeat but I would like to share with you some of my experiences with Cassandra Thrift Interface that comes with the nightly built and probably 0.7. I came across an issue last night that

Re: C++ Thrift API Examples

2010-03-15 Thread Padraig O'Sullivan
On Mon, Mar 15, 2010 at 9:10 AM, Juan Manuel Garcia del Moral wrote: > Dear sirs > > I'm wondering if any of you had the chance to implement Cassandra client > funtions in a program, using the c++ thrift api... > > I really appreciate any example, or code snippet, or s

C++ Thrift API Examples

2010-03-15 Thread Juan Manuel Garcia del Moral
Dear sirs I'm wondering if any of you had the chance to implement Cassandra client funtions in a program, using the c++ thrift api... I really appreciate any example, or code snippet, or something. Thanks Juan