Browse Source

fix(kerboros): set correct classloader for kerboros conf load in plugin tasks (#7027) (#7064)

Co-authored-by: xudong.zhang <xudong.zhang@nio.com>

Co-authored-by: sparklezzz <zhang.xd927@gmail.com>
Co-authored-by: xudong.zhang <xudong.zhang@nio.com>
2.0.7-release
Kirs 3 years ago committed by GitHub
parent
commit
77f4b0aaf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/utils/CommonUtils.java

4
dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/utils/CommonUtils.java

@ -79,7 +79,9 @@ public class CommonUtils {
* @throws IOException errors
*/
public static void loadKerberosConf(String javaSecurityKrb5Conf, String loginUserKeytabUsername, String loginUserKeytabPath) throws IOException {
loadKerberosConf(javaSecurityKrb5Conf, loginUserKeytabUsername, loginUserKeytabPath, new Configuration());
Configuration configuration = new Configuration();
configuration.setClassLoader(configuration.getClass().getClassLoader());
loadKerberosConf(javaSecurityKrb5Conf, loginUserKeytabUsername, loginUserKeytabPath, configuration);
}
/**

Loading…
Cancel
Save