本文介绍了在 kerberos 身份验证下使用 JDBC 连接到 impala 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个扩展 DriverManagerDataSource 的类 SecureImpalaDataSource,并使用 UserGroupInformation.doAs() 使用 keytab 文件获取到 impala 的连接.但我得到如下错误:

I create a class SecureImpalaDataSource that extends DriverManagerDataSource, and use UserGroupInformation.doAs() to get a Connection to impala with keytab file. But I get the error as follow:

java.sql.SQLException: [Simba]ImpalaJDBCDriver 错误为身份验证初始化或创建传输:[Simba]ImpalaJDBCDriver 无法连接到服务器:null.

但是当我在测试演示中获得与 kerberos 票证缓存的连接时,我成功了.任何人都可以帮助我吗?

But I am successful when I get the connection with kerberos ticket cache in a test demo. Anyone can help me?

推荐答案

结果是我的URL中的HOST和FQDN不一致.

The result is that the HOST and the FQDN in my URL are inconsistent.

这篇关于在 kerberos 身份验证下使用 JDBC 连接到 impala 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-16 21:04