public class HiveMetaStoreChecker extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.fs.PathFilter |
HIDDEN_FILES_PATH_FILTER |
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
HiveMetaStoreChecker(IMetaStoreClient msc,
org.apache.hadoop.conf.Configuration conf) |
HiveMetaStoreChecker(IMetaStoreClient msc,
org.apache.hadoop.conf.Configuration conf,
long partitionExpirySeconds) |
| Modifier and Type | Method and Description |
|---|---|
CheckResult |
checkMetastore(String catName,
String dbName,
String tableName,
byte[] filterExp,
Table table)
Check the metastore for inconsistencies, data missing in either the
metastore or on the dfs.
|
IMetaStoreClient |
getMsc() |
public static final org.slf4j.Logger LOG
public static final org.apache.hadoop.fs.PathFilter HIDDEN_FILES_PATH_FILTER
public HiveMetaStoreChecker(IMetaStoreClient msc, org.apache.hadoop.conf.Configuration conf)
public HiveMetaStoreChecker(IMetaStoreClient msc, org.apache.hadoop.conf.Configuration conf, long partitionExpirySeconds)
public IMetaStoreClient getMsc()
public CheckResult checkMetastore(String catName, String dbName, String tableName, byte[] filterExp, Table table) throws MetastoreException, IOException
catName - name of the catalog, if not specified default catalog will be used.dbName - name of the database, if not specified the default will be used.tableName - Table we want to run the check for. If null we'll check all the
tables in the database.filterExp - Filter expression which is used to prune th partition from the
metastore and FileSystem.table - MetastoreException - Failed to get required information from the metastore.IOException - Most likely filesystem relatedCopyright © 2024 The Apache Software Foundation. All rights reserved.