use of org.apache.hudi.hive.testutils.HiveTestService in project hudi by apache.
the class UtilitiesTestBase method initClass.
public static void initClass(boolean startHiveService) throws Exception {
hdfsTestService = new HdfsTestService();
zookeeperTestService = new ZookeeperTestService(hdfsTestService.getHadoopConf());
dfsCluster = hdfsTestService.start(true);
dfs = dfsCluster.getFileSystem();
dfsBasePath = dfs.getWorkingDirectory().toString();
dfs.mkdirs(new Path(dfsBasePath));
if (startHiveService) {
hiveTestService = new HiveTestService(hdfsTestService.getHadoopConf());
hiveServer = hiveTestService.start();
clearHiveDb();
}
zookeeperTestService.start();
}
use of org.apache.hudi.hive.testutils.HiveTestService in project hudi by apache.
the class HiveServiceProvider method startLocalHiveServiceIfNeeded.
public void startLocalHiveServiceIfNeeded(Configuration configuration) throws IOException {
if (config.isHiveLocal()) {
hiveService = new HiveTestService(configuration);
hiveServer = hiveService.start();
}
}
Aggregations