Thrift JS compatibility with Cassandra (JSON Protocol)

北战南征 提交于 2019-12-08 02:43:25

问题


I have generated a Thrift lib for Cassandra targeting JavaScript from the latest Thrift build in SVN.

However, I noticed in the provided js thrift client library the following statement:

This client can only speak the JSON Protocol and the only supported transport is AJAX.

Does anyone know if the JSON protocol is compatible with Cassandra?

The transport is not an issue as I am planning on porting this to use a node.js socket, but I need to know if the JSON Protocol is going to allow me to connect with Cassandra.

The Thrift and Cassandra docs are both very light on this front.


回答1:


CassandraDaemon assumes BinaryProtocol.




回答2:


Cassandra node driver: http://code.google.com/a/apache-extras.org/p/cassandra-node/



来源:https://stackoverflow.com/questions/2955651/thrift-js-compatibility-with-cassandra-json-protocol

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