public abstract class TestHiveMetaStore
extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
protected static HiveMetaStoreClient |
client |
protected static HiveConf |
hiveConf |
protected static boolean |
isThriftClient |
protected static Warehouse |
warehouse |
| Constructor and Description |
|---|
TestHiveMetaStore() |
| Modifier and Type | Method and Description |
|---|---|
static void |
partitionTester(HiveMetaStoreClient client,
HiveConf hiveConf) |
protected void |
setUp() |
void |
testAlterPartition() |
void |
testAlterTable() |
void |
testAlterViewParititon() |
void |
testColumnStatistics() |
void |
testComplexTable() |
void |
testComplexTypeApi() |
void |
testConcurrentMetastores()
Verify that if another client, either a metastore Thrift server or a Hive CLI instance
renames a table recently created by this instance, and hence potentially in its cache, the
current instance still sees the change.
|
void |
testDatabase() |
void |
testDatabaseLocation() |
void |
testDatabaseLocationWithPermissionProblems() |
void |
testDropTable() |
void |
testFilterLastPartition()
Test filtering based on the value of the last partition
|
void |
testFilterSinglePartition()
Test filtering on table with single partition
|
void |
testGetConfigValue() |
void |
testListPartitionNames() |
void |
testListPartitions() |
void |
testNameMethods() |
void |
testPartition()
tests create table and partition and tries to drop the table without
droppping the partition
|
void |
testPartitionFilter()
Tests for list partition by filter functionality.
|
void |
testRenamePartition() |
void |
testSimpleTable() |
void |
testSimpleTypeApi() |
void |
testSynchronized()
|
void |
testTableDatabase() |
void |
testTableFilter() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toStringprotected static HiveMetaStoreClient client
protected static HiveConf hiveConf
protected static Warehouse warehouse
protected static boolean isThriftClient
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void testNameMethods()
public void testPartition()
throws java.lang.Exception
java.lang.Exceptionpublic static void partitionTester(HiveMetaStoreClient client, HiveConf hiveConf) throws java.lang.Exception
java.lang.Exceptionpublic void testListPartitions()
throws java.lang.Throwable
java.lang.Throwablepublic void testListPartitionNames()
throws java.lang.Throwable
java.lang.Throwablepublic void testDropTable()
throws java.lang.Throwable
java.lang.Throwablepublic void testAlterViewParititon()
throws java.lang.Throwable
java.lang.Throwablepublic void testAlterPartition()
throws java.lang.Throwable
java.lang.Throwablepublic void testRenamePartition()
throws java.lang.Throwable
java.lang.Throwablepublic void testDatabase()
throws java.lang.Throwable
java.lang.Throwablepublic void testDatabaseLocationWithPermissionProblems()
throws java.lang.Exception
java.lang.Exceptionpublic void testDatabaseLocation()
throws java.lang.Throwable
java.lang.Throwablepublic void testSimpleTypeApi()
throws java.lang.Exception
java.lang.Exceptionpublic void testComplexTypeApi()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleTable()
throws java.lang.Exception
java.lang.Exceptionpublic void testColumnStatistics()
throws java.lang.Throwable
java.lang.Throwablepublic void testAlterTable()
throws java.lang.Exception
java.lang.Exceptionpublic void testComplexTable()
throws java.lang.Exception
java.lang.Exceptionpublic void testTableDatabase()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetConfigValue()
public void testPartitionFilter()
throws java.lang.Exception
java.lang.Exceptionpublic void testFilterSinglePartition()
throws java.lang.Exception
java.lang.Exceptionpublic void testFilterLastPartition()
throws java.lang.Exception
java.lang.Exceptionpublic void testSynchronized()
throws java.lang.Exception
HiveMetaStoreClient.newSynchronizedClient(org.apache.hadoop.hive.metastore.IMetaStoreClient). Does not
actually test multithreading, but does verify that the proxy
at least works correctly.java.lang.Exceptionpublic void testTableFilter()
throws java.lang.Exception
java.lang.Exceptionpublic void testConcurrentMetastores()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2012 The Apache Software Foundation