runtimeInfo.setWithinDagPriority(0); runtimeInfo.setDagStartTime(submitWorkInfo.getCreationTime()); runtimeInfo.setFirstAttemptStartTime(submitWorkInfo.getCreationTime()); runtimeInfo.setNumSelfAndUpstreamTasks(submitWorkInfo.getVertexParallelism()); runtimeInfo.setNumSelfAndUpstreamCompletedTasks(0);
/** * Constructs FragmentRuntimeInfo for scheduling within LLAP daemons. * Also caches state based on state updates. * @param vertexName * @param fragmentNumber * @param priority * @return */ public synchronized FragmentRuntimeInfo getFragmentRuntimeInfo(String vertexName, int fragmentNumber, int priority) { FragmentRuntimeInfo.Builder builder = FragmentRuntimeInfo.newBuilder(); maybeRegisterForVertexUpdates(vertexName); MutableInt totalTaskCount = new MutableInt(0); MutableInt completedTaskCount = new MutableInt(0); computeUpstreamTaskCounts(completedTaskCount, totalTaskCount, vertexName); builder.setNumSelfAndUpstreamCompletedTasks(completedTaskCount.intValue()); builder.setNumSelfAndUpstreamTasks(totalTaskCount.intValue()); builder.setDagStartTime(taskCommunicatorContext.getDagStartTime()); builder.setWithinDagPriority(priority); builder.setFirstAttemptStartTime(taskCommunicatorContext.getFirstAttemptStartTime(vertexName, fragmentNumber)); builder.setCurrentAttemptStartTime(System.currentTimeMillis()); return builder.build(); }
.newBuilder() .setDagStartTime(dagStartTime) .setFirstAttemptStartTime(attemptStartTime) .setNumSelfAndUpstreamTasks(numSelfAndUpstreamTasks) .setNumSelfAndUpstreamCompletedTasks(numSelfAndUpstreamComplete)
runtimeInfo.setWithinDagPriority(0); runtimeInfo.setDagStartTime(submitWorkInfo.getCreationTime()); runtimeInfo.setFirstAttemptStartTime(submitWorkInfo.getCreationTime()); runtimeInfo.setNumSelfAndUpstreamTasks(submitWorkInfo.getVertexParallelism()); runtimeInfo.setNumSelfAndUpstreamCompletedTasks(0);
/** * Constructs FragmentRuntimeInfo for scheduling within LLAP daemons. * Also caches state based on state updates. * @param vertexName * @param fragmentNumber * @param priority * @return */ public synchronized FragmentRuntimeInfo getFragmentRuntimeInfo(String vertexName, int fragmentNumber, int priority) { FragmentRuntimeInfo.Builder builder = FragmentRuntimeInfo.newBuilder(); maybeRegisterForVertexUpdates(vertexName); MutableInt totalTaskCount = new MutableInt(0); MutableInt completedTaskCount = new MutableInt(0); computeUpstreamTaskCounts(completedTaskCount, totalTaskCount, vertexName); builder.setNumSelfAndUpstreamCompletedTasks(completedTaskCount.intValue()); builder.setNumSelfAndUpstreamTasks(totalTaskCount.intValue()); builder.setDagStartTime(taskCommunicatorContext.getDagStartTime()); builder.setWithinDagPriority(priority); builder.setFirstAttemptStartTime(taskCommunicatorContext.getFirstAttemptStartTime(vertexName, fragmentNumber)); builder.setCurrentAttemptStartTime(System.currentTimeMillis()); return builder.build(); }
.FragmentRuntimeInfo .newBuilder() .setFirstAttemptStartTime(firstAttemptStartTime) .setCurrentAttemptStartTime(currentAttemptStartTime) .setNumSelfAndUpstreamTasks(selfAndUpstreamParallelism)
public Builder mergeFrom(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.FragmentRuntimeInfo other) { if (other == org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.FragmentRuntimeInfo.getDefaultInstance()) return this; if (other.hasNumSelfAndUpstreamTasks()) { setNumSelfAndUpstreamTasks(other.getNumSelfAndUpstreamTasks()); } if (other.hasNumSelfAndUpstreamCompletedTasks()) { setNumSelfAndUpstreamCompletedTasks(other.getNumSelfAndUpstreamCompletedTasks()); } if (other.hasWithinDagPriority()) { setWithinDagPriority(other.getWithinDagPriority()); } if (other.hasDagStartTime()) { setDagStartTime(other.getDagStartTime()); } if (other.hasFirstAttemptStartTime()) { setFirstAttemptStartTime(other.getFirstAttemptStartTime()); } if (other.hasCurrentAttemptStartTime()) { setCurrentAttemptStartTime(other.getCurrentAttemptStartTime()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }