Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread Jai Bheemsen Rao Dhanwada
oken if I continue to use 3.0+ driver with Cassandra 4.0? I did a >> quick test with my application using 3.2 driver with Cassandra 4.0.3 and it >> works fine. >> >> >> On Mon, Apr 19, 2021 at 7:14 PM Jai Bheemsen Rao Dhanwada < >> jaibheem...@gmail.com&

Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread C. Scott Andreas
Jai Bheemsen Rao Dhanwada wrote:Thank you On Monday, April 19, 2021, Erick Ramirez wrote:Is there a Datastax Java Driver  Compatibility matrix available for Cassandra 4.0?No, there isn't but the same driver versions apply to C* 4.0 under the column 3.0+.Thanks for bringing this up as it has

Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread Jai Bheemsen Rao Dhanwada
7:14 PM Jai Bheemsen Rao Dhanwada < > jaibheem...@gmail.com> wrote: > >> Thank you >> >> On Monday, April 19, 2021, Erick Ramirez >> wrote: >> >>> Is there a Datastax Java Driver >>>> <https://docs.datastax.com/en/driver-mat

Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread C. Scott Andreas
, 2021 at 7:14 PM Jai Bheemsen Rao Dhanwada wrote:Thank you On Monday, April 19, 2021, Erick Ramirez wrote:Is there a Datastax Java Driver  Compatibility matrix available for Cassandra 4.0?No, there isn't but the same driver versions apply to C* 4.0 under the column 3.0+.Thanks for bringing

Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread Jai Bheemsen Rao Dhanwada
? I did a quick test with my application using 3.2 driver with Cassandra 4.0.3 and it works fine. On Mon, Apr 19, 2021 at 7:14 PM Jai Bheemsen Rao Dhanwada < jaibheem...@gmail.com> wrote: > Thank you > > On Monday, April 19, 2021, Erick Ramirez > wrote: > >> Is t

Re: Datastax Java Driver Compatibility Matrix

2021-04-19 Thread Jai Bheemsen Rao Dhanwada
Thank you On Monday, April 19, 2021, Erick Ramirez wrote: > Is there a Datastax Java Driver >> <https://docs.datastax.com/en/driver-matrix/doc/driver_matrix/javaDrivers.html> >> Compatibility matrix available for Cassandra 4.0? >> > > No, there isn't but the sam

Re: Datastax Java Driver Compatibility Matrix

2021-04-19 Thread Erick Ramirez
> > Is there a Datastax Java Driver > <https://docs.datastax.com/en/driver-matrix/doc/driver_matrix/javaDrivers.html> > Compatibility matrix available for Cassandra 4.0? > No, there isn't but the same driver versions apply to C* 4.0 under the column 3.0+. Thanks for bring

Datastax Java Driver Compatibility Matrix

2021-04-19 Thread Jai Bheemsen Rao Dhanwada
Hello, Is there a Datastax Java Driver <https://docs.datastax.com/en/driver-matrix/doc/driver_matrix/javaDrivers.html> Compatibility matrix available for Cassandra 4.0?

Re: Cassandra DataStax Java Driver in combination with Java EE / EJBs

2019-06-12 Thread Ralph Soika
. Cheers John On Tue, Jun 11, 2019 at 5:38 PM Ralph Soika wrote: Hi, I have a question concerning the Cassandra DataStax Java Driver in combination with Java EE and EJBs. I have implemented a Rest Service API based on Java EE8. In my application I have for example a jax-rs rest resource

Re: Cassandra DataStax Java Driver in combination with Java EE / EJBs

2019-06-11 Thread Stefan Miklosovic
lined to just use CDI. > > Cheers > > John > > On Tue, Jun 11, 2019 at 5:38 PM Ralph Soika wrote: >> >> Hi, >> >> I have a question concerning the Cassandra DataStax Java Driver in >> combination with Java EE and EJBs. >> >> I have implement

Re: Cassandra DataStax Java Driver in combination with Java EE / EJBs

2019-06-11 Thread John Sanda
use CDI. Cheers John On Tue, Jun 11, 2019 at 5:38 PM Ralph Soika wrote: > Hi, > > I have a question concerning the Cassandra DataStax Java Driver in > combination with Java EE and EJBs. > > I have implemented a Rest Service API based on Java EE8. In my application > I have

Cassandra DataStax Java Driver in combination with Java EE / EJBs

2019-06-11 Thread Ralph Soika
Hi, I have a question concerning the Cassandra DataStax Java Driver in combination with Java EE and EJBs. I have implemented a Rest Service API based on Java EE8. In my application I have for example a jax-rs rest resource to write data into cassandra cluster. My first approach

Re: Datastax Java Driver compatibility

