private TezCounters vertexCounter(Set<StatusGetOpts> statusOptions, String vertexName) { try { return dagClient.getVertexStatus(vertexName, statusOptions).getVertexCounters(); } catch (IOException | TezException e) { // best attempt, shouldn't really kill DAG for this } return null; }
@Override public void tryKillDAG() throws IOException, TezException { synchronized (dagClient) { dagClient.tryKillDAG(); } }
VertexProgress(Progress progress, DAGStatus.State dagState) { this(progress.getTotalTaskCount(), progress.getSucceededTaskCount(), progress.getFailedTaskAttemptCount(), progress.getKilledTaskAttemptCount(), progress.getRunningTaskCount(), dagState); }
private TezCounters hiveCounters(DAGClient dagClient) { try { return dagClient.getDAGStatus(EnumSet.of(StatusGetOpts.GET_COUNTERS)).getDAGCounters(); } catch (IOException | TezException e) { // best attempt, shouldn't really kill DAG for this } return null; }
@Override public VertexStatus getVertexStatus(String vertexName, Set<StatusGetOpts> statusOptions) throws IOException, TezException { synchronized (dagClient) { return dagClient.getVertexStatus(vertexName, statusOptions); } }
@Override public String getExecutionContext() { return dagClient.getExecutionContext(); // Don't sync. }
@Override public void close() throws IOException { dagClient.close(); // Don't sync. }
@Override public DAGStatus waitForCompletion() throws IOException, TezException, InterruptedException { synchronized (dagClient) { return dagClient.waitForCompletion(); } }
@Override public int hashCode() { int result = totalTaskCount; result = 31 * result + succeededTaskCount; result = 31 * result + failedTaskAttemptCount; result = 31 * result + (int) (killedTaskAttemptCount ^ (killedTaskAttemptCount >>> 32)); result = 31 * result + runningTaskCount; result = 31 * result + dagState.hashCode(); return result; } }
VertexProgress(Progress progress, DAGStatus.State dagState) { this(progress.getTotalTaskCount(), progress.getSucceededTaskCount(), progress.getFailedTaskAttemptCount(), progress.getKilledTaskAttemptCount(), progress.getRunningTaskCount(), dagState); }
private TezCounters vertexCounter(Set<StatusGetOpts> statusOptions, String vertexName) { try { return dagClient.getVertexStatus(vertexName, statusOptions).getVertexCounters(); } catch (IOException | TezException e) { // best attempt, shouldn't really kill DAG for this } return null; }
private TezCounters hiveCounters(DAGClient dagClient) { try { return dagClient.getDAGStatus(EnumSet.of(StatusGetOpts.GET_COUNTERS)).getDAGCounters(); } catch (IOException | TezException e) { // best attempt, shouldn't really kill DAG for this } return null; }
private VertexStatus vertexStatus(Set<StatusGetOpts> statusOptions, String vertexName) { try { return dagClient.getVertexStatus(vertexName, statusOptions); } catch (IOException | TezException e) { // best attempt, shouldn't really kill DAG for this } return null; }
@Override public void tryKillDAG() throws IOException, TezException { synchronized (dagClient) { dagClient.tryKillDAG(); } }
private TezCounters vertexCounters(Set<StatusGetOpts> statusOptions, String vertexName) { try { return dagClient.getVertexStatus(vertexName, statusOptions).getVertexCounters(); } catch (IOException | TezException e) { // best attempt, shouldn't really kill DAG for this } return null; } }
private VertexStatus vertexStatus(Set<StatusGetOpts> statusOptions, String vertexName) { try { return dagClient.getVertexStatus(vertexName, statusOptions); } catch (IOException | TezException e) { // best attempt, shouldn't really kill DAG for this } return null; }
private TezCounters vertexCounters(Set<StatusGetOpts> statusOptions, String vertexName) { try { return dagClient.getVertexStatus(vertexName, statusOptions).getVertexCounters(); } catch (IOException | TezException e) { // best attempt, shouldn't really kill DAG for this } return null; } }
private TezCounters vertexCounter(Set<StatusGetOpts> statusOptions, String vertexName) { try { return dagClient.getVertexStatus(vertexName, statusOptions).getVertexCounters(); } catch (IOException | TezException e) { // best attempt, shouldn't really kill DAG for this } return null; }