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.Exception
public static void tearDownAfterClass() throws java.lang.Exception
java.lang.Exception
protected static void startHiveServer2WithConf(HiveConf hiveConf) throws java.lang.Exception
java.lang.Exception
protected static void stopHiveServer2() throws java.lang.Exception
java.lang.Exception
protected static org.apache.thrift.transport.TTransport createBinaryTransport() throws java.lang.Exception
java.lang.Exception
protected static void initClient(org.apache.thrift.transport.TTransport transport)
public void testOpenSession() throws java.lang.Exception
java.lang.Exception
public void testGetFunctions() throws java.lang.Exception
java.lang.Exception
public void testExecuteStatement() throws java.lang.Exception
java.lang.Exception
protected 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.IOException
javax.security.auth.login.LoginException
HiveSQLException
public void setUp() throws java.lang.Exception
java.lang.Exception
public void tearDown() throws java.lang.Exception
java.lang.Exception
Copyright © 2012 The Apache Software Foundation