Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread Jai Bheemsen Rao Dhanwada
What >> will be broken 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 < >> j

Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread C. Scott Andreas
Apr 19, 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

Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread Jai Bheemsen Rao Dhanwada
pr 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 there a Datastax Java Driver >>>> <https://docs.datastax.com/en

Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread C. Scott Andreas
.On Mon, Apr 19, 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+.Than

Re: Datastax Java Driver Compatibility Matrix

2022-04-19 Thread Jai Bheemsen Rao Dhanwada
a 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> wrote: > Thank you > > On Monday, April 19, 2021, Erick Ramirez > wrote: > >>

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 th

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

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-11 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 to

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 was to

Re: Datastax Java Driver compatibility

2019-01-22 Thread Jonathan Haddad
aibheem...@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.datast

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/ja

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

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

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

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

2016-05-10 Thread Sebastian Estevez
2016 1:09 AM, "Lu, Boying" 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 >> *To:* user@cassandra.ap

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

2016-05-10 Thread Sebastian Estevez
> 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 but then we

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 po

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

2016-05-09 Thread DuyHai Doan
nd 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

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 i

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

2016-05-09 Thread DuyHai Doan
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 wrote: >> >>> dHi, All, >>> >>> >>> >>> We are considering

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

2016-05-09 Thread Bhuvan Rawal
16 at 12:25 PM, Lu, Boying 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 according to the >> https://datastax.github

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

2016-05-09 Thread DuyHai Doan
evitable in an eventual consistent distributed DB world On Mon, May 9, 2016 at 12:25 PM, Lu, Boying 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 according

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 p

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 and the DataStax drivers a

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 wrote: Hi Anuj, All released versions of the DataStax Java driver are production ready: 1. they all go t

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])

Production Ready/Stable DataStax Java Driver

