session.waitTillReady(); } catch (InterruptedException ie) { if (isOnThread) {
session.waitTillReady(); } catch (InterruptedException ie) { if (isOnThread) throw new IOException(ie);
private static void waitForTezSessionReady(TezClient tezSession) throws IOException, TezException, InterruptedException { tezSession.waitTillReady(); }
/** * Wait till the DAG is ready to be submitted. * In non-session mode this is a no-op since the application can be immediately * submitted. * In session mode, this waits for the session host to be ready to accept a DAG * @throws IOException * @throws TezException * @throws InterruptedException */ @Evolving public synchronized void waitTillReady() throws IOException, TezException, InterruptedException { waitTillReady(0, TimeUnit.MILLISECONDS); }
tezClient.waitTillReady(); DAGClient dagClient = tezClient.submitDAG(dag); Set<StatusGetOpts> getOpts = Sets.newHashSet();
stagingDir, inputPath, outputPath); tezSession.waitTillReady(); dagClient = tezSession.submitDAG(dag);
DAG dag = createDAG(fs, tezConf, stagingDir, doLocalityCheck); tezSession.waitTillReady(); dagClient = tezSession.submitDAG(dag);
isReady = waitTillReady(timeout, unit); } catch (InterruptedException e) { throw new IOException("Interrupted while waiting for AM to become " +
private static SessionInfo createSession(TezConfiguration amConf, Map<String, LocalResource> requestedAMResources, Credentials creds, TezJobConfig tezJobConf) throws TezException, IOException, InterruptedException { MRToTezHelper.translateMRSettingsForTezAM(amConf); TezScriptState ss = TezScriptState.get(); ss.addDAGSettingsToConf(amConf); if (amConf.getBoolean(PigConfiguration.PIG_TEZ_CONFIGURE_AM_MEMORY, true)) { adjustAMConfig(amConf, tezJobConf); } String jobName = amConf.get(PigContext.JOB_NAME, "pig"); TezClient tezClient = TezClient.create(jobName, amConf, true, requestedAMResources, creds); try { tezClient.start(); TezAppMasterStatus appMasterStatus = tezClient.getAppMasterStatus(); if (appMasterStatus.equals(TezAppMasterStatus.SHUTDOWN)) { throw new RuntimeException("TezSession has already shutdown"); } tezClient.waitTillReady(); } catch (Throwable e) { log.error("Exception while waiting for Tez client to be ready", e); tezClient.stop(); throw new RuntimeException(e); } return new SessionInfo(tezClient, amConf, requestedAMResources); }
tezClientInternal.waitTillReady();
session.waitTillReady(); } catch(InterruptedException ie) {