我正在运行用户手册中出现此错误的一些基本 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 实例进行身份验证。我在这里缺少什么吗?