Skip to content

Commit

Permalink
Revert "security manager's fetched hive token should have a default s…
Browse files Browse the repository at this point in the history
…ervice field (#234)"

This reverts commit 4a500e9.
  • Loading branch information
Fangshi Li committed Sep 2, 2016
1 parent 4a500e9 commit 92cc2fe
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,8 @@ public synchronized void prefetchToken(final File tokenFile,
logger.info("Pre-fetching default Hive MetaStore token from hive");

HiveConf hiveConf = new HiveConf();
String metastoreUri = hiveConf.get(HiveConf.ConfVars.METASTOREURIS.varname);
Token<DelegationTokenIdentifier> hcatToken =
fetchHcatToken(userToProxy, hiveConf, metastoreUri, logger);
fetchHcatToken(userToProxy, hiveConf, null, logger);

cred.addToken(hcatToken.getService(), hcatToken);

Expand Down

0 comments on commit 92cc2fe

Please sign in to comment.