Skip to content

Commit 5f8eb2b

Browse files
author
yanxi0227
committed
[kerberos][认证yarnclient]
1 parent 2e81be2 commit 5f8eb2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

launcher/src/main/java/com/dtstack/flink/sql/launcher/perjob/PerJobClusterClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private boolean openKerberos(Properties conf){
173173

174174
private void login(org.apache.hadoop.conf.Configuration conf, String keytab, String principal) throws IOException {
175175
UserGroupInformation.setConfiguration(conf);
176-
UserGroupInformation.loginUserFromKeytab(keytab, principal);
176+
UserGroupInformation.loginUserFromKeytab(principal, keytab);
177177
LOG.info("login successfully! keytab: " + keytab + "principal: " + principal);
178178
LOG.info("UGI: " + UserGroupInformation.getCurrentUser());
179179
}

0 commit comments

Comments
 (0)