【问题标题】:cassie dependency with cassandra 2.0.1 and scala 2.10.2cassie 对 cassandra 2.0.1 和 scala 2.10.2 的依赖
【发布时间】:2013-11-01 04:52:35
【问题描述】:

我想使用 cassie 客户端来使用 cassandra 2.0.1 和 scala 2.10.2 。所以我想知道我必须在 sbt 中添加哪个依赖项才能使用它。

"com.twitter" % "cassie" % "0.19.0"

这是未解决的依赖关系。告诉我正确的版本。

【问题讨论】:

  • 只是一个简单的问题。您是否致力于使用 Cassie?已经快一年没碰过了。还有其他选择。 github.com/twitter/cassie
  • 你能建议我在 scala 中使用哪个客户端,因为 datastax 的速度非常慢而且我认为它不可靠。如果我使用 hector,它会给我带来一些麻烦,因为它是基于 java 构建的.
  • 哈哈哦哦。这就是我要提到的两个选项。我很惊讶您看到 Datastax 的速度很慢。而且 Datastax 和 Hector 都是用 Java 编写的,所以在 Scala 中应该没有问题。
  • 好的。我们可以将 cassandra 的所有功能与 datastax 一起使用吗
  • 我不知道它不能做什么。自己检查:datastax.com/documentation/developer/java-driver/1.0/webhelp/…

标签: scala cassandra sbt


【解决方案1】:

获取客户端的方法是not complete documented

将此添加到您的 build.sbt:

resolvers += "Twitter's Repository" at "http://maven.twttr.com/"

libraryDependencies += "com.twitter" % "cassie" % "0.19.0" excludeAll(
        ExclusionRule(organization = "com.sun.jdmk"),
        ExclusionRule(organization = "com.sun.jmx"),
        ExclusionRule(organization = "javax.jms")
    )

已经有一个pull request 来解决这个问题。

【讨论】:

    【解决方案2】:

    对于任何绊脚石的人来说,twitter 客户端已经过时并且在最近的 scala 版本中构建很痛苦,此外,较新的 cassandra 客户端使用 CQL 并且不推荐使用 thrift。所以我建议使用 java datastaxx 驱动程序一帆风顺,忘记 cassie。

    【讨论】:

      猜你喜欢
      • 2012-05-01
      • 2013-10-03
      • 1970-01-01
      • 2014-02-15
      • 2019-03-12
      • 2021-07-03
      • 1970-01-01
      • 1970-01-01
      • 2011-11-26
      相关资源
      最近更新 更多