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.