for (String diag : status.getDiagnostics()) { console.printError(diag); diagnostics.append(diag);
if (done) { if (rc != 0 && status != null) { for (String diag : status.getDiagnostics()) { console.printError(diag); diagnostics.append(diag);
@Override public synchronized String getFailureInfo() { return Joiner.on(". ").join(dagStatus.getDiagnostics()); }
public String getDiagnostics() { try { if (dagClient != null && dagStatus == null) { dagStatus = dagClient.getDAGStatus(null); } if (dagStatus != null) { return StringUtils.join(dagStatus.getDiagnostics(), "\n"); } } catch (Exception e) { //Ignore } return ""; } }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("status=" + getState() + ", progress=" + getDAGProgress() + ", diagnostics=" + StringUtils.join(getDiagnostics(), LINE_SEPARATOR) + ", counters=" + (getDAGCounters() == null ? "null" : getDAGCounters().toString())); return sb.toString(); }
@Override public boolean equals(Object obj) { // Source explicitly exclude from equals if (obj instanceof DAGStatus){ DAGStatus other = (DAGStatus)obj; return getState() == other.getState() && getDiagnostics().equals(other.getDiagnostics()) && getDAGProgress().equals(other.getDAGProgress()) && getVertexProgress().equals(other.getVertexProgress()) && ((getDAGCounters() == null && other.getDAGCounters() == null) || getDAGCounters().equals(other.getDAGCounters())); } return false; }
LOG.info("DAG diagnostics: " + dagStatus.getDiagnostics()); return -1; } else {
System.out.println("DAG diagnostics: " + dagStatus.getDiagnostics()); return false;
protected void dumpDebugInfo() { DAGStatus dagStatus = getDagStatus(); if( dagStatus == null ) return; flowStep.logWarn( "Tez DAG " + dagId + " state at " + dagStatus.getState() ); flowStep.logWarn( "failure info: " ); for( String diagLine : dagStatus.getDiagnostics() ) flowStep.logWarn( diagLine ); }
protected void dumpDebugInfo() { DAGStatus dagStatus = getDagStatus(); if( dagStatus == null ) return; flowStep.logWarn( "Tez DAG " + dagId + " state at " + dagStatus.getState() ); flowStep.logWarn( "failure info: " ); for( String diagLine : dagStatus.getDiagnostics() ) flowStep.logWarn( diagLine ); }
@Override public int hashCode() { // Source explicitly exclude from hashCode final int prime = 44017; int result = 1; result = prime + getState().hashCode(); List<String> diagnostics = getDiagnostics(); Progress dagProgress = getDAGProgress(); Map<String, Progress> vProgress = getVertexProgress(); TezCounters counters = getDAGCounters(); result = prime * result + ((diagnostics == null)? 0 : diagnostics.hashCode()); result = prime * result + ((dagProgress == null)? 0 : dagProgress.hashCode()); result = prime * result + ((vProgress == null)? 0 : vProgress.hashCode()); result = prime * result + ((counters == null)? 0 : counters.hashCode()); return result; }
System.out.println("DAG diagnostics: " + dagStatus.getDiagnostics()); return false;
if (dagStatus.getState() != DAGStatus.State.SUCCEEDED) { LOG.info("DAG " + dagIndex + " diagnostics: " + dagStatus.getDiagnostics());
logger.info("DAG diagnostics: " + dagStatus.getDiagnostics()); return -1;
if (done) { if (rc != 0 && status != null) { for (String diag : status.getDiagnostics()) { console.printError(diag); diagnostics.append(diag);