apache / apache/kyuubi

[Bug] beeline Connection failed

Open
#2,362 3 comments 0 reactions 0 assignees View on GitHub
kind:bug priority:major
Dominant language
Scala
Stars
2.4k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

### Search before asking

- [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues.

### Describe the bug

![image](https://user-images.githubusercontent.com/39329477/163328152-6117dc29-9fb2-4354-afa7-a3aaae9a4c68.png)

### Affects Version(s)

1.5.0

### Kyuubi Server Log Output

_No response_

### Kyuubi Engine Log Output

```logtalk
14:33:25.386 INFO org.apache.kyuubi.engine.ProcBuilder: Logging to /home/maolin/apache-kyuubi-1.5.0-incubating-bin/work/root/kyuubi-spark-sql-engine.log.26
14:33:25.426 ERROR org.apache.kyuubi.server.KyuubiTBinaryFrontendService: Error getting type info:
org.apache.kyuubi.KyuubiSQLException: Unrecognized GetInfoType value: CLI_ODBC_KEYWORDS
at org.apache.kyuubi.KyuubiSQLException$.apply(KyuubiSQLException.scala:69) ~[kyuubi-common_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.session.AbstractSession.$anonfun$getInfo$1(AbstractSession.scala:111) ~[kyuubi-common_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.session.AbstractSession.withAcquireRelease(AbstractSession.scala:75) ~[kyuubi-common_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.session.AbstractSession.getInfo(AbstractSession.scala:104) ~[kyuubi-common_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.service.AbstractBackendService.getInfo(AbstractBackendService.scala:53) ~[kyuubi-common_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.server.KyuubiServer$$anon$1.org$apache$kyuubi$server$BackendServiceMetric$$super$getInfo(KyuubiServer.scala:142) ~[kyuubi-server_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.server.BackendServiceMetric.$anonfun$getInfo$1(BackendServiceMetric.scala:51) ~[kyuubi-server_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.metrics.MetricsSystem$.timerTracing(MetricsSystem.scala:111) ~[kyuubi-metrics_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.server.BackendServiceMetric.getInfo(BackendServiceMetric.scala:51) ~[kyuubi-server_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.server.BackendServiceMetric.getInfo$(BackendServiceMetric.scala:47) ~[kyuubi-server_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.server.KyuubiServer$$anon$1.getInfo(KyuubiServer.scala:142) ~[kyuubi-server_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.kyuubi.service.TFrontendService.GetInfo(TFrontendService.scala:206) ~[kyuubi-common_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.hive.service.rpc.thrift.TCLIService$Processor$GetInfo.getResult(TCLIService.java:1537) ~[hive-service-rpc-3.1.2.jar:3.1.2]
at org.apache.hive.service.rpc.thrift.TCLIService$Processor$GetInfo.getResult(TCLIService.java:1522) ~[hive-service-rpc-3.1.2.jar:3.1.2]
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) ~[libthrift-0.9.3.jar:0.9.3]
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) ~[libthrift-0.9.3.jar:0.9.3]
at org.apache.kyuubi.service.authentication.TSetIpAddressProcessor.process(TSetIpAddressProcessor.scala:36) ~[kyuubi-common_2.12-1.5.0-incubating.jar:1.5.0-incubating]
at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) ~[libthrift-0.9.3.jar:0.9.3]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_321]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_321]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_321]
```

### Kyuubi Server Configurations

_No response_

### Kyuubi Engine Configurations

_No response_

### Additional context

_No response_

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start with AbstractSession.scala around getInfo and trace the request through KyuubiTBinaryFrontendService, AbstractBackendService.getInfo, and TFrontendService.scala. Reproduce the beeline connection failure on Kyuubi 1.5.0 using the reported CLI_ODBC_KEYWORDS error as the baseline. Done means the get-info request no longer fails and the beeline connection succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.