本文介绍了在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:
但是当我在测试演示中获得与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时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!