public abstract class ThriftCLIServiceTest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
anonymousPasswd |
protected static java.lang.String |
anonymousUser |
protected static TCLIService.Client |
client |
protected static HiveConf |
hiveConf |
protected static HiveServer2 |
hiveServer2 |
protected static java.lang.String |
host |
protected static int |
port |
| Constructor and Description |
|---|
ThriftCLIServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.thrift.transport.TTransport |
createBinaryTransport() |
protected static void |
initClient(org.apache.thrift.transport.TTransport transport) |
void |
setUp() |
static void |
setUpBeforeClass() |
protected static void |
startHiveServer2WithConf(HiveConf hiveConf) |
protected static void |
stopHiveServer2() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testDoAs()
Test setting
HiveConf.ConfVars} config parameter
HIVE_SERVER2_ENABLE_DOAS for kerberos secure mode |
void |
testExecuteStatement() |
void |
testGetFunctions() |
void |
testOpenSession() |
protected void |
testOpenSessionExpectedException() |
protected static int port
protected static java.lang.String host
protected static HiveServer2 hiveServer2
protected static TCLIService.Client client
protected static HiveConf hiveConf
protected static java.lang.String anonymousUser
protected static java.lang.String anonymousPasswd
public static void setUpBeforeClass()
throws java.lang.Exception
java.lang.Exceptionpublic static void tearDownAfterClass()
throws java.lang.Exception
java.lang.Exceptionprotected static void startHiveServer2WithConf(HiveConf hiveConf) throws java.lang.Exception
java.lang.Exceptionprotected static void stopHiveServer2()
throws java.lang.Exception
java.lang.Exceptionprotected static org.apache.thrift.transport.TTransport createBinaryTransport()
throws java.lang.Exception
java.lang.Exceptionprotected static void initClient(org.apache.thrift.transport.TTransport transport)
public void testOpenSession()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetFunctions()
throws java.lang.Exception
java.lang.Exceptionpublic void testExecuteStatement()
throws java.lang.Exception
java.lang.Exceptionprotected void testOpenSessionExpectedException()
public void testDoAs()
throws HiveSQLException,
javax.security.auth.login.LoginException,
java.io.IOException
HiveConf.ConfVars} config parameter
HIVE_SERVER2_ENABLE_DOAS for kerberos secure modejava.io.IOExceptionjavax.security.auth.login.LoginExceptionHiveSQLExceptionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2012 The Apache Software Foundation