static RawStore newRawStoreForConf(Configuration conf) throws MetaException { Configuration newConf = new Configuration(conf); String rawStoreClassName = MetastoreConf.getVar(newConf, ConfVars.RAW_STORE_IMPL); LOG.info(addPrefix("Opening raw store with implementation class:" + rawStoreClassName)); return RawStoreProxy.getProxy(newConf, conf, rawStoreClassName, threadLocalId.get()); }
private static synchronized void init(Configuration conf) throws MetaException { if (cleaner == null) { cleaner = new CleanerThread(conf, RawStoreProxy.getProxy(conf, conf, MetastoreConf.getVar(conf, ConfVars.RAW_STORE_IMPL), 999999)); cleaner.start(); } }
@Override public void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception { super.init(stop, looped); // Get our own instance of the transaction handler txnHandler = TxnUtils.getTxnStore(conf); // Get our own connection to the database so we can get table and partition information. rs = RawStoreProxy.getProxy(conf, conf, MetastoreConf.getVar(conf, MetastoreConf.ConfVars.RAW_STORE_IMPL), threadId); }
@Override public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { this.stop = stop; this.looped = looped; setPriority(MIN_PRIORITY); setDaemon(true); String user = "anonymous"; try { user = UserGroupInformation.getCurrentUser().getShortUserName(); } catch (IOException e) { LOG.warn("Cannot determine the current user; executing as anonymous", e); } txnHandler = TxnUtils.getTxnStore(conf); rs = RawStoreProxy.getProxy(conf, conf, MetastoreConf.getVar(conf, MetastoreConf.ConfVars.RAW_STORE_IMPL), threadId); for (int i = 0; i < workers.length; ++i) { workers[i] = new Thread(new WorkerRunnable(conf, user)); workers[i].setDaemon(true); workers[i].setName("Stats updater worker " + i); } }
@Override public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { this.stop = stop; this.looped = looped; setPriority(MIN_PRIORITY); setDaemon(true); // this means the process will exit without waiting for this thread // Get our own instance of the transaction handler txnHandler = TxnUtils.getTxnStore(conf); // Get our own connection to the database so we can get table and partition information. rs = RawStoreProxy.getProxy(conf, conf, conf.getVar(HiveConf.ConfVars.METASTORE_RAW_STORE_IMPL), threadId); }
static RawStore newRawStoreForConf(Configuration conf) throws MetaException { Configuration newConf = new Configuration(conf); String rawStoreClassName = MetastoreConf.getVar(newConf, ConfVars.RAW_STORE_IMPL); LOG.info(addPrefix("Opening raw store with implementation class:" + rawStoreClassName)); return RawStoreProxy.getProxy(newConf, conf, rawStoreClassName, threadLocalId.get()); }
private RawStore newRawStore() throws MetaException { LOG.info(addPrefix("Opening raw store with implemenation class:" + rawStoreClassName)); Configuration conf = getConf(); return RawStoreProxy.getProxy(hiveConf, conf, rawStoreClassName, threadLocalId.get()); }
private RawStore newRawStore() throws MetaException { final Configuration conf = getConf(); final String rawStoreClassName = getHiveConf().getVar(HiveConf.ConfVars.METASTORE_RAW_STORE_IMPL); LOG.info(String.format("%s: Opening raw store with implemenation class: %s", threadLocalId.get(), rawStoreClassName)); return RawStoreProxy.getProxy(getHiveConf(), conf, rawStoreClassName, threadLocalId.get()); }
private RawStore newRawStore() throws MetaException { final Configuration conf = getConf(); final String rawStoreClassName = getHiveConf().getVar(HiveConf.ConfVars.METASTORE_RAW_STORE_IMPL); LOG.info(String.format("%s: Opening raw store with implemenation class: %s", threadLocalId.get(), rawStoreClassName)); return RawStoreProxy.getProxy(getHiveConf(), conf, rawStoreClassName, threadLocalId.get()); }
private RawStore newRawStore() throws MetaException { LOG.info(addPrefix("Opening raw store with implemenation class:" + rawStoreClassName)); Configuration conf = getConf(); return RawStoreProxy.getProxy(hiveConf, conf, rawStoreClassName, threadLocalId.get()); }
private synchronized void init(HiveConf conf) { try { rs = RawStoreProxy.getProxy(conf, conf, conf.getVar(HiveConf.ConfVars.METASTORE_RAW_STORE_IMPL), 999999); } catch (MetaException e) { LOG.error("Unable to connect to raw store, notifications will not be tracked", e); rs = null; } if (cleaner == null && rs != null) { cleaner = new CleanerThread(conf, rs); cleaner.start(); } }
private synchronized void init(HiveConf conf) { try { rs = RawStoreProxy.getProxy(conf, conf, conf.getVar(HiveConf.ConfVars.METASTORE_RAW_STORE_IMPL), 999999); } catch (MetaException e) { LOG.error("Unable to connect to raw store, notifications will not be tracked", e); rs = null; } if (cleaner == null && rs != null) { cleaner = new CleanerThread(conf, rs); cleaner.start(); } }
private static synchronized void init(Configuration conf) throws MetaException { if (cleaner == null) { cleaner = new CleanerThread(conf, RawStoreProxy.getProxy(conf, conf, MetastoreConf.getVar(conf, ConfVars.RAW_STORE_IMPL), 999999)); cleaner.start(); } }
@Override public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { this.stop = stop; this.looped = looped; setPriority(MIN_PRIORITY); setDaemon(true); // this means the process will exit without waiting for this thread // Get our own instance of the transaction handler txnHandler = new CompactionTxnHandler(conf); // Get our own connection to the database so we can get table and partition information. rs = RawStoreProxy.getProxy(conf, conf, conf.getVar(HiveConf.ConfVars.METASTORE_RAW_STORE_IMPL), threadId); }