开发者

Problem using the Thrift APIs

I have installed Cassandra on my Ubuntu VM and built the source. I was trying to use the Thrift APIs and it seems like the libthrift-0.5.jar in my bin is not the file that I need in order to interface with the running cassandra instance.

Is there some other way to install the Thrift JARs? I found the

/cassandra/interface/thrift

folder that has the Thrift source pertaining to the interface with Cassandra. When I tried doing an ant gen-thrift-java from the command line, I get a build failed with the following message:

Execute failed: java.io.IOException: Cannot run program "thrift" (in directory "/home/user/cassandra/interface"): java.io.IOException: error=2, No such file or directory

Can somebody give me some ideas on what do I need to do in order to work with Thrift here?

开发者_运维百科

Thanks


You need to install Thrift

$ cd thrift
$ ./bootstrap.sh
$ ./configure
$ make
$ sudo make install
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