Is there a Thrift or Cassandra client for Node.js/JavaScript

匿名 (未验证) 提交于 2019-12-03 02:18:01

问题:

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.

回答1:

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



回答2:

https://issues.apache.org/jira/browse/THRIFT-550

edit: take a look at https://github.com/wadey/node-thrift



回答3:

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



回答4:

The official Datastax driver is now node-cassandra-cql rebranded to nodejs-driver:

https://github.com/datastax/nodejs-driver

It uses CQL3.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!