org.apache.thrift:方法名称无效:'authenticate'

时间:2013-09-01 19:45:03

标签: java apache hadoop accumulo

我正在运行一些显示此错误的用户手册中的基本Accumulo代码。

简单的谷歌搜索没有提供任何有用的东西。

错误

org.apache.accumulo.core.client.AccumuloException: org.apache.thrift.TApplicationException: Invalid method name: 'authenticate'
    at org.apache.accumulo.core.client.impl.ServerClient.execute(ServerClient.java:77)
    at org.apache.accumulo.core.client.impl.ConnectorImpl.<init>(ConnectorImpl.java:67)
    at org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:215)
    at org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:221)
    at AccumuloTest.main(AccumuloTest.java:21)

代码日志

13/09/01 15:21:38 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.1.2 sessionTimeout=30000 watcher=org.apache.accumulo.fate.zookeeper.ZooSession$ZooWatcher@76caf6c1
13/09/01 15:21:38 INFO zookeeper.ClientCnxn: Opening socket connection to server ubuntu.home/192.168.1.2:2181. Will not attempt to authenticate using SASL (Unable to locate a login configuration)
13/09/01 15:21:38 INFO zookeeper.ClientCnxn: Socket connection established to ubuntu.home/192.168.1.2:2181, initiating session
13/09/01 15:21:38 INFO zookeeper.ClientCnxn: Session establishment complete on server ubuntu.home/192.168.1.2:2181, sessionid = 0x140dae2a7000128, negotiated timeout = 30000

我可以在accumulo框中进行SSH会话,然后运行sudo ./accumulo shell -u -p并进入shell实例。我不能使用相同的用户名和密码通过代码验证到accumulo实例。我在这里找不到什么东西吗?

1 个答案:

答案 0 :(得分:1)

我今天遇到了这个。事实证明我正在与Accumulo 1.5罐连接到Accumulo 1.4实例。更新我的客户端jar以匹配服务器版本后,我能够解决这个问题。