是否有适用于 Node.js/JavaScript 的 Thrift 或 Cassandra 客户端
我想开始在 Node.js 部署中使用 Cassandra,但我找不到适用于 Node.js 和/或 JavaScript 的 Thrift 或 Cassandra 客户端。
有吗?
有没有一种简单的方法来生成 Thrift 连接?
更新:这个问题的简短答案是否定的,Thrift 没有与 Cassandra 兼容的 JS 客户端。
进一步更新:Cassandra 的下一个版本(撰写本文时为 0.8)将支持 Avro API。已经有用于 Avro 支持的 Node.js 模块。
I would like to start using Cassandra with a node.js deployment, but I can't find a Thrift or Cassandra client for Node.js and/or JavaScript.
Is there one?
Is there a simple means of generating Thrift connections?
Update: The short answer to this question turns out to be no, there is no JS client for Thrift that is compatible with Cassandra.
Further Update: The next release of Cassandra (0.8 at time of writing) is going to have support for an Avro API. There is already node.js module for Avro support.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
现在有人做了一个:
https://github.com/wadey/node-thrift
更新 :
Rackspace 发布了 Node cassandra api:
http://code.google.com/a/apache- extras.org/p/cassandra-node/
更新:
他们将其移至 github:
https://github.com/racker/node-cassandra-client
更新:
现在也有一个 CQL 驱动程序:
https://github.com/simplereach/helenus
更新:
有一个 CQL 驱动程序,使用 Cassandra 本机协议
https://github.com/jorgebay/node-cassandra-cql
更新:
DataStax 使用本机协议为 Cassandra 发布了 CQL 驱动程序:
https://github.com/datastax/nodejs-driver
Someone made one now:
https://github.com/wadey/node-thrift
Update:
Rackspace released a node cassandra api:
http://code.google.com/a/apache-extras.org/p/cassandra-node/
Update:
They moved it to github:
https://github.com/racker/node-cassandra-client
Update:
There is a CQL driver now too:
https://github.com/simplereach/helenus
Update:
There is a CQL driver, that uses the Cassandra native protocol
https://github.com/jorgebay/node-cassandra-cql
Update:
DataStax released a CQL driver for Cassandra using the native protocol:
https://github.com/datastax/nodejs-driver
https://issues.apache.org/jira/browse/THRIFT-550
编辑:看看 https://github.com/wadey/node-thrift
https://issues.apache.org/jira/browse/THRIFT-550
edit: take a look at https://github.com/wadey/node-thrift
Zanson 已经提到 Rackspace 发布了 Node.js 的 Cassandra API,但值得注意的是,他们的 Google 代码页面并不是他们的主要操作基础。 github 页面是您可以了解最新信息的地方:
https://github.com/racker /节点卡桑德拉客户端
Zanson already mentioned that Rackspace released the Cassandra API for Node.js, but it's worth noting that their Google Code page isn't their primary base of operations. The github page is where you can stay the most up to date:
https://github.com/racker/node-cassandra-client
官方 Datastax 驱动程序现已从 node-cassandra-cql 更名为 nodejs-driver:
https://github.com/ datastax/nodejs-driver
它使用 CQL3。
The official Datastax driver is now node-cassandra-cql rebranded to nodejs-driver:
https://github.com/datastax/nodejs-driver
It uses CQL3.