public class StaticHiveCluster extends Object implements HiveCluster
| Constructor and Description |
|---|
StaticHiveCluster(List<URI> metastoreUris,
HiveMetastoreClientFactory clientFactory) |
StaticHiveCluster(StaticMetastoreConfig config,
HiveMetastoreClientFactory clientFactory) |
| Modifier and Type | Method and Description |
|---|---|
HiveMetastoreClient |
createMetastoreClient()
Create a metastore client connected to the Hive metastore.
|
@Inject public StaticHiveCluster(StaticMetastoreConfig config, HiveMetastoreClientFactory clientFactory)
public StaticHiveCluster(List<URI> metastoreUris, HiveMetastoreClientFactory clientFactory)
public HiveMetastoreClient createMetastoreClient()
As per Hive HA metastore behavior, return the first metastore in the list list of available metastores (i.e. the default metastore) if a connection can be made, else try another of the metastores at random, until either a connection succeeds or there are no more fallback metastores.
createMetastoreClient in interface HiveClusterCopyright © 2012-2017. All Rights Reserved.