CallerContext callerContext = CallerContext.create( "HIVE", queryPlan.getQueryId(), "HIVE_QUERY_ID", queryPlan.getQueryStr());
CallerContext callerContext = CallerContext.create( "HIVE", queryPlan.getQueryId(), "HIVE_QUERY_ID", queryPlan.getQueryStr());
private void parseDAGContext(JSONObject callerContextInfo) { if (callerContextInfo == null) { LOG.info("No DAG Caller Context available"); return; } String context = callerContextInfo.optString(Constants.CONTEXT); String callerId = callerContextInfo.optString(Constants.CALLER_ID); String callerType = callerContextInfo.optString(Constants.CALLER_TYPE); String description = callerContextInfo.optString(Constants.DESCRIPTION); this.callerContext = CallerContext.create(context, description); if (callerId != null && !callerId.isEmpty() && callerType != null && !callerType.isEmpty()) { this.callerContext.setCallerIdAndType(callerId, callerType); } else { LOG.info("No DAG Caller Context Id and Type available"); } }
public static CallerContext convertCallerContextFromProto(CallerContextProto proto) { CallerContext callerContext = CallerContext.create(proto.getContext(), (proto.hasBlob() ? proto.getBlob() : null)); if (proto.hasCallerType() && proto.hasCallerId()) { callerContext.setCallerIdAndType(proto.getCallerId(), proto.getCallerType()); } return callerContext; }
( "UnknownApp_" + System.currentTimeMillis() + dagIndex ) : ( tezSession.getAppMasterApplicationId().toString() + "_" + dagIndex); dag.setCallerContext(CallerContext.create("Tez", callerId, callerType, "TestOrderedWordCount Job"));
tezClientInternal.waitTillReady(); CallerContext callerContext = CallerContext.create("TezExamples", "Tez Example DAG: " + dag.getName()); ApplicationId appId = tezClientInternal.getAppMasterApplicationId();