use of org.apache.hadoop.hive.conf.HiveConf in project hive by apache.
the class TestMergeStatement method initialize.
@BeforeClass
public static void initialize() {
conf = new HiveConf(SemanticAnalyzer.class);
SessionState.start(conf);
}
use of org.apache.hadoop.hive.conf.HiveConf in project hive by apache.
the class TestQBJoinTreeApplyPredicate method initialize.
@BeforeClass
public static void initialize() {
queryState = new QueryState(new HiveConf(SemanticAnalyzer.class));
conf = queryState.getConf();
SessionState.start(conf);
}
use of org.apache.hadoop.hive.conf.HiveConf in project hive by apache.
the class TestQBSubQuery method initialize.
@BeforeClass
public static void initialize() {
queryState = new QueryState(new HiveConf(SemanticAnalyzer.class));
conf = queryState.getConf();
SessionState.start(conf);
}
use of org.apache.hadoop.hive.conf.HiveConf in project hive by apache.
the class TestReplicationSemanticAnalyzer method initialize.
@BeforeClass
public static void initialize() throws HiveException {
queryState = new QueryState(new HiveConf(SemanticAnalyzer.class));
conf = queryState.getConf();
conf.set("hive.security.authorization.manager", "");
SessionState.start(conf);
Hive hiveDb = Hive.get(conf);
hiveDb.createTable(defaultDB + "." + tblName, cols, null, OrcInputFormat.class, OrcOutputFormat.class);
Table t = hiveDb.getTable(tblName);
}
use of org.apache.hadoop.hive.conf.HiveConf in project hive by apache.
the class HiveServer2 method start.
@Override
public synchronized void start() {
super.start();
// If we're supporting dynamic service discovery, we'll add the service uri for this
// HiveServer2 instance to Zookeeper as a znode.
HiveConf hiveConf = this.getHiveConf();
if (hiveConf.getBoolVar(ConfVars.HIVE_SERVER2_SUPPORT_DYNAMIC_SERVICE_DISCOVERY)) {
try {
addServerInstanceToZooKeeper(hiveConf);
} catch (Exception e) {
LOG.error("Error adding this HiveServer2 instance to ZooKeeper: ", e);
throw new ServiceException(e);
}
}
if (webServer != null) {
try {
webServer.start();
LOG.info("Web UI has started on port " + webServer.getPort());
} catch (Exception e) {
LOG.error("Error starting Web UI: ", e);
throw new ServiceException(e);
}
}
}
Aggregations