Merge pull request #10406 from dataease/pr@dev@fixExportdata

fix: hive Kerberos 认证失败
This commit is contained in:
taojinlong 2024-06-20 15:09:13 +08:00 committed by GitHub
commit f65ebb52ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -575,6 +575,7 @@ public class JdbcProvider extends DefaultJdbcProvider {
if (StringUtils.isNotEmpty(hiveConfiguration.getAuthMethod()) && hiveConfiguration.getAuthMethod().equalsIgnoreCase("kerberos")) {
System.setProperty("java.security.krb5.conf", "/opt/dataease/conf/krb5.conf");
System.setProperty("javax.security.auth.useSubjectCredsOnly", "false");
ExtendedJdbcClassLoader classLoader;
if (isDefaultClassLoader(customDriver)) {
classLoader = extendedJdbcClassLoader;