throws MetaException { String connectUrl = null; String currentUrl = MetaStoreInit.getConnectionURL(activeConf); try { initConnectionUrlHook(originalConf, updateData); if (updateData.urlHook != null) { if (badUrl != null) {
MetaStoreInit.updateConnectionURL(origConf, getActiveConf(), null, metaStoreInitData); String lastUrl = MetaStoreInit.getConnectionURL(getActiveConf()); gotNewConnectUrl = MetaStoreInit.updateConnectionURL(origConf, getActiveConf(), lastUrl, metaStoreInitData);
private void init() throws MetaException { // Using the hook on startup ensures that the hook always has priority // over settings in *.xml. The thread local conf needs to be used because at this point // it has already been initialized using conf. MetaStoreInit.updateConnectionURL(hiveConf, getConf(), null, metaStoreInitData); }
if (currentUrl == null || !currentUrl.equals(MetaStoreInit.getConnectionURL(conf))) { createDefaultDB(); createDefaultRoles(); addAdminUsers(); currentUrl = MetaStoreInit.getConnectionURL(conf);
private RetryingHMSHandler(Configuration origConf, IHMSHandler baseHandler, boolean local) throws MetaException { this.origConf = origConf; this.baseHandler = baseHandler; if (local) { baseHandler.setConf(origConf); // tests expect configuration changes applied directly to metastore } activeConf = baseHandler.getConf(); // This has to be called before initializing the instance of HMSHandler // Using the hook on startup ensures that the hook always has priority // over settings in *.xml. The thread local conf needs to be used because at this point // it has already been initialized using hiveConf. MetaStoreInit.updateConnectionURL(origConf, getActiveConf(), null, metaStoreInitData); try { //invoking init method of baseHandler this way since it adds the retry logic //in case of transient failures in init method invoke(baseHandler, baseHandler.getClass().getDeclaredMethod("init", (Class<?>[]) null), null); } catch (Throwable e) { LOG.error("HMSHandler Fatal error: " + ExceptionUtils.getStackTrace(e)); MetaException me = new MetaException(e.getMessage()); me.initCause(e); throw me; } }
if (currentUrl == null || !currentUrl.equals(MetaStoreInit.getConnectionURL(hiveConf))) { createDefaultDB(); createDefaultRoles(); addAdminUsers(); currentUrl = MetaStoreInit.getConnectionURL(hiveConf);
throws MetaException { String connectUrl = null; String currentUrl = MetaStoreInit.getConnectionURL(activeConf); try { MetaStoreInit.initConnectionUrlHook(originalConf, updateData); if (updateData.urlHook != null) { if (badUrl != null) {
MetaStoreInit.updateConnectionURL(hiveConf, getConf(), null, metaStoreInitData); String lastUrl = MetaStoreInit.getConnectionURL(getConf()); gotNewConnectUrl = MetaStoreInit.updateConnectionURL(hiveConf, getConf(), lastUrl, metaStoreInitData);
private void init() throws MetaException { // Using the hook on startup ensures that the hook always has priority // over settings in *.xml. The thread local conf needs to be used because at this point // it has already been initialized using hiveConf. MetaStoreInit.updateConnectionURL(hiveConf, getConf(), null, metaStoreInitData); }
if (currentUrl == null || !currentUrl.equals(MetaStoreInit.getConnectionURL(hiveConf))) { createDefaultDB(); createDefaultRoles(); addAdminUsers(); currentUrl = MetaStoreInit.getConnectionURL(hiveConf);
throws MetaException { String connectUrl = null; String currentUrl = MetaStoreInit.getConnectionURL(conf); try { MetaStoreInit.initConnectionUrlHook(hiveConf, updateData); if (updateData.urlHook != null) { if (badUrl != null) {
MetaStoreInit.updateConnectionURL(origConf, getActiveConf(), null, metaStoreInitData); String lastUrl = MetaStoreInit.getConnectionURL(getActiveConf()); gotNewConnectUrl = MetaStoreInit.updateConnectionURL(origConf, getActiveConf(), lastUrl, metaStoreInitData);
private void init() throws MetaException { // Using the hook on startup ensures that the hook always has priority // over settings in *.xml. The thread local conf needs to be used because at this point // it has already been initialized using hiveConf. MetaStoreInit.updateConnectionURL(hiveConf, getConf(), null, metaStoreInitData); }
if (currentUrl == null || !currentUrl.equals(MetaStoreInit.getConnectionURL(conf))) { createDefaultDB(); createDefaultRoles(); addAdminUsers(); currentUrl = MetaStoreInit.getConnectionURL(conf);
throws MetaException { String connectUrl = null; String currentUrl = MetaStoreInit.getConnectionURL(activeConf); try { initConnectionUrlHook(originalConf, updateData); if (updateData.urlHook != null) { if (badUrl != null) {
MetaStoreInit.updateConnectionURL(hiveConf, getConf(), null, metaStoreInitData); String lastUrl = MetaStoreInit.getConnectionURL(getConf()); gotNewConnectUrl = MetaStoreInit.updateConnectionURL(hiveConf, getConf(), lastUrl, metaStoreInitData);
private void init() throws MetaException { // Using the hook on startup ensures that the hook always has priority // over settings in *.xml. The thread local conf needs to be used because at this point // it has already been initialized using conf. MetaStoreInit.updateConnectionURL(hiveConf, getConf(), null, metaStoreInitData); }
throws MetaException { String connectUrl = null; String currentUrl = MetaStoreInit.getConnectionURL(activeConf); try { MetaStoreInit.initConnectionUrlHook(originalConf, updateData); if (updateData.urlHook != null) { if (badUrl != null) {
MetaStoreInit.updateConnectionURL(origConf, getActiveConf(), null, metaStoreInitData); String lastUrl = MetaStoreInit.getConnectionURL(getActiveConf()); gotNewConnectUrl = MetaStoreInit.updateConnectionURL(origConf, getActiveConf(), lastUrl, metaStoreInitData);
private void init() throws MetaException { // Using the hook on startup ensures that the hook always has priority // over settings in *.xml. The thread local conf needs to be used because at this point // it has already been initialized using hiveConf. MetaStoreInit.updateConnectionURL(hiveConf, getConf(), null, metaStoreInitData); }