下面是一般的 impala JDBC 连接字符串
jdbc:impala://{host}:{port}/{database};AuthMech=3;SSL=0
impala 默认的连接端口: port:21000, for impala-shell and ODBC driver 1.2. port:21050, for JDBC and for ODBC driver 2.
java 程序的连接字符串示例 jdbc:impala://node1.example.com:21050/database;AuthMech=3;UID=cloudera;PWD=cloudera;
参数说明:
AuthMech 参数 Set the value to one of the following numbers:
0 for No Authentication 1 for Kerberos 2 for User Name 3 for User Name and Password SSL 参数
0, not connect to SSL-enabled sockets. 1, through an SSL-enabled socket.