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 835A410C50 for ; Fri, 4 Oct 2013 19:19:50 +0000 (UTC) Received: (qmail 68717 invoked by uid 500); 4 Oct 2013 19:19:47 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 68418 invoked by uid 500); 4 Oct 2013 19:19:44 -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 68410 invoked by uid 99); 4 Oct 2013 19:19:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Oct 2013 19:19:43 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rrodseth@gmail.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Oct 2013 19:19:38 +0000 Received: by mail-ie0-f174.google.com with SMTP id u16so9968461iet.19 for ; Fri, 04 Oct 2013 12:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FGvhpGUw0enqQOc2ty+rXMCRYaABAXIRCZgSvtRIIa0=; b=BHG7QJ8O6wJf/6tKR+gnP10/x5stKttP2IxddNotDcLP1XmDOMGKxSY8tbdyHZWs6j wxNCsArDJE7b0Tw6cyKxsfd5KF4ubZF9RFTheYDyH9OLGVLSVhkWPEF26SsKVTW4cgC5 MmsW23OnYv3LUk/JcviZgzoGR/kp6ceQ015O/lvKHEFggvAUYXW+JuuJ9lPNA56EZqlt GWHNQ1Tg6Cfp3w1iL5dS66Pqca1cgo6JYESoeqvPrqvBT1mBBKMT9OZklXgTZ5/9E5ce aLxitkXpEIoVb4is1uj88XTzTeR8ar1S0YJ9vyifkeFOKW3z9XESNsadm/GxdG7UEFe2 Fd2A== MIME-Version: 1.0 X-Received: by 10.50.17.97 with SMTP id n1mr7715271igd.51.1380914357583; Fri, 04 Oct 2013 12:19:17 -0700 (PDT) Received: by 10.43.16.71 with HTTP; Fri, 4 Oct 2013 12:19:17 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Oct 2013 12:19:17 -0700 Message-ID: Subject: Re: DataStax driver with Scala/Akka From: Richard Rodseth To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=089e0122e6e6bfc9a304e7ef2db0 X-Virus-Checked: Checked by ClamAV on apache.org --089e0122e6e6bfc9a304e7ef2db0 Content-Type: text/plain; charset=ISO-8859-1 For the record, I was depending on a project that was pulling in an older r09 version of Guava. Thanks again for the help. On Thu, Oct 3, 2013 at 7:29 PM, Richard Rodseth wrote: > Thanks very much. Your pom works for me too, so that gives me a good > reference point. > > > On Thu, Oct 3, 2013 at 11:30 AM, Giancarlo Silvestrin < > giancarlos@gmail.com> wrote: > >> I created a sample pom.xml that successfully compiles cassandra.scala >> using maven 3, it might be useful to compare with you own: >> https://gist.github.com/gsilvestrin/6814624 >> >> >> On Thu, Oct 3, 2013 at 2:16 PM, Richard Rodseth wrote: >> >>> Thanks for the offer. I wouldn't be able to share the whole pom, and >>> this task has been de-prioritized, but if I can find the time I will try to >>> create a simpler test case. >>> >>> I just tried adding the exclusion to the pom dependency, but it didn't >>> make a difference. >>> >>> sbt: >>> >>> "com.datastax.cassandra" % "cassandra-driver-core" % "1.0.1" >>> exclude("org.xerial.snappy", "snappy-java"), >>> "org.xerial.snappy" % "snappy-java" % "1.0.5", // >>> https://github.com/ptaoussanis/carmine/issues/5 >>> >>> maven: >>> >>> >>> >>> >>> >>> com.datastax.cassandra >>> >>> cassandra-driver-core >>> >>> 1.0.1 >>> >>> >>> >>> >>> >>> org.xerial.snappy >>> >>> snappy-java >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> org.xerial.snappy >>> >>> snappy-java >>> >>> 1.0.5 >>> >>> >>> >>> On Thu, Oct 3, 2013 at 10:36 AM, Giancarlo Silvestrin < >>> giancarlos@gmail.com> wrote: >>> >>>> Richard, >>>> >>>> I'm using akka + cassandra as well. I copied cassandra.scala to my >>>> local project and it compiled fine using SBT. >>>> >>>> If you can share your pom.xml I can try to help you. >>>> >>>> -- Giancarlo >>>> >>>> On Thu, Oct 3, 2013 at 12:14 PM, Richard Rodseth wrote: >>>> >>>>> I wanted to try the async Cassandra driver from DataStax, in a >>>>> Scala/Akka app, so I took a look at the Akka Cassandra Activator template. >>>>> >>>>> https://github.com/eigengo/activator-akka-cassandra >>>>> >>>>> I copied cassandra.scala from the template (it contains a conversion >>>>> from ResultSetFuture to a Scala future). >>>>> >>>>> Unfortunately that file doesn't compile in my project - the error is: >>>>> >>>>> value addListener is not a member of >>>>> com.datastax.driver.core.ResultSetFuture >>>>> >>>>> >>>>> I have the following in my Maven pom.xml >>>>> >>>>> >>>>> >>>>> com.datastax.cassandra >>>>> >>>>> cassandra-driver-core >>>>> >>>>> 1.0.3 >>>>> >>>>> >>>>> >>>>> Probably something silly. Any pointers appreciated. Any other >>>>> non-blocking Akka/Cassandra samples out there for me to look at? >>>>> >>>>> Thanks in advance >>>>> >>>>> RIchard >>>>> >>>> >>>> >>> >> > --089e0122e6e6bfc9a304e7ef2db0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
For the record, I was depending on a project that was pull= ing in an older r09 version of Guava. Thanks again for the help.


