|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|