1.环境
CDH 5.16.1
集群未集成Kerberos
2.下载Impala JDBC驱动
下载地址:https://downloads.cloudera.com/connectors/impala_jdbc_2.5.41.1061.zip
3.将压缩包下的ImpalaJDBC41.jar,TCLIServiceClient.jar拷贝到 /opt/cloudera/parcels/CDH/lib/hive/auxlib 目录下
注意:所有的Impala Daemon 都要拷贝驱动包
3.连接impala
beeline -d "com.cloudera.impala.jdbc41.Driver" -u "jdbc:impala://cdh02:21050"
注意:设置事务的隔离级别
beeline -d "com.cloudera.impala.jdbc41.Driver" -u "jdbc:impala://cdh02:21050" --isolation=default