Skip to content

Commit 8cd5b36

Browse files
committed
rollback to initial commit
1 parent 3f5a258 commit 8cd5b36

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,13 @@
7272
import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars;
7373
import org.apache.hadoop.hive.metastore.hooks.URIResolverHook;
7474
import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy;
75-
import org.apache.hadoop.hive.metastore.security.DelegationTokenIdentifier;
7675
import org.apache.hadoop.hive.metastore.security.HadoopThriftAuthBridge;
7776
import org.apache.hadoop.hive.metastore.txn.TxnCommonUtils;
7877
import org.apache.hadoop.hive.metastore.utils.FilterUtils;
7978
import org.apache.hadoop.hive.metastore.utils.JavaUtils;
8079
import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils;
8180
import org.apache.hadoop.hive.metastore.utils.SecurityUtils;
8281
import org.apache.hadoop.security.UserGroupInformation;
83-
import org.apache.hadoop.security.token.Token;
84-
import org.apache.hadoop.security.token.TokenIdentifier;
8582
import org.apache.hadoop.util.ReflectionUtils;
8683
import org.apache.hadoop.util.StringUtils;
8784
import org.apache.http.HttpException;
@@ -511,22 +508,7 @@ public void reconnect() throws MetaException {
511508
promoteRandomMetaStoreURI();
512509
}
513510

514-
String tokenSig = MetastoreConf.getVar(conf, ConfVars.TOKEN_SIGNATURE);
515-
try {
516-
tokenStrForm = SecurityUtils.getTokenStrForm(tokenSig);
517-
if (tokenStrForm != null) {
518-
renewDelegationToken(tokenStrForm);
519-
} else {
520-
generateProxyUserDelegationToken();
521-
}
522-
} catch (Exception e) {
523-
LOG.error("Error while setting delegation token while reconnecting.", e);
524-
if (e instanceof MetaException) {
525-
throw (MetaException) e;
526-
} else {
527-
throw new MetaException(e.getMessage());
528-
}
529-
}
511+
generateProxyUserDelegationToken();
530512

531513
open();
532514
}

0 commit comments

Comments
 (0)