版本2.1.5 arrow-flight-sql jdbc连接问题

Viewed 190

我想问一下,按照官方文档来arrow-flight-sql,使用jdbc链接的时候一直连不上,端口是开启了的,输入错误密码也会报错,请问一下关于doris支持arrow-flight-sql有啥其他没有配好的吗?版本2.1.5
image.png

5 Answers
  1. 连接9030访问是否正常
  2. arrow jdbc的驱动是什么版本,建议用15.0.0之后的版本。

测试链接成功:
image.png
一进去就报拒绝连接:
Internal driver error
org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.flight.FlightRuntimeException: UNAVAILABLE: io exception
io exception
Connection refused: no further information: /0.0.0.0:9090
Connection refused: no further information: /0.0.0.0:9090
Connection refused: no further information
Connection refused: no further information

按照arrow搜索出来的结果:
image.png

  1. fe.conf中的 arrow_flight_sql_port 是9090么
  2. 换 root 账号试试,如果设置了ip鉴权可能有问题
  3. 用 python 或 java 在代码中可以正常连接访问么

fe/log/fe.log 中搜 "Arrow Flight SQL service is started",看是否有这样日志,没有的话搜 "Arrow" 看有啥日志