@Override public Bootstrap start() { if (state == State.STOPPED) { state = State.STARTING; LOGGER.info("{} is starting", this.getClass().getName()); build(); try { hiveLocalMetaStore.start(); } catch (Exception e) { LOGGER.error("unable to add hivemetastore", e); } state = State.STARTED; LOGGER.info("{} is started", this.getClass().getName()); } return this; }
@Override public Bootstrap stop() { if (state == State.STARTED) { state = State.STOPPING; LOGGER.info("{} is stopping", this.getClass().getName()); try { hiveLocalMetaStore.stop(true); } catch (Exception e) { LOGGER.error("unable to stop hivemetastore", e); } cleanup(); state = State.STOPPED; LOGGER.info("{} is stopped", this.getClass().getName()); } return this; }
public HiveMetastoreBootstrap() { if (hiveLocalMetaStore == null) { try { configuration = HadoopUtils.INSTANCE.loadConfigFile(null); loadConfig(); } catch (BootstrapException e) { LOGGER.error("unable to load configuration", e); } } }
private void build() { hiveLocalMetaStore = new HiveLocalMetaStore.Builder() .setHiveMetastoreDerbyDbDir(derbyDirectory) .setHiveMetastoreHostname(host) .setHiveMetastorePort(port) .setHiveWarehouseDir(warehouseDirectory) .setHiveScratchDir(scratchDirectory) .setHiveConf(buildHiveConf()) .build(); }
private void build() { hiveLocalMetaStore = new HiveLocalMetaStore.Builder() .setHiveMetastoreDerbyDbDir(derbyDirectory) .setHiveMetastoreHostname(host) .setHiveMetastorePort(port) .setHiveWarehouseDir(warehouseDirectory) .setHiveScratchDir(scratchDirectory) .setHiveConf(buildHiveConf()) .build(); }
public HiveMetastoreBootstrap(URL url) { if (hiveLocalMetaStore == null) { try { configuration = HadoopUtils.INSTANCE.loadConfigFile(url); loadConfig(); } catch (BootstrapException e) { LOGGER.error("unable to load configuration", e); } } }
@Override public Bootstrap start() { if (state == State.STOPPED) { state = State.STARTING; LOGGER.info("{} is starting", this.getClass().getName()); build(); try { hiveLocalMetaStore.start(); } catch (Exception e) { LOGGER.error("unable to add hivemetastore", e); } state = State.STARTED; LOGGER.info("{} is started", this.getClass().getName()); } return this; }
@Override public Bootstrap stop() { if (state == State.STARTED) { state = State.STOPPING; LOGGER.info("{} is stopping", this.getClass().getName()); try { hiveLocalMetaStore.stop(true); } catch (Exception e) { LOGGER.error("unable to stop hivemetastore", e); } cleanup(); state = State.STOPPED; LOGGER.info("{} is stopped", this.getClass().getName()); } return this; }
public HiveMetastoreBootstrap() { if (hiveLocalMetaStore == null) { try { configuration = HadoopUtils.INSTANCE.loadConfigFile(null); loadConfig(); } catch (BootstrapException e) { LOGGER.error("unable to load configuration", e); } } }
public HiveMetastoreBootstrap(URL url) { if (hiveLocalMetaStore == null) { try { configuration = HadoopUtils.INSTANCE.loadConfigFile(url); loadConfig(); } catch (BootstrapException e) { LOGGER.error("unable to load configuration", e); } } }