org.apache.hive.service.cli.thrift
Class ThriftCLIServiceTest
java.lang.Object
org.apache.hive.service.cli.thrift.ThriftCLIServiceTest
- Direct Known Subclasses:
- TestThriftBinaryCLIService, TestThriftHttpCLIService
public abstract class ThriftCLIServiceTest
- extends Object
ThriftCLIServiceTest.
This is the abstract class that tests ThriftCLIService.
Subclass this to test more specific behaviour.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
port
protected static int port
host
protected static String host
hiveServer2
protected static HiveServer2 hiveServer2
client
protected static TCLIService.Client client
hiveConf
protected static HiveConf hiveConf
anonymousUser
protected static String anonymousUser
anonymousPasswd
protected static String anonymousPasswd
ThriftCLIServiceTest
public ThriftCLIServiceTest()
setUpBeforeClass
public static void setUpBeforeClass()
throws Exception
- Throws:
Exception
tearDownAfterClass
public static void tearDownAfterClass()
throws Exception
- Throws:
Exception
startHiveServer2WithConf
protected static void startHiveServer2WithConf(HiveConf hiveConf)
throws Exception
- Throws:
Exception
stopHiveServer2
protected static void stopHiveServer2()
throws Exception
- Throws:
Exception
createBinaryTransport
protected static org.apache.thrift.transport.TTransport createBinaryTransport()
throws Exception
- Throws:
Exception
initClient
protected static void initClient(org.apache.thrift.transport.TTransport transport)
testOpenSession
public void testOpenSession()
throws Exception
- Throws:
Exception
testGetFunctions
public void testGetFunctions()
throws Exception
- Throws:
Exception
testExecuteStatement
public void testExecuteStatement()
throws Exception
- Throws:
Exception
testOpenSessionExpectedException
protected void testOpenSessionExpectedException()
testDoAs
public void testDoAs()
throws HiveSQLException,
LoginException,
IOException
- Test setting
HiveConf.ConfVars
} config parameter
HIVE_SERVER2_ENABLE_DOAS for kerberos secure mode
- Throws:
IOException
LoginException
HiveSQLException
setUp
public void setUp()
throws Exception
- Throws:
Exception
tearDown
public void tearDown()
throws Exception
- Throws:
Exception
Copyright © 2012 The Apache Software Foundation