public class HiveMetaStoreChecker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
HiveMetaStoreChecker(Hive hive) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkMetastore(java.lang.String dbName,
java.lang.String tableName,
java.util.List<? extends java.util.Map<java.lang.String,java.lang.String>> partitions,
CheckResult result)
Check the metastore for inconsistencies, data missing in either the
metastore or on the dfs.
|
public HiveMetaStoreChecker(Hive hive)
public void checkMetastore(java.lang.String dbName,
java.lang.String tableName,
java.util.List<? extends java.util.Map<java.lang.String,java.lang.String>> partitions,
CheckResult result)
throws HiveException,
java.io.IOException
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.partitions - List of partition name value pairs, if null or empty check all
partitionsresult - Fill this with the results of the checkHiveException - Failed to get required information from the metastore.java.io.IOException - Most likely filesystem relatedCopyright © 2012 The Apache Software Foundation