public class HiveServerContainer extends Object
| Constructor and Description |
|---|
HiveServerContainer(HiveServerContext context) |
| Modifier and Type | Method and Description |
|---|---|
List<Object[]> |
executeStatement(Statement hiveql) |
List<Object[]> |
executeStatement(String hiveql) |
String |
expandVariableSubstitutes(String expression) |
Path |
getBaseDir() |
org.apache.hive.service.cli.CLIService |
getClient() |
org.apache.hadoop.hive.conf.HiveConf |
getHiveConf() |
org.apache.hadoop.hive.conf.VariableSubstitution |
getVariableSubstitution() |
void |
init(Map<String,String> testConfig,
Map<String,String> hiveVars)
Will start the HiveServer.
|
void |
tearDown()
Release all resources.
|
public HiveServerContainer(HiveServerContext context)
public org.apache.hive.service.cli.CLIService getClient()
public void init(Map<String,String> testConfig, Map<String,String> hiveVars)
testConfig - Specific test case properties. Will be merged with the HiveConf of the contexthiveVars - HiveVars to pass on to the HiveServer for this sessionpublic Path getBaseDir()
public void tearDown()
This call will never throw an exception as it makes no sense doing that in the tear down phase.
public org.apache.hadoop.hive.conf.HiveConf getHiveConf()
public org.apache.hadoop.hive.conf.VariableSubstitution getVariableSubstitution()
Copyright © 2013–2020. All rights reserved.