On Thu, Oct 3, 201= 3 at 7:29 PM, Richard Rodseth <rrodseth@gmail.com> wrote:
Thanks very much. Your pom = works for me too, so that gives me a good reference point.


On Thu, Oct 3, 2013 at 11:30 AM, Giancarlo Silvestrin <giancarlos@= gmail.com> wrote:
I created a sample pom.xml = that successfully compiles cassandra.scala using maven 3, it might be usefu= l to compare with you own:=A0https://gist.github.com/gsilvestrin/6814624=


On Thu, Oct 3, 2013 at 2:16 PM, Richard = Rodseth <rrodseth@gmail.com> wrote:
Thanks for the offer. I wouldn't be able to share the = whole pom, and this task has been de-prioritized, but if I can find the tim= e I will try to create a simpler test case.

I just tried= adding the exclusion to the pom dependency, but it didn't make a diffe= rence.

sbt:

=A0 "com.datast= ax.cassandra" =A0% "cassandra-driver-core" % "1.0.1&quo= t; =A0exclude("org.xerial.snappy", "snappy-java"),
=A0 "org.xerial.snappy" =A0 =A0 =A0 % "snappy-java" =A0= =A0 =A0 =A0 =A0 % "1.0.5", //https://github.com/ptaoussanis/c= armine/issues/5

maven:

<!-- =A0 =A0 =A0 =A0 =A0 =A0 Based on typesafe activator= template for cassandra/akka -->

=A0=A0 =A0 =A0 =A0 =A0 <dependency>= ;

=A0 =A0 =A0 =A0 =A0 =A0 <groupId><= /span>com.datastax.cassandra</groupId>= ;

=A0 =A0 =A0 =A0 =A0 =A0 <artifactId&g= t;cassandra-driver-core</artifact= Id>

=A0 =A0 =A0 =A0 =A0 =A0 <version>1.0.1</version>

=A0 =A0 =A0 =A0 =A0 =A0 <exclusions&g= t;

=A0 =A0 =A0 =A0 =A0 =A0 =A0 <exclusio= n>=A0 <!-- declare the exclusion her= e -->

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <groupId>org.xerial.snappy</groupId= >

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <artifactId= >snappy-java</artifactId= >

=A0 =A0 =A0 =A0 =A0 =A0 =A0 </exclusion>

=A0 =A0 =A0 =A0 =A0 =A0 </exclusions&= gt;=A0

=A0 =A0 =A0 =A0 =A0 </dependency><= /span>

=A0 =A0 =A0 =A0 =A0 <dependency>

=A0 =A0 =A0 =A0 =A0 =A0 =A0 <groupId&= gt;org.xerial.snappy</groupId>=

=A0 =A0 =A0 =A0 =A0 =A0 =A0 <artifactId>snappy-java</artifactId>=

=A0 =A0 =A0 =A0 =A0 =A0 =A0 <version&= gt;1.0.5</version>

=A0 =A0 =A0 =A0 =A0=A0</dependency&= gt;=A0


On Thu, Oct 3, 2013 at 10:36 AM, Giancarlo Silvestrin= <giancarlos@gmail.com> wrote:
Richard,

I'm using akka + cassandra as well. I copied=A0cassandra.scala to my local project an= d it compiled fine using SBT.

If = you can share your pom.xml I can try to help you.=A0

-- Giancarlo

On Thu, Oct 3, 2013 at 12:14 PM, Richard= Rodseth <rrodseth@gmail.com> wrote:
I wanted to try the async = Cassandra driver from DataStax, in a Scala/Akka app, so I took a look at th= e Akka Cassandra Activator template.


= I copied cassandra.scala from the template (it contains a conversion from R= esultSetFuture to a Scala future).

Unfortunately that file doesn't compile in my project - the e= rror is:

value addListener is not a member of com.datastax.driver.cor= e.ResultSetFuture


I have the following in my Maven pom.xml=A0

=A0 =A0 =A0 =A0 =A0 =A0<dependency>

=A0 =A0 =A0 =A0 =A0 = =A0=A0<groupId>com.datastax.cassandra</groupId>

=A0 =A0 = =A0 =A0 =A0 =A0=A0<artifactId>cassandra-driver-core</artifactId>= ;

=A0 =A0 =A0 =A0 =A0 =A0=A0<version>1.0.3</version>

=A0= =A0 =A0 =A0 =A0=A0</dependency>

Probably something silly. Any = pointers appreciated. Any other non-blocking Akka/Cassandra samples out the= re for me to look at?

Thanks in advance

RIchard

=





--089e0122e6e6bfc9a304e7ef2db0--