/** * Creates a tez session. A session is tied to either a cli/hs2 session. You can * submit multiple DAGs against a session (as long as they are executed serially). */ public void open(String[] additionalFilesNotFromConf) throws IOException, LoginException, URISyntaxException, TezException { openInternal(additionalFilesNotFromConf, false, null, null); }
public void open(HiveResources resources) throws LoginException, IOException, URISyntaxException, TezException { openInternal(null, false, null, resources); }
public void beginOpen(String[] additionalFiles, LogHelper console) throws IOException, LoginException, URISyntaxException, TezException { openInternal(additionalFiles, true, console, null); }
public void open(HiveConf conf, Collection<String> additionalFiles, Path scratchDir) throws LoginException, IOException, URISyntaxException, TezException { openInternal(conf, additionalFiles, false, null, scratchDir); }
@Override protected void openInternal(HiveConf conf, Collection<String> additionalFiles, boolean isAsync, LogHelper console, Path scratchDir) throws IOException, LoginException, URISyntaxException, TezException { super.openInternal(conf, additionalFiles, isAsync, console, scratchDir); synchronized (openSessions) { openSessions.add(this); } if (parent.expirationQueue != null) { long jitterModMs = (long)(parent.sessionLifetimeJitterMs * rdm.nextFloat()); expirationNs = System.nanoTime() + (parent.sessionLifetimeMs + jitterModMs) * 1000000L; if (LOG.isDebugEnabled()) { LOG.debug("Adding a pool session [" + this + "] to expiration queue"); } parent.addToExpirationQueue(this); } }
/** * Creates a tez session. A session is tied to either a cli/hs2 session. You can * submit multiple DAGs against a session (as long as they are executed serially). * @throws IOException * @throws URISyntaxException * @throws LoginException * @throws TezException * @throws InterruptedException */ public void open(HiveConf conf, String[] additionalFiles) throws IOException, LoginException, IllegalArgumentException, URISyntaxException, TezException { openInternal(conf, setFromArray(additionalFiles), false, null, null); }
public void beginOpen(HiveConf conf, String[] additionalFiles, LogHelper console) throws IOException, LoginException, IllegalArgumentException, URISyntaxException, TezException { openInternal(conf, setFromArray(additionalFiles), true, console, null); }
@Override protected void openInternal(String[] additionalFiles, boolean isAsync, LogHelper console, HiveResources resources) throws IOException, LoginException, URISyntaxException, TezException { super.openInternal(additionalFiles, isAsync, console, resources); parent.registerOpenSession(this); if (expirationTracker != null) { expirationTracker.addToExpirationQueue(this); } }