runtimeInfo.setCurrentAttemptStartTime(System.currentTimeMillis()); runtimeInfo.setWithinDagPriority(0); runtimeInfo.setDagStartTime(submitWorkInfo.getCreationTime()); runtimeInfo.setFirstAttemptStartTime(submitWorkInfo.getCreationTime()); runtimeInfo.setNumSelfAndUpstreamTasks(submitWorkInfo.getVertexParallelism()); runtimeInfo.setNumSelfAndUpstreamCompletedTasks(0); builder.setAmPort(address.getPort()); builder.setCredentialsBinary(ByteString.copyFrom(credentialsBinary)); builder.setFragmentRuntimeInfo(runtimeInfo.build()); builder.setInitialEventBytes(ByteString.copyFrom(fragmentBytes)); if (fragmentBytesSignature != null) {
runtimeInfo.setCurrentAttemptStartTime(System.currentTimeMillis()); runtimeInfo.setWithinDagPriority(0); runtimeInfo.setDagStartTime(submitWorkInfo.getCreationTime()); runtimeInfo.setFirstAttemptStartTime(submitWorkInfo.getCreationTime()); runtimeInfo.setNumSelfAndUpstreamTasks(submitWorkInfo.getVertexParallelism()); runtimeInfo.setNumSelfAndUpstreamCompletedTasks(0); builder.setAmPort(address.getPort()); builder.setCredentialsBinary(ByteString.copyFrom(credentialsBinary)); builder.setFragmentRuntimeInfo(runtimeInfo.build()); builder.setInitialEventBytes(ByteString.copyFrom(fragmentBytes)); if (fragmentBytesSignature != null) {
/** * 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() .setDagStartTime(dagStartTime) .setFirstAttemptStartTime(attemptStartTime) .setNumSelfAndUpstreamTasks(numSelfAndUpstreamTasks) .setNumSelfAndUpstreamCompletedTasks(numSelfAndUpstreamComplete) .setWithinDagPriority(withinDagPriority) .build()) .build();
.FragmentRuntimeInfo .newBuilder() .setFirstAttemptStartTime(firstAttemptStartTime) .setCurrentAttemptStartTime(currentAttemptStartTime) .setNumSelfAndUpstreamTasks(selfAndUpstreamParallelism) .setNumSelfAndUpstreamCompletedTasks(selfAndUpstreamComplete) .setWithinDagPriority(withinDagPriority) .build()) .build();
/** * <code>optional .FragmentRuntimeInfo fragment_runtime_info = 9;</code> * * <pre> * Not supported/honored for external clients right now. * </pre> */ public Builder setFragmentRuntimeInfo( org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.FragmentRuntimeInfo.Builder builderForValue) { if (fragmentRuntimeInfoBuilder_ == null) { fragmentRuntimeInfo_ = builderForValue.build(); onChanged(); } else { fragmentRuntimeInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /**
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; }
/** * 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(); }