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

Issue in connecting Apache Drill using JDBC - Invalid RPC exception

本文关键字:问题 -RPC 异常 无效 JDBC 连接 Apache Drill 使用      更新时间:2023-09-26

我们在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 

此错误是因为jdbc版本不匹配。我们一直在进行正确的战争,这场战争奏效了。