【问题标题】:Hector: How to specify CQL version?Hector:如何指定 CQL 版本?
【发布时间】:2012-09-21 11:46:36
【问题描述】:

在将 Hector 与 Cassandra 1.1.5(特别是 CQL 3.0)一起使用时,我想指定 CQL 版本。

我该怎么做?

问题的答案 How to use CQL 3.0 with JDBC drivers or Hector 没用。

【问题讨论】:

  • 为什么要指定CQL版本? CQL 和 Hector 是两个不同的 API。
  • CQL 3.0 还没有准备好,我想在其中使用一些增强功能..
  • 啊……你想使用最新的 Hector 的后级 CQL。

标签: hector


【解决方案1】:

对于cassandra-jdbc,可以在创建数据源对象时指定。

CassandraDataSource cds = new CassandraDataSource(host, port, keyspace, user, password, "3.0.0")

【讨论】:

    猜你喜欢
    • 2011-10-01
    • 2018-09-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多