运行cassandra Word计数示例时出错

时间:2011-10-27 19:10:19

标签: cassandra

我试着在eclipse上运行cassandra字数计算示例。我已经加载了所有必需的jar文件。但我仍然在fileCassandraDemonThread.java

中得到一些错误

TNonblockingServer.Args serverArgs = new TNonblockingServer.Args(serverTransport).inputTransportFactory(inTransportFactory)                                                                                                      .outputTransportFactory(outTransportFactory)                                                                                                      .inputProtocolFactory(tProtocolFactory)                                                                                                      .outputProtocolFactory(tProtocolFactory)                                                                                                      .processor(处理器); 它抛出编译错误:TNonblockingServer.Args无法解析为类型

有人可以告诉我是否遗漏了任何要链接的文件?

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

听起来你的运行时类路径上没有lib / * .jar,或者你不太可能在其他地方使用旧的Thrift jar而不是正确的。