1

我已经在我的 Ubuntu VM 上安装了 Cassandra 并构建了源代码。我试图使用 Thrift API,似乎我的 bin 中的 libthrift-0.5.jar 不是我需要用来与正在运行的 cassandra 实例交互的文件。

还有其他安装 Thrift JAR 的方法吗?我找到了

/cassandra/界面/节俭

具有与 Cassandra 接口相关的 Thrift 源的文件夹。当我尝试ant gen-thrift-java从命令行执行时,构建失败并显示以下消息:

执行失败:java.io.IOException:无法运行程序“thrift”(在目录“/home/user/cassandra/interface”中):java.io.IOException:错误=2,没有这样的文件或目录

有人可以给我一些关于我需要做什么才能在这里与 Thrift 合作的想法吗?

谢谢

4

1 回答 1

3

您需要安装Thrift

$ cd thrift
$ ./bootstrap.sh
$ ./configure
$ make
$ sudo make install
于 2011-01-17T22:22:19.843 回答