2019-01-22 Thread Jonathan Haddad
em...@gmail.com> wrote: >> >>> Hello, >>> >>> I am looking for Datastax Driver compatibility vs apache cassandra >>> 3.11.3 version. >>> However the doc doesn't talk about the 3.11 version. >>> >>> https://docs.datastax.com/en/

Re: Datastax Java Driver compatibility

2019-01-22 Thread Jai Bheemsen Rao Dhanwada
heem...@gmail.com> wrote: > >> Hello, >> >> I am looking for Datastax Driver compatibility vs apache cassandra 3.11.3 >> version. >> However the doc doesn't talk about the 3.11 version. >> >> https://docs.datastax.com/en/driver-matrix/doc/driver_matrix/javaDri

Re: Datastax Java Driver compatibility

2019-01-22 Thread Amanda Moran
ng for Datastax Driver compatibility vs apache cassandra 3.11.3 > version. > However the doc doesn't talk about the 3.11 version. > > https://docs.datastax.com/en/driver-matrix/doc/driver_matrix/javaDrivers.html > > Can someone please confirm if the Datastax Java Driver 3.2.0 v

Datastax Java Driver compatibility

2019-01-22 Thread Jai Bheemsen Rao Dhanwada
Hello, I am looking for Datastax Driver compatibility vs apache cassandra 3.11.3 version. However the doc doesn't talk about the 3.11 version. https://docs.datastax.com/en/driver-matrix/doc/driver_matrix/javaDrivers.html Can someone please confirm if the Datastax Java Driver 3.2.0 version work

Re: DataStax Java driver QueryBuilder: CREATE table?

2017-12-14 Thread Andy Tolbert
Hi Oliver, SchemaBuilder <http://docs.datastax.com/en/latest-java-driver-api/com/datastax/driver/core/schemabuilder/SchemaBuilder.html> enables building schema DDL statements like CREATE TABLE, KEYSPACE and so on. You can find some examples in the tests <https://github.com/datastax/ja

DataStax Java driver QueryBuilder: CREATE table?

2017-12-14 Thread Oliver Ruebenacker
Hello, I'm using the DataStax Java Driver, which has a QueryBuilder class to construct CQL statements. I can see how to build SELECT, INSERT, TRUNCATE etc statements, but I can't find how to build a CREATE statement. Am I missing something? Thanks! Best, Oliver -- Oliver

Re: A question to 'paging' support in DataStax java driver

2016-05-10 Thread Sebastian Estevez
, 2016 1:09 AM, "Lu, Boying" <boying...@emc.com> wrote: > >> I filed a JIRA https://issues.apache.org/jira/browse/CASSANDRA-11741 to >> track this. >> >> >> >> *From:* DuyHai Doan [mailto:doanduy...@gmail.com] >> *Sent:* 2016年5月10日 12:47 >> *T

RE: A question to 'paging' support in DataStax java driver

2016-05-10 Thread Sebastian Estevez
wse/CASSANDRA-11741 to > track this. > > > > *From:* DuyHai Doan [mailto:doanduy...@gmail.com] > *Sent:* 2016年5月10日 12:47 > *To:* user@cassandra.apache.org > *Subject:* Re: A question to 'paging' support in DataStax java driver > > > > I guess it's technically possible bu

RE: A question to 'paging' support in DataStax java driver

2016-05-09 Thread Lu, Boying
I filed a JIRA https://issues.apache.org/jira/browse/CASSANDRA-11741 to track this. From: DuyHai Doan [mailto:doanduy...@gmail.com] Sent: 2016年5月10日 12:47 To: user@cassandra.apache.org Subject: Re: A question to 'paging' support in DataStax java driver I guess it's technically possible

Re: A question to 'paging' support in DataStax java driver

