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 EF5F31813C for ; Mon, 4 Jan 2016 08:43:52 +0000 (UTC) Received: (qmail 44535 invoked by uid 500); 4 Jan 2016 08:43:49 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 44497 invoked by uid 500); 4 Jan 2016 08:43:49 -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 44487 invoked by uid 99); 4 Jan 2016 08:43:49 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2016 08:43:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 14409180510 for ; Mon, 4 Jan 2016 08:43:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.9 X-Spam-Level: *** X-Spam-Status: No, score=3.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_HTMLNOISE=1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MAkENO4l8s6R for ; Mon, 4 Jan 2016 08:43:37 +0000 (UTC) Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id C1DCB42A73 for ; Mon, 4 Jan 2016 08:43:36 +0000 (UTC) Received: by mail-wm0-f44.google.com with SMTP id f206so202381938wmf.0 for ; Mon, 04 Jan 2016 00:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type; bh=lVbYUUSZSyBratPloNGNlcQa5dA2nIdtbMt+5/iBVP8=; b=Y3ETTCo5SHGW7IwT+iREJuz3BQMCU3gl5LFxDrPlSMdqzipipvv8J01gQ1HHfZqg/d cdbJdH4jMb0xuiB3kD2zRxm14qTMKcwgEg2/RshsGBocPjRkqQU/G9Ap49sVvAYTnSw9 hJpe468PXMLBlFBlOEmtHC+FYWacdOq8BRrVsrkTIiFgqqzIWegB58PaB7uvz8zf5JiK kVVw7jo+wMlaZQY1PUrRRnhPEnsLXmSDLTS1SYS+h96+ksJm6UlCXleAt2FP8cv06JiR kWhZfzes9AMITz+8tOO4MBtN0YfpGgWvoiSje12oMKmtm3KYUlq5TwJWz29nsyHYqG5B 5Bnw== X-Received: by 10.28.32.206 with SMTP id g197mr87537271wmg.28.1451897015917; Mon, 04 Jan 2016 00:43:35 -0800 (PST) Received: from [192.168.1.2] ([93.84.42.9]) by smtp.googlemail.com with ESMTPSA id z17sm85253202wjq.1.2016.01.04.00.43.34 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jan 2016 00:43:35 -0800 (PST) Subject: Re: Cassandra Java Driver To: user@cassandra.apache.org References: <13D76855-A8D1-442E-9FD4-02D3620B7F04@zen-innovations.com> <5683CF06.4020504@gmail.com> From: "ssivikt@gmail.com" Message-ID: <568A30B4.1040603@gmail.com> Date: Mon, 4 Jan 2016 11:43:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------000904000602010408040609" This is a multi-part message in MIME format. --------------000904000602010408040609 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Trying to connect to C* v3.1.1 cluster. It works nice with cqlsh /$ cqlsh// //Connected to Test Cluster at 127.0.0.1:9042.// //[cqlsh 5.0.1 | Cassandra 3.1.1 | CQL spec 3.3.1 | Native protocol v4]/ But doesn't work with /cassandra-driver-core/. I use next mvn deps: /// // com.datastax.cassandra// //cassandra-driver-core// // 3.0.0-rc1// //// // //// // org.apache.cassandra// // cassandra-all// // 3.1.1// /// And connect in the next code: /Cluster.Builder builder = Cluster.builder() .withProtocolVersion(ProtocolVersion.V4) .withPort(9042) .addContactPoint("127.0.0.1"); cluster = builder.build(); Metadata metadata = cluster.getMetadata();/ And it doesn't work. I get the exception: /com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.exceptions.TransportException: [/127.0.0.1] Cannot connect))// // at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:231)// // at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:77)// // at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1382)// // at com.datastax.driver.core.Cluster.getMetadata(Cluster.java:393)/ Everything is ok for C* 2.2.4 when I use / $ cqlsh Connected to Test Cluster at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 2.2.4 | CQL spec 3.3.1 | Native protocol v4]/ /// // com.datastax.cassandra// //cassandra-driver-core// // 2.1.9// //// // //// // org.apache.cassandra// // cassandra-all// // 3.1.1// /// /Cluster.Builder builder = Cluster.builder() .withPort(9042) .addContactPoint("127.0.0.1"); /C* java driver isn't ready to use?/ / On 12/30/2015 04:48 PM, DuyHai Doan wrote: > > Check protocol version when you create your Cluster object on the > client side > > Le 30 déc. 2015 13:33, "ssivikt@gmail.com " > > a écrit : > > I've just tried to use cassandra-driver-core-3.0.0_rc1 and > cassandra-driver-core-3.0.0_beta1 with C* 2.2.4 > (cassandra-all-2.2.4). And neither of them can connect to the > local cluster. But cassandra-driver-core-2.1.9. Am I doing wrong? > > > Happy New Year! > > On 12/28/2015 04:08 PM, Alexandre Dutra wrote: >> FYI, Java driver 3.0.0-rc1 has just been released >> . >> >> >> On Sat, Dec 26, 2015 at 11:15 AM Brice Dutheil >> > wrote: >> >> Not yet. The latestest DSE (4.8.3) is shipped with a patched >> version of Cassandra 2.11. >> You can find this information on their website. >> >> 4.8 Release note : >> https://docs.datastax.com/en/datastax_enterprise/4.8/datastax_enterprise/RNdse.html >> From this page in the menu you can navigate and unroll the >> menu /Product Guide/ > /Datastax Enterprise/ it should >> contain DSE versions. >> >> And there's always other sources like the blog. >> >> Cassandra 3.x should be shipped with DSE 5.x early next year. >> >> >> HTH >> >> -- Brice >> >> On Sat, Dec 26, 2015 at 3:46 AM, Noorul Islam Kamal Malmiyoda >> > wrote: >> >> Is DSE shipping with 3.x ? >> >> Thanks and Regards >> Noorul >> >> On Fri, Dec 25, 2015 at 9:07 PM, Alexandre Dutra >> > > wrote: >> > Hi Jean, >> > >> > You should use 3.0.0-beta1. >> > >> > TL;DR >> > >> > DataStax Java driver series 2.2.x has been discontinued >> in favor of series >> > 3.x; we explained why in this mail to the Java driver >> mailing list. We do >> > not advise users to use this series. >> > >> > So the most recent driver version compatible with all >> versions of Cassandra, >> > including 2.2 and 3.x, is now 3.0.0-beta1, although >> 3.0.0-rc1 will be >> > released very soon. >> > >> > In spite of its "beta" label, version 3.0.0-beta1 has >> been thoroughly tested >> > against all versions of Cassandra and is definitely >> production-ready... as >> > long as the Cassandra version in use is also >> production-ready. Note however >> > that Cassandra 2.2 and 3.0 are quite recent and most >> companies AFAICT do not >> > consider them yet as production-ready. >> > >> > Hope that helps, >> > >> > Alexandre >> > >> > >> > On Tue, Dec 22, 2015 at 4:40 PM Jean Tremblay >> > > > wrote: >> >> >> >> Hi, >> >> Which Java Driver is suited for Cassandra 2.2.x. ? >> >> I see datastax 3.0.0 beta1 and datastax 2.2.0 rc3... >> >> Are they suited for production? >> >> Is there anything better? >> >> Thanks for your comments and replies? >> >> Jean >> > >> > -- >> > Alexandre Dutra >> > Driver & Tools Engineer @ DataStax >> >> >> -- >> Alexandre Dutra >> Driver & Tools Engineer @ DataStax > > -- > Thanks, > Serj > -- Thanks, Serj --------------000904000602010408040609 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Trying to connect to C* v3.1.1 cluster.
It works nice with cqlsh

$ cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.1.1 | CQL spec 3.3.1 | Native protocol v4]


But doesn't work with cassandra-driver-core.
I use next mvn deps:

<dependency>
    <groupId>com.datastax.cassandra</groupId>
    <artifactId>cassandra-driver-core</artifactId>
    <version>3.0.0-rc1</version>
</dependency>

<dependency>
    <groupId>org.apache.cassandra</groupId>
    <artifactId>cassandra-all</artifactId>
    <version>3.1.1</version>
</dependency>


And connect in the next code:

Cluster.Builder builder = Cluster.builder()
        .withProtocolVersion(ProtocolVersion.V4)
        .withPort(9042)
        .addContactPoint("127.0.0.1");

cluster = builder.build();
Metadata metadata = cluster.getMetadata();


And it doesn't work. I get the exception:
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.exceptions.TransportException: [/127.0.0.1] Cannot connect))
    at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:231)
    at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:77)
    at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1382)
    at com.datastax.driver.core.Cluster.getMetadata(Cluster.java:393)


Everything is ok for C* 2.2.4 when I use

$ cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.2.4 | CQL spec 3.3.1 | Native protocol v4]


<dependency>
    <groupId>com.datastax.cassandra</groupId>
    <artifactId>cassandra-driver-core</artifactId>
    <version>2.1.9</version>
