Impala JDBC Driver returns [Simba]ImpalaJDBCDriver Error setting/closing session: {0}

本文介绍了在使用Impala JDBC驱动时遇到的连接错误问题及其解决方案。主要原因是默认端口21050被防火墙阻止或其他网络配置问题导致。通过调整端口设置成功解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Impala JDBC Driver returns [Simba]ImpalaJDBCDriver Error setting/closing session: {0}

这个坑有点大,Junit下各种运行都是可以的,放上了tomcat就不行.
最终同事助攻了个传送门, 里面提到JDBC默认端口问题. 最终改了一下端口就愉快地解决了!

https://www.cloudera.com/documentation/enterprise/5-9-x/topics/impala_jdbc.html#jdbc_port

The default port used by JDBC 2.0 and later (as well as ODBC 2.x) is 21050. Impala server accepts JDBC connections through this same port 21050 by default. Make sure this port is available for communication with other hosts on your network, for example, that it is not blocked by firewall software. If your JDBC client software connects to a different port, specify that alternative port number with the –hs2_port option when starting impalad. See Starting Impala for details about Impala startup options. See Ports Used by Impala for information about all ports used for communication between Impala and clients or between Impala components.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

PatrickYung

你的打赏是我创作的最大动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值