Skip to content

Commit

Permalink
Simplify code by directly calling reloginFromKeytab() and removing un…
Browse files Browse the repository at this point in the history
…necessary isFromKeytab() check
  • Loading branch information
Anthony Hsu committed Jul 25, 2016
1 parent 5093729 commit ded9dcb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ public boolean isHadoopSecurityEnabled()
}

public void reloginFromKeytab() throws IOException {
UserGroupInformation ugi = UserGroupInformation.getLoginUser();
if (ugi.isFromKeytab()) {
ugi.checkTGTAndReloginFromKeytab();
}
UserGroupInformation.getLoginUser().reloginFromKeytab();
}

/**
Expand Down

0 comments on commit ded9dcb

Please sign in to comment.