关于Java Cassandra客户端,哪一个更好? CQL如何? [英] About Java Cassandra Client, which one is better? How about CQL?

查看:113
本文介绍了关于Java Cassandra客户端,哪一个更好? CQL如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用Hive作为数据库开发应用程序,然后我也找到了noSQL解决方案作为替代。

I am trying to develop application using Hive as the Database, and then I also find noSQL solutions as an alternative to it.

现在决定开发使用Cassandra,我的下一个问题是什么客户端应该使用?一个更好,Hector - 一个纯java解决方案,还是Kundera和JPA一样的开发?

Now decided to develop using Cassandra, my next problem is about what client should I use? which one is better, Hector -- a pure java solutions, or Kundera with JPA like development?

我喜欢Hector,但我对Kundera很好奇。有没有人使用Kundera?这更好吗?

I prefer Hector, but I am curious about Kundera. Is there anyone using Kundera? which is better?

我很好奇CQL(Cassandra查询语言)。可以与Hector集成吗?

I'm curious about CQL (Cassandra Query Language). Can it integrate with Hector?

感谢您的关注。

推荐答案

Hector正在慢慢向CQL集成迈进。第一步已经做了,但是由于一个不稳定的API的经验,开发人员似乎推迟了一个新的版本。 CQL API是相当新的,因为它应该几乎等同于SQL语法。我使用CRUD操作进行了一些基本步骤,以验证可以通过CQL写入和读取数据。

Hector is slowly moving towards CQL integration. The first steps have been made, but because of the experience of an unstable API, the developers seem to have postponed a new release. The CQL API is rather new, as it should be nearly equivalent to a SQL syntax. I made some basic steps with CRUD operations to verify that data could be written and read via CQL.

然而,CQL JAR不像现在的标准JDBC驱动程序那样可用,并且缺少一些重要的功能方面。看一看或多或少难以理解的thrift API和没有真正简单的hector API,我相信CQL将成为Cassandra的最先进的访问API的版本0.8.1和1.0 ,其中thrift将保持原生访问一段时间。

Nevertheless, the CQL JAR is not usable out of the box like a standard JDBC driver as of now, and misses some important feature aspects. Having a look at the more or less difficult to understand thrift API and the not really much simpler hector API, I am convinced that CQL will be established as the state-of-the-art access API for Cassandra in version 0.8.1 and 1.0, where thrift will remain the native, raw access for some time.

两个API之间的竞争与Hector的决定无关。 Hector本身提供了额外的服务,如集群中的故障和连接处理。这些是既不是节俭也不是CQL处理的特征。

The competition between both APIs has nothing to do with the decision of Hector. Hector itself provides additional services like failure and connection handling in the cluster. These are features being addressed by neither thrift nor CQL.

我真的不相信所有其他O / R映射器,甚至声称提供一个完整的JPA。我不能想象这应该如何工作。

I don't really believe in all other O/R mappers, or even those claiming to provide a full-fledged JPA. I cannot imagine how this should work.

这篇关于关于Java Cassandra客户端,哪一个更好? CQL如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