</dependency>

<dependency>
    <groupId>org.apache.cassandra</groupId>
    <artifactId>cassandra-all</artifactId>
    <version>3.1.1</version>
</dependency>


Cluster.Builder builder = Cluster.builder()
        .withPort(9042)
        .addContactPoint("127.0.0.1");


C* java driver isn't ready to use?

On 12/30/2015 04:48 PM, DuyHai Doan wrote:

Check protocol version when you create your Cluster object on the client side

Le 30 déc. 2015 13:33, "ssivikt@gmail.com" <ssivikt@gmail.com> a écrit :
I've just tried to use cassandra-driver-core-3.0.0_rc1 and cassandra-driver-core-3.0.0_beta1 with C* 2.2.4 (cassandra-all-2.2.4). And neither of them can connect to the local cluster. But  cassandra-driver-core-2.1.9. Am I doing wrong?


Happy New Year!

On 12/28/2015 04:08 PM, Alexandre Dutra wrote:
FYI, Java driver 3.0.0-rc1 has just been released.

On Sat, Dec 26, 2015 at 11:15 AM Brice Dutheil <brice.dutheil@gmail.com> wrote:
Not yet. The latestest DSE (4.8.3) is shipped with a patched version of Cassandra 2.11.
You can find this information on their website. 

From this page in the menu you can navigate and unroll the menu Product Guide > Datastax Enterprise it should contain DSE versions.

And there's always other sources like the blog.

Cassandra 3.x should be shipped with DSE 5.x early next year.


HTH

-- Brice

On Sat, Dec 26, 2015 at 3:46 AM, Noorul Islam Kamal Malmiyoda <noorul@noorul.com> wrote:
Is DSE shipping with 3.x ?

Thanks and Regards
Noorul

On Fri, Dec 25, 2015 at 9:07 PM, Alexandre Dutra
<alexandre.dutra@datastax.com> wrote:
> Hi Jean,
>
> You should use 3.0.0-beta1.
>
> TL;DR
>
> DataStax Java driver series 2.2.x has been discontinued in favor of series
> 3.x; we explained why in this mail to the Java driver mailing list. We do
> not advise users to use this series.
>
> So the most recent driver version compatible with all versions of Cassandra,
> including 2.2 and 3.x, is now 3.0.0-beta1, although 3.0.0-rc1 will be
> released very soon.
>
> In spite of its "beta" label, version 3.0.0-beta1 has been thoroughly tested
> against all versions of Cassandra and is definitely production-ready... as
> long as the Cassandra version in use is also production-ready. Note however
> that Cassandra 2.2 and 3.0 are quite recent and most companies AFAICT do not
> consider them yet as production-ready.
>
> Hope that helps,
>
> Alexandre
>
>
> On Tue, Dec 22, 2015 at 4:40 PM Jean Tremblay
> <jean.tremblay@zen-innovations.com> wrote:
>>
>> Hi,
>> Which Java Driver is suited for Cassandra 2.2.x. ?
>> I see datastax 3.0.0 beta1 and datastax 2.2.0 rc3...
>> Are they suited for production?
>> Is there anything better?
>> Thanks for your comments and replies?
>> Jean
>
> --
> Alexandre Dutra
> Driver & Tools Engineer @ DataStax

--
Alexandre Dutra
Driver & Tools Engineer @ DataStax

-- 
Thanks,
Serj

-- 
Thanks,
Serj
--------------000904000602010408040609--