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

50pmv0ei  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(497)

我正在运行用户手册中的一些基本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

我可以在acumulo框中执行ssh会话,然后运行sudo./acumuloshell-u-p并进入shell示例。我不能使用相同的用户名和密码通过代码对accumulo示例进行身份验证。这里有什么我不知道的吗?

qnzebej0

qnzebej01#

我今天碰到这个。原来我是在用Accumulo1.5jars连接Accumulo1.4示例。在更新我的客户机jar以匹配服务器版本之后,我能够克服这个问题。

相关问题