2016-05-08 Thread Anuj Wadehra
Hi, Which DataStax Java Driver release is most stable (production ready) for Cassandra 2.1? ThanksAnuj

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 b

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 (pojo_

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 use thrift anymore? >> > I agree with Jona

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 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 to cassandra? Any rea

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 rpc_addres

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 f

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 behavio

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 = Cluster.builder().addContactPointsWithPorts(Array

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 InetSocketAddress(in

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) ri

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 this error of type :: > >

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 write

Re: cassandra 3.0 rc1 and datastax java driver 3.0.0 alpha3

2015-10-12 Thread Alex Popescu
ssandra 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 operati

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 Jean Tremblay
ma of the target table? It could be something related to CASSANDRA-9532. On Tue, Jun 23, 2015 at 10:05 AM, Jean Tremblay mailto:jean.tremb...@zen-innovations.com>> wrote: Hi, I’m using Datastax Java Driver V 2.1.6 I migrated my cluster to Cassandra V2.1.

Re: Datastax Java Driver vs Cassandra 2.1.7

2015-06-23 Thread Sam Tunnicliffe
Tunnicliffe wrote: > > 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 < >

Re: Datastax Java Driver vs Cassandra 2.1.7

2015-06-23 Thread Jean Tremblay
gt;> wrote: 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 mailto:jean.tremb...@zen-innovations.com>> wrote: Hi, I’m using Datas

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

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: 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
JAVA > > > > UserType priceType = > session.getCluster().getMetadata().getKeyspace("quotes").getUserType("price"); > > Assert.assertNotNull(priceType); // true > > Assert.assertEquals("price", priceType.getTypeName()); // true > > Assert.ass

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

2015-02-05 Thread Andreas Finke
ertNotNull(priceType); // true 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. Regards Andi

Re: Random NoHostAvailableException using DataStax Java driver

2014-11-04 Thread Olivier Michallat
a Nowak 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: > &

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

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 Regards,

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, columnFamily)

RE: Inserts with a dynamic datamodel using Datastax java driver

2014-04-02 Thread Raveendran, Varsha IN BLR STS
: Inserts 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

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

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: Any way to get a list of per-node token ranges using the DataStax Java driver?

2014-02-28 Thread Tupshin Harper
re of any way to get it directly through CQL. http://www.datastax.com/documentation/cassandra/2.0/cassandra/tools/toolsGetEndPoints.html -Tupshin On Fri, Feb 28, 2014 at 1:27 PM, Clint Kelly wrote: > Hi everyone, > > I've been working on a rewrite of the Cassandra InputFormat for Hado

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 InputF

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

2014-02-27 Thread Clint Kelly
t; 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 = ?&qu

Naming variables in a prepared statement in the DataStax Java driver

2014-02-27 Thread Clint Kelly
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 = sessi

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

2014-02-08 Thread Clint Kelly
Ah yes, thanks! I had forgotten about the use of batches for this purpose. Appreciate the help, cheers! Best regards, Clint On Sat, Feb 8, 2014 at 1:24 PM, DuyHai Doan wrote: > "Is there a recommended way to perform lots of INSERT operations in a row > when using the DataStax

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

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: Occasional NPE using DataStax Java driver

2013-12-19 Thread David Tinker
:21 AM, 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 the following exception: >> >> 2013-12-19 06:56:34,619 [sql-2-

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 the

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 the

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 wrote: > We are using Cassandra 2.0.3-1 installed on Ubuntu 12.04 from the > DataStax repo with the DataStax Java driver versio

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

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

2013-06-06 Thread Joe Greenawalt
wrote an more in-depth >> answer: >> http://www.datastax.com/dev/blog/does-cql-support-dynamic-columns-wide-rows >> >> On Thu, Jun 6, 2013 at 8:02 AM, Joe Greenawalt >> wrote: >> > Hi, >> > I'm having some problems figuring out how to append a

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

2013-06-06 Thread Alain RODRIGUEZ
namic 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 Eric Stevens
.datastax.com/dev/blog/cql3_collections >>> >>> For wide rows there's the enhanced primary keys, which I personally >>> prefer over the composite columns of yore: >>> >>> http://www.datastax.com/dev/blog/cql3-for-cassandra-experts >>> h

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

2013-06-06 Thread Jonathan Ellis
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 > ('jo

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

2013-06-06 Thread Edward Capriolo
datastax.com/dev/blog/cql3-for-cassandra-experts >> http://thelastpickle.com/2013/01/11/primary-keys-in-cql/ >> >> -- >> Francisco Andrades Grassi >> www.bigjocker.com >> @bigjocker >> >> On Jun 6, 2013, at 8:32 AM, Joe Greenawalt >> wrote:

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

2013-06-06 Thread Eric Stevens
rimary-keys-in-cql/ > > -- > Francisco Andrades Grassi > www.bigjocker.com > @bigjocker > > On Jun 6, 2013, at 8:32 AM, Joe Greenawalt > wrote: > > Hi, > I'm having some problems figuring out how to append a dynamic column on a > column family using the datas

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

2013-06-06 Thread Francisco Andrades Grassi
> 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

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

2013-06-06 Thread Shahab Yunus
9:02 AM, Joe Greenawalt 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 (first

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>

Re: Datastax Java Driver connection issue

2013-04-23 Thread aaron morton
>> com.datastax.cassandra >> cassandra-driver-core >> 1.0.0-beta2 >> >> >> Then tried a sample program to connect to the cluster >> Cluster cluster = Cluster.builder() >> .addContactPoints(db1) >> .withPort(

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 @aaronmorto

Re: Datastax Java Driver connection issue

2013-04-22 Thread Abhijit Chanda
addContactPoints(db1) >>> .withPort(9160) >>> .build(); >>> >>> 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, 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-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 wrote: > It seems to me that you are

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

2013-04-22 Thread Internet Group
lass : '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- &

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. But If

Re: Datastax Java Driver connection issue

2013-04-21 Thread aaron morton
.build(); > > 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 in > this forum, can't find a better place for the instant reaction > > > -Abhijit > > > > -- > -Abhijit >

Re: Retrieve data from Cassandra database using Datastax java driver

2013-04-20 Thread Abhijit Chanda
nly returns meta data, to get the data, use the >> iterator to navigate the rows >> >> >> Iterator it = result.iterator(); >> >> while (it.hasNext()) { >> Row r = it.next(); >> //do stuff with row >> >> } >> >> On 04/21/2013 12:02 AM,

Re: Retrieve data from Cassandra database using Datastax java driver

2013-04-20 Thread Techy Teck
eta data, to get the data, use the > iterator to navigate the rows > > > Iterator 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

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 Iterator 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

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 Map getAttributes(final String userId, final Collection attributeNames) { String query="SELECT " +attributeName

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

2013-04-20 Thread Techy Teck
, validation_class : 'UTF8Type'} {column_name : advertising, validation_class : 'UTF8Type'} {column_name : behavior, validation_class : 'UTF8Type'} {column_name : info, validation_class : 'UTF8Type'} ]; Now I was trying to insert

Re: Datastax Java Driver connection issue

2013-04-19 Thread Techy Teck
.build(); >> >> 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, can't find a better place for the instant reaction >> >> >> -Abhijit >> > > > > -- > -Abhijit >

Re: Datastax Java Driver connection issue

2013-04-19 Thread Abhijit Chanda
.withPort(9160) > .build(); > > 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. >

  1   2   >