使用JDBC连接Apache Drill时出现问题 - 无效的RPC异常

时间:2015-06-23 07:07:17

标签: javascript jdbc apache-drill

我们在Apache Drill中有一些错误 - JDBC连接。我们最近已升级到Apache Drill 1.0,相同的应用程序一直有效,直到Drill 0.8。  我附上以下例外:

org.apache.drill.exec.rpc.RpcException: Failure connecting to server. Failure of type HANDSHAKE_VALIDATION.
            at org.apache.drill.exec.client.DrillClient$FutureHandler.connectionFailed(DrillClient.java:376)
            at org.apache.drill.exec.rpc.BasicClient$ConnectionMultiListener$HandshakeSendHandler.success(BasicClient.java:184)
            at org.apache.drill.exec.rpc.BasicClient$ConnectionMultiListener$HandshakeSendHandler.success(BasicClient.java:167)
            at org.apache.drill.exec.rpc.CoordinationQueue$RpcListener.set(CoordinationQueue.java:97)
            at org.apache.drill.exec.rpc

Caused by: org.apache.drill.exec.rpc.RpcException: Invalid rpc version.  Expected 5, actual 3.
        at org.apache.drill.exec.rpc.user.UserClient.validateHandshake(UserClient.java:105)
        at org.apache.drill.exec.rpc.user.UserClient.validateHandshake(UserClient.java:43)
        at org.apache.drill.exec.rpc.BasicClient$ConnectionMultiListener$HandshakeSendHandler.success(BasicClient.java:179)
        ... 25 more 

1 个答案:

答案 0 :(得分:1)

此错误是由于jdbc版本不匹配造成的。我们一直在进行正确的战争,但它确实奏效了。