2016-05-09 Thread DuyHai Doan
een client and server. > > > > > > *From:* DuyHai Doan [mailto:doanduy...@gmail.com] > *Sent:* 2016年5月9日 21:06 > *To:* user@cassandra.apache.org > *Subject:* Re: A question to 'paging' support in DataStax java driver > > > > In a truly consistent world (shoul

RE: A question to 'paging' support in DataStax java driver

2016-05-09 Thread Lu, Boying
some bandwidth between client and server. From: DuyHai Doan [mailto:doanduy...@gmail.com] Sent: 2016年5月9日 21:06 To: user@cassandra.apache.org Subject: Re: A question to 'paging' support in DataStax java driver In a truly consistent world (should I say "snapshot isolation" world instead),

Re: A question to 'paging' support in DataStax java driver

2016-05-09 Thread DuyHai Doan
or example, you may not >> get the same results as the previous read. >> >> And it is inevitable in an eventual consistent distributed DB world >> >> On Mon, May 9, 2016 at 12:25 PM, Lu, Boying <boying...@emc.com> wrote: >> >>> dHi, All, >

Re: A question to 'paging' support in DataStax java driver

2016-05-09 Thread Bhuvan Rawal
n, May 9, 2016 at 12:25 PM, Lu, Boying <boying...@emc.com> wrote: > >> dHi, All, >> >> >> >> We are considering to use DataStax java driver in our codes. One >> important feature provided by the driver we want to use is ‘paging’. >> >> But acco

Re: A question to 'paging' support in DataStax java driver

2016-05-09 Thread DuyHai Doan
n an eventual consistent distributed DB world On Mon, May 9, 2016 at 12:25 PM, Lu, Boying <boying...@emc.com> wrote: > dHi, All, > > > > We are considering to use DataStax java driver in our codes. One important > feature provided by the driver we want to use is ‘pagi

A question to 'paging' support in DataStax java driver

2016-05-09 Thread Lu, Boying
dHi, All, We are considering to use DataStax java driver in our codes. One important feature provided by the driver we want to use is 'paging'. But according to the https://datastax.github.io/java-driver/3.0.0/manual/paging/, it seems that we can't jump between pages. Is it possible to just

Re: Production Ready/Stable DataStax Java Driver

2016-05-08 Thread Alex Popescu
On Sun, May 8, 2016 at 10:00 AM, Anuj Wadehra wrote: > As 3.x driver supports all 1.2+ Cassandra versions, I would also like to > better understand the motivation of having 2.1 releases simultaneously with > 3.x releases of Java driver. Hi Anuj, Both Apache Cassandra

Re: Production Ready/Stable DataStax Java Driver

2016-05-08 Thread Anuj Wadehra
do those changes at short notice and upgrade to 3.x immediately. Is that understanding correct? ThanksAnuj Sent from Yahoo Mail on Android On Sun, 8 May, 2016 at 9:01 PM, Alex Popescu<al...@datastax.com> wrote: Hi Anuj, All released versions of the DataStax Java driver are production re

Re: Production Ready/Stable DataStax Java Driver

2016-05-08 Thread Alex Popescu
Hi Anuj, All released versions of the DataStax Java driver are production ready: 1. they all go through the complete QA cycle 2. we merge all bug fixes and improvements upstream. Now, if you are asking which is currently the most deployed version, that's 2.1 (latest version 2.1.10.1 [1

Re: datastax java driver Batch vs BatchStatement

2016-03-25 Thread Alexandre Dutra
Hi, Query builder's Batch simply sends a QUERY message through the wire where the query string is a CQL batch statement : "BEGIN BATCH ... APPLY BATCH". BatchStatement actually sends a BATCH message

datastax java driver Batch vs BatchStatement

2016-03-24 Thread Jimmy Lin
Hi all, What is the difference between datastax driver Batch and BatchStatement? In particular, BatchStatment call out that it needs native protocol of version 2 or above. What is the advantage using native protocol 2.0 for batch execution? Will any of these two api smart enough to split a big

Re: Can we set TTL on individual fields (columns) using the Datastax java-driver

2016-02-08 Thread DuyHai Doan
I think you should direct your request to the java driver mailing list: https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driver-user To answer your question, no, there is no @Ttl annotation on the driver-mapping module, even in the latest release: https://github.com/datastax/java

Can we set TTL on individual fields (columns) using the Datastax java-driver

2016-02-08 Thread Ajay Garg
Something like :: ## class A { @Id @Column (name = "pojo_key") int key; @Ttl(10) @Column (name = "pojo_temporary_guest") String guest; } ## When I persist, let's say value "ajay" in guest-field

cassandra 3.0 and datastax java driver 3.0.0 beta1: unresolved user type DoubleType

2015-11-10 Thread Vova Shelgunov
Hi All, When I am trying to insert an object of the attached "table_1.png" class I've got the error: com.datastax.driver.core.exceptions.UnresolvedUserTypeException: Cannot resolve user type keyspace1."org.apache.cassandra.db.marshal.DoubleType" Could you please suggest the solution? Thank you

Re: Do I have to use the cql in the datastax java driver?

2015-11-09 Thread Robert Coli
On Sun, Nov 8, 2015 at 6:57 AM, Jonathan Haddad wrote: > You shouldn't use thrift, it's effectively dead. > > On Fri, Nov 6, 2015 at 10:30 PM Dikang Gu wrote: > >> Can I still use thrift interface to talk to cassandra? Any reason that we >> should not

Re: Do I have to use the cql in the datastax java driver?

2015-11-08 Thread Jonathan Haddad
You shouldn't use thrift, it's effectively dead. On Fri, Nov 6, 2015 at 10:30 PM Dikang Gu <dikan...@gmail.com> wrote: > Hi there, > > In the datastax java driver, do I have to use the cql to talk to cassandra > cluster? > > Can I still use thrift interface to talk

Do I have to use the cql in the datastax java driver?

2015-11-06 Thread Dikang Gu
Hi there, In the datastax java driver, do I have to use the cql to talk to cassandra cluster? Can I still use thrift interface to talk to cassandra? Any reason that we should not use thrift anymore? Thanks. -- Dikang

Re: Does datastax java driver works with ipv6 address?

2015-11-05 Thread Eric Stevens
The server is binding to the IPv4 "all addresses" reserved address (0.0.0.0), but binding it as IPv4 over IPv6 (:::0.0.0.0), which does not have the same meaning as the IPv6 all addresses reserved IP (being ::, aka 0:0:0:0:0:0:0:0). My guess is you have an IPv4 address of 0.0.0.0 in

Re: Question for datastax java Driver

2015-11-05 Thread Eric Stevens
In short: Yes, but it's not a good idea. To do it, you want to look into WhiteListPolicy for your loadbalancer policy, if your WhiteListPolicy contains only the same host(s) that you added as contact points, then the client will only connect to those hosts. However it's probably not a good idea

Re: Does datastax java driver works with ipv6 address?

2015-11-04 Thread Michael Shuler
On 11/04/2015 11:17 AM, Dikang Gu wrote: I have ipv6 only cassandra cluster, and I'm trying to connect to it using java driver, like: Inet6Address inet6 = (Inet6Address) InetAddress.getByName("2401:db00:0011:60ed:face::0031:"); cluster =

Re: Does datastax java driver works with ipv6 address?

2015-11-04 Thread Dikang Gu
Thanks Michael, Actually I find the problem is with the sever setup, I put "rpc_address: 0.0.0.0" in the config, and I find the sever bind to the address like this: tcp0 0 :::9160 :::* LISTEN 2411582/java tcp0 0 :::0.0.0.0:9042 :::*

Question for datastax java Driver

2015-11-04 Thread Dikang Gu
Hi there, Right now, it seems if I add a contact point like this: cluster = Cluster.builder().addContactPoint().build(); When client is connected to the cluster, client will fetch the addresses for all the nodes in the cluster, and try to connect to them. I'm wondering can I disable the

Does datastax java driver works with ipv6 address?

2015-11-04 Thread Dikang Gu
Hi there, I have ipv6 only cassandra cluster, and I'm trying to connect to it using java driver, like: Inet6Address inet6 = (Inet6Address) InetAddress.getByName("2401:db00:0011:60ed:face::0031:"); cluster = Cluster.builder().addContactPointsWithPorts(Arrays.asList(new

Re: Can consistency-levels be different for "read" and "write" in Datastax Java-Driver?

2015-10-26 Thread daemeon reiydelle
If one rethinks "consistency" to mean "copies returned" and "copies written" then one can have different values for the former (datastax) and the latter (within Cassandra). The latter changes eventual consistency (e.g. two copies must be written), the former can speed up a result at the (slight)

Re: Can consistency-levels be different for "read" and "write" in Datastax Java-Driver?

2015-10-26 Thread Jonathan Haddad
What's your query? Do you have IF NOT EXISTS in there? On Mon, Oct 26, 2015 at 11:17 AM Ajay Garg wrote: > Right now, I have setup "LOCAL QUORUM" as the consistency level in the > driver, but it seems that "SERIAL" is being used during writes, and I > consistently get

Can consistency-levels be different for "read" and "write" in Datastax Java-Driver?

2015-10-26 Thread Ajay Garg
Right now, I have setup "LOCAL QUORUM" as the consistency level in the driver, but it seems that "SERIAL" is being used during writes, and I consistently get this error of type :: *Cassandra timeout during write query at consistency SERIAL (3 replica were required but only 0 acknowledged the

Re: cassandra 3.0 rc1 and datastax java driver 3.0.0 alpha3

2015-10-12 Thread Alex Popescu
ried to connect to the cassandra 3.0 cluster, using datastax java > driver, but I got the following exception when I tried to craete > MappingManager: > > Caused by: com.datastax.driver.core.exceptions.CodecNotFoundException: > Codec not found for request

cassandra 3.0 rc1 and datastax java driver 3.0.0 alpha3

2015-10-10 Thread Vova Shelgunov
Hi all, I've tried to connect to the cassandra 3.0 cluster, using datastax java driver, but I got the following exception when I tried to craete MappingManager: Caused by: com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested operation: [varchar <-

Re: Datastax Java Driver vs Cassandra 2.1.7

2015-06-23 Thread Sam Tunnicliffe
-innovations.com wrote: Hi, I’m using Datastax Java Driver V 2.1.6 I migrated my cluster to Cassandra V2.1.7 And now I have an error on my client that goes like: 2015-06-23 10:49:11.914 WARN 20955 --- [ I/O worker #14] com.datastax.driver.core.RequestHandler : /192.168.2.201:9042 replied

Re: Datastax Java Driver vs Cassandra 2.1.7

2015-06-23 Thread Jean Tremblay
and the schema of the target table? It could be something related to CASSANDRA-9532. On Tue, Jun 23, 2015 at 10:05 AM, Jean Tremblay jean.tremb...@zen-innovations.commailto:jean.tremb...@zen-innovations.com wrote: Hi, I’m using Datastax Java Driver V 2.1.6 I migrated my cluster to Cassandra

Re: Datastax Java Driver vs Cassandra 2.1.7

2015-06-23 Thread Jean Tremblay
using Datastax Java Driver V 2.1.6 I migrated my cluster to Cassandra V2.1.7 And now I have an error on my client that goes like: 2015-06-23 10:49:11.914 WARN 20955 --- [ I/O worker #14] com.datastax.driver.core.RequestHandler : /192.168.2.201:9042http://192.168.2.201:9042/ replied with server

Datastax Java Driver vs Cassandra 2.1.7

2015-06-23 Thread Jean Tremblay
Hi, I’m using Datastax Java Driver V 2.1.6 I migrated my cluster to Cassandra V2.1.7 And now I have an error on my client that goes like: 2015-06-23 10:49:11.914 WARN 20955 --- [ I/O worker #14] com.datastax.driver.core.RequestHandler : /192.168.2.201:9042 replied with server error

Re: Datastax Java Driver vs Cassandra 2.1.7

2015-06-23 Thread Sam Tunnicliffe
Can you share the query that you're executing when you see the error and the schema of the target table? It could be something related to CASSANDRA-9532. On Tue, Jun 23, 2015 at 10:05 AM, Jean Tremblay jean.tremb...@zen-innovations.com wrote: Hi, I’m using Datastax Java Driver V 2.1.6 I

RE: Problems with user defined types (cql) and Datastax Java Driver

2015-02-05 Thread Andreas Finke
Hi Alex, I did so. Thanks for that hint. Andi From: Alex Popescu [al...@datastax.com] Sent: 05 February 2015 18:14 To: user Subject: Re: Problems with user defined types (cql) and Datastax Java Driver Andreas, Can you please post your question to the Java

Re: Problems with user defined types (cql) and Datastax Java Driver

2015-02-05 Thread Alex Popescu
Assert.assertEquals(price, priceType.getTypeName()); // true Assert.assertEquals(4, priceType.getFieldNames().size()); // AssertionFailedError: expected:4 but was:0 I am testing with Cassandra v.2.1.2 on Windows using Datastax Java Driver 2.1.2. I am thankful for any suggestions

Problems with user defined types (cql) and Datastax Java Driver

2015-02-05 Thread Andreas Finke
, priceType.getTypeName()); // true Assert.assertEquals(4, priceType.getFieldNames().size()); // AssertionFailedError: expected:4 but was:0 I am testing with Cassandra v.2.1.2 on Windows using Datastax Java Driver 2.1.2. I am thankful for any suggestions. Regards Andi

Random NoHostAvailableException using DataStax Java driver

2014-11-04 Thread Ola Nowak
Hi All :) I have an application which use DataStax Java driver v2.0.2 to connect to Cassandra Cluster (6 nodes, v 2.0.11). Application is deployed in three copies on 3 different servers. From time to time on random application server I get this exception: 2014-11-04 10:37:15,301 - ERROR

Re: Random NoHostAvailableException using DataStax Java driver

2014-11-04 Thread Olivier Michallat
...@gmail.com wrote: Hi All :) I have an application which use DataStax Java driver v2.0.2 to connect to Cassandra Cluster (6 nodes, v 2.0.11). Application is deployed in three copies on 3 different servers. From time to time on random application server I get this exception: 2014-11-04 10:37

Setting the read/write consistency globaly in the CQL3 datastax java driver

2014-05-15 Thread Sebastian Schmidt
Hi, I'm using the CQL3 Datastax Cassandra Java client. I want to use a global read and write consistency for my queries. I know that I can set the consistencyLevel for every single prepared statement. But I want to do that just once per cluster or once per session. Is that possible? Kind

Hadoop, CqlInputFormat, datastax java driver and uppercase in Keyspace names

2014-04-25 Thread Maxime Nay
Hi, We have a keyspace starting with an upper-case character: Visitors. We are trying to run a map reduce job on one of the column family of this keyspace. To specify the keyspace it seems we have to use: org.apache.cassandra.hadoop. ConfigHelper.setInputColumnFamily(conf, keyspace,

Inserts with a dynamic datamodel using Datastax java driver

2014-04-02 Thread Raveendran, Varsha IN BLR STS
Hello, I am building a write client in java to insert records into Cassandra 2.0.5. I am using the Datastax java driver. Problem : The datamodel is dynamic. By dynamic, I mean that the number of columns and the datatype of columns will be given as an input by the user. It has only 1

Re: Inserts with a dynamic datamodel using Datastax java driver

2014-04-02 Thread DuyHai Doan
, Varsha IN BLR STS varsha.raveend...@siemens.com wrote: Hello, I am building a write client in java to insert records into Cassandra 2.0.5. I am using the Datastax java driver. *Problem** : * The datamodel is dynamic. By dynamic, I mean that the number of columns and the datatype

RE: Inserts with a dynamic datamodel using Datastax java driver

2014-04-02 Thread Raveendran, Varsha IN BLR STS
with a dynamic datamodel using Datastax java driver Hello Varsha Your best bet is to go with blob type by serializing all data into bytes. Another alternative is to use text and serialize to JSON. For the dynamic columns, use clustering columns in CQL3 with blob/text type Regards Duy Hai DOAN

Any way to get a list of per-node token ranges using the DataStax Java driver?

2014-02-28 Thread Clint Kelly
Hi everyone, I've been working on a rewrite of the Cassandra InputFormat for Hadoop 2 using the DataStax Java driver instead of the Thrift API. I have a prototype working now, but there is one bit of code that I have not been able to replace with code for the Java driver. In the InputFormat

Re: Any way to get a list of per-node token ranges using the DataStax Java driver?

2014-02-28 Thread Tupshin Harper
Java driver instead of the Thrift API. I have a prototype working now, but there is one bit of code that I have not been able to replace with code for the Java driver. In the InputFormat#getSplits method, the old code has a call like the following: map = client.describe_ring

Re: Naming variables in a prepared statement in the DataStax Java driver

2014-02-27 Thread Clint Kelly
...@gmail.com wrote: Folks, Is there a way to name the variables in a prepared statement when using the DataStax Java driver? For example, instead of doing: ByteBuffer byteBuffer = ... // some application logic String query = SELECT * FROM foo WHERE bar = ?; PreparedStatement preparedStatement

Buffering for lots of INSERT or UPDATE calls with DataStax Java driver?

2014-02-08 Thread Clint Kelly
Folks, Is there a recommended way to perform lots of INSERT operations in a row when using the DataStax Java driver? I notice that the RecordWriter for the CQL3 Hadoop implementation in Cassandra does some per-data-node buffering of CQL3 queries. The DataStax Java driver, on the other hand

Re: Buffering for lots of INSERT or UPDATE calls with DataStax Java driver?

2014-02-08 Thread DuyHai Doan
Is there a recommended way to perform lots of INSERT operations in a row when using the DataStax Java driver? -- Yes, use UNLOGGED batches. More info here: http://www.datastax.com/documentation/cql/3.0/webhelp/index.html#cql/cql_reference/batch_r.html On Sat, Feb 8, 2014 at 10:19 PM, Clint

Re: Buffering for lots of INSERT or UPDATE calls with DataStax Java driver?

2014-02-08 Thread Clint Kelly
operations in a row when using the DataStax Java driver? I notice that the RecordWriter for the CQL3 Hadoop implementation in Cassandra does some per-data-node buffering of CQL3 queries. The DataStax Java driver, on the other hand, supports asynchronous query execution. In a situation

Re: Occasional NPE using DataStax Java driver

2013-12-19 Thread Sylvain Lebresne
Mind opening a ticket on https://datastax-oss.atlassian.net/browse/JAVA? It's almost surely a bug. -- Sylvain On Thu, Dec 19, 2013 at 8:21 AM, David Tinker david.tin...@gmail.comwrote: We are using Cassandra 2.0.3-1 installed on Ubuntu 12.04 from the DataStax repo with the DataStax Java

Re: Occasional NPE using DataStax Java driver

2013-12-19 Thread Mikhail Stepura
I would suggest to file an issue at https://datastax-oss.atlassian.net/browse/JAVA -Mikhail On 12/18/13, 23:21, David Tinker wrote: We are using Cassandra 2.0.3-1 installed on Ubuntu 12.04 from the DataStax repo with the DataStax Java driver version 2.0.0-rc1. Every now and then we get

Re: Occasional NPE using DataStax Java driver

2013-12-19 Thread Mikhail Stepura
I would suggest to file an issue at https://datastax-oss.atlassian.net/browse/JAVA -Mikhail On 12/18/13, 23:21, David Tinker wrote: We are using Cassandra 2.0.3-1 installed on Ubuntu 12.04 from the DataStax repo with the DataStax Java driver version 2.0.0-rc1. Every now and then we get

Occasional NPE using DataStax Java driver

2013-12-18 Thread David Tinker
We are using Cassandra 2.0.3-1 installed on Ubuntu 12.04 from the DataStax repo with the DataStax Java driver version 2.0.0-rc1. Every now and then we get the following exception: 2013-12-19 06:56:34,619 [sql-2-t15] ERROR core.RequestHandler - Unexpected error while querying /x.x.x.x

Dynamic Columns Question Cassandra 1.2.5, Datastax Java Driver 1.0

2013-06-06 Thread Joe Greenawalt
Hi, I'm having some problems figuring out how to append a dynamic column on a column family using the datastax java driver 1.0 and CQL3 on Cassandra 1.2.5. Below is what i'm trying: *cqlsh:simplex create table user (firstname text primary key, lastname text); cqlsh:simplex insert into user

Re: Dynamic Columns Question Cassandra 1.2.5, Datastax Java Driver 1.0

2013-06-06 Thread Shahab Yunus
at 9:02 AM, Joe Greenawalt joe.greenaw...@gmail.comwrote: Hi, I'm having some problems figuring out how to append a dynamic column on a column family using the datastax java driver 1.0 and CQL3 on Cassandra 1.2.5. Below is what i'm trying: *cqlsh:simplex create table user (firstname text

Re: Dynamic Columns Question Cassandra 1.2.5, Datastax Java Driver 1.0

2013-06-06 Thread Eric Stevens
, 2013, at 8:32 AM, Joe Greenawalt joe.greenaw...@gmail.com wrote: Hi, I'm having some problems figuring out how to append a dynamic column on a column family using the datastax java driver 1.0 and CQL3 on Cassandra 1.2.5. Below is what i'm trying: *cqlsh:simplex create table user (firstname

Re: Dynamic Columns Question Cassandra 1.2.5, Datastax Java Driver 1.0

2013-06-06 Thread Edward Capriolo
, I'm having some problems figuring out how to append a dynamic column on a column family using the datastax java driver 1.0 and CQL3 on Cassandra 1.2.5. Below is what i'm trying: *cqlsh:simplex create table user (firstname text primary key, lastname text); cqlsh:simplex insert into user

Re: Dynamic Columns Question Cassandra 1.2.5, Datastax Java Driver 1.0

2013-06-06 Thread Jonathan Ellis
column on a column family using the datastax java driver 1.0 and CQL3 on Cassandra 1.2.5. Below is what i'm trying: cqlsh:simplex create table user (firstname text primary key, lastname text); cqlsh:simplex insert into user (firstname, lastname) values ('joe','shmoe'); cqlsh:simplex select

Re: Dynamic Columns Question Cassandra 1.2.5, Datastax Java Driver 1.0

2013-06-06 Thread Eric Stevens
to append a dynamic column on a column family using the datastax java driver 1.0 and CQL3 on Cassandra 1.2.5. Below is what i'm trying: *cqlsh:simplex create table user (firstname text primary key, lastname text); cqlsh:simplex insert into user (firstname, lastname) values ('joe','shmoe

Re: Dynamic Columns Question Cassandra 1.2.5, Datastax Java Driver 1.0

2013-06-06 Thread Alain RODRIGUEZ
column on a column family using the datastax java driver 1.0 and CQL3 on Cassandra 1.2.5. Below is what i'm trying: cqlsh:simplex create table user (firstname text primary key, lastname text); cqlsh:simplex insert into user (firstname, lastname) values ('joe','shmoe'); cqlsh:simplex

Re: Dynamic Columns Question Cassandra 1.2.5, Datastax Java Driver 1.0

2013-06-06 Thread Joe Greenawalt
java driver 1.0 and CQL3 on Cassandra 1.2.5. Below is what i'm trying: cqlsh:simplex create table user (firstname text primary key, lastname text); cqlsh:simplex insert into user (firstname, lastname) values ('joe','shmoe'); cqlsh:simplex select * from user; firstname | lastname

Re: com.datastax.driver.core.exceptions.InvalidQueryException using Datastax Java driver

2013-04-23 Thread aaron morton
Can I insert into Column Family (that I created from CLI mode) using Datastax Java driver or not with Cassandra 1.2.3? No. Create you table using CQL 3 via the cqlsh. Cheers - Aaron Morton Freelance Cassandra Consultant New Zealand @aaronmorton http://www.thelastpickle.com

Re: Datastax Java Driver connection issue

2013-04-23 Thread aaron morton
(); But sadly its returning com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed I am using cassandra 1.2.2 Can any one suggest me whats wrong with that. And i am really sorry for posting datastax java driver related question

Re: com.datastax.driver.core.exceptions.InvalidQueryException using Datastax Java driver

2013-04-22 Thread Internet Group
: 'UTF8Type'} {column_name : info, validation_class : 'UTF8Type'} ]; Now I was trying to insert into this column family using the Datastax Java driver- public void upsertAttributes(final String userId, final MapString, String attributes) { String

Re: com.datastax.driver.core.exceptions.InvalidQueryException using Datastax Java driver

2013-04-22 Thread Techy Teck
I am using correct keyspace name for that column family. I have verified that as well. Can I insert into Column Family (that I created from CLI mode) using Datastax Java driver or not with Cassandra 1.2.3? On Mon, Apr 22, 2013 at 5:05 AM, Internet Group fsob...@igcorp.com.brwrote: It seems

Re: Datastax Java Driver connection issue

2013-04-22 Thread Abhijit Chanda
whats wrong with that. And i am really sorry for posting datastax java driver related question in this forum, can't find a better place for the instant reaction -Abhijit -- -Abhijit -- -Abhijit

Re: com.datastax.driver.core.exceptions.InvalidQueryException using Datastax Java driver

2013-04-21 Thread Techy Teck
Can anyone help me out here? The thing that I wanted to know is whether I can insert into Column Family (that I created from CLI mode) using Datastax Java driver or not? As soon as I am trying to insert into Column Family which I have created in CLI mode, I always get the above exception

com.datastax.driver.core.exceptions.InvalidQueryException using Datastax Java driver

2013-04-20 Thread Techy Teck
'} {column_name : advertising, validation_class : 'UTF8Type'} {column_name : behavior, validation_class : 'UTF8Type'} {column_name : info, validation_class : 'UTF8Type'} ]; Now I was trying to insert into this column family using the Datastax Java driver- public void

Retrieve data from Cassandra database using Datastax java driver

2013-04-20 Thread Techy Teck
I am working with Datastax java-driver. And I am trying to retrieve few columns from the database basis on the input that is being passed to the below method- public MapString, String getAttributes(final String userId, final CollectionString attributeNames) { String query=SELECT

Re: Retrieve data from Cassandra database using Datastax java driver

2013-04-20 Thread Dave Brosius
getColumnDefinitions only returns meta data, to get the data, use the iterator to navigate the rows IteratorRow it = result.iterator(); while (it.hasNext()) { Row r = it.next(); //do stuff with row } On 04/21/2013 12:02 AM, Techy Teck wrote: I am working with Datastax java-driver

Re: Retrieve data from Cassandra database using Datastax java driver

2013-04-20 Thread Techy Teck
with Datastax java-driver. And I am trying to retrieve few columns from the database basis on the input that is being passed to the below method- public MapString, String getAttributes(final String userId, final CollectionString attributeNames) { String query=SELECT +attributeNames.toString

Re: Retrieve data from Cassandra database using Datastax java driver

2013-04-20 Thread Abhijit Chanda
to navigate the rows IteratorRow it = result.iterator(); while (it.hasNext()) { Row r = it.next(); //do stuff with row } On 04/21/2013 12:02 AM, Techy Teck wrote: I am working with Datastax java-driver. And I am trying to retrieve few columns from the database basis on the input

Datastax Java Driver connection issue

2013-04-19 Thread Abhijit Chanda
any one suggest me whats wrong with that. And i am really sorry for posting datastax java driver related question in this forum, can't find a better place for the instant reaction -Abhijit

Re: Datastax Java Driver connection issue

2013-04-19 Thread Gabriel Ciuloaica
(); But sadly its returning c*om.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed * * * I am using cassandra 1.2.2 Can any one suggest me whats wrong with that. And i am really sorry for posting datastax java driver related question in this forum

Re: Datastax Java Driver connection issue

2013-04-19 Thread Keith Wright
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed I am using cassandra 1.2.2 Can any one suggest me whats wrong with that. And i am really sorry for posting datastax java driver related question in this forum, can't find a better place for the instant reaction -Abhijit

Re: Datastax Java Driver connection issue

2013-04-19 Thread Abhijit Chanda
with that. And i am really sorry for posting datastax java driver related question in this forum, can't find a better place for the instant reaction -Abhijit -- -Abhijit

Re: Datastax Java Driver connection issue

2013-04-19 Thread Techy Teck
*om.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed * * * I am using cassandra 1.2.2 Can any one suggest me whats wrong with that. And i am really sorry for posting datastax java driver related question in this forum, can't find a better place for the instant reaction

Re: Documentation/Examples for DataStax java-driver

2013-02-13 Thread Shahryar Sedghi
: Are there any documentation/examples available for DataStax java-driver besides what's in the GitHub repo? -- Drew -- Life is what happens while you are making other plans. ~ John Lennon

Re: Documentation/Examples for DataStax java-driver

2013-02-13 Thread Gabriel Ciuloaica
to write. If you still had problem let me know, I can give you sample code. On Tue, Feb 12, 2013 at 9:19 PM, Drew Kutcharian d...@venarc.com mailto:d...@venarc.com wrote: Are there any documentation/examples available for DataStax java-driver besides what's in the GitHub repo? -- Drew

  1   2   >