Skip to content

Commit

Permalink
[Coral-Service] Replace create HiveMetaStoreClient to RetryingMetaSto…
Browse files Browse the repository at this point in the history
…reClient (#480)
  • Loading branch information
KANLON authored Apr 7, 2024
1 parent c0c151a commit 3ffebec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import com.google.common.base.Strings;

import org.apache.hadoop.hive.conf.HiveConf;
import org.apache.hadoop.hive.metastore.HiveMetaStoreClient;
import org.apache.hadoop.hive.metastore.IMetaStoreClient;
import org.apache.hadoop.hive.metastore.RetryingMetaStoreClient;
import org.apache.hadoop.hive.metastore.api.MetaException;
import org.apache.hadoop.security.UserGroupInformation;

Expand Down Expand Up @@ -97,6 +97,6 @@ private static IMetaStoreClient getRemoteMetastoreClient(Properties props)
UserGroupInformation.setConfiguration(conf);
UserGroupInformation.loginUserFromKeytab(clientPrincipal, clientKeytab);
}
return new HiveMetaStoreClient(conf);
return RetryingMetaStoreClient.getProxy(conf);
}
}

0 comments on commit 3ffebec

Please sign in to comment.