123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- /**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- {"namespace": "org.apache.hadoop.mapreduce.jobhistory",
- "protocol": "Events",
- "types": [
- {"type": "record", "name": "JhCounter",
- "fields": [
- {"name": "name", "type": "string"},
- {"name": "displayName", "type": "string"},
- {"name": "value", "type": "long"}
- ]
- },
- {"type": "record", "name": "JhCounterGroup",
- "fields": [
- {"name": "name", "type": "string"},
- {"name": "displayName", "type": "string"},
- {"name": "counts", "type": {"type": "array", "items": "JhCounter"}}
- ]
- },
- {"type": "record", "name": "JhCounters",
- "fields": [
- {"name": "name", "type": "string"},
- {"name": "groups", "type": {"type": "array", "items": "JhCounterGroup"}}
- ]
- },
- {"type": "record", "name": "JobFinished",
- "fields": [
- {"name": "jobid", "type": "string"},
- {"name": "finishTime", "type": "long"},
- {"name": "finishedMaps", "type": "int"},
- {"name": "finishedReduces", "type": "int"},
- {"name": "failedMaps", "type": "int"},
- {"name": "failedReduces", "type": "int"},
- {"name": "totalCounters", "type": "JhCounters"},
- {"name": "mapCounters", "type": "JhCounters"},
- {"name": "reduceCounters", "type": "JhCounters"}
- ]
- },
- {"type": "record", "name": "JobInited",
- "fields": [
- {"name": "jobid", "type": "string"},
- {"name": "launchTime", "type": "long"},
- {"name": "totalMaps", "type": "int"},
- {"name": "totalReduces", "type": "int"},
- {"name": "jobStatus", "type": "string"},
- {"name": "uberized", "type": "boolean"}
- ]
- },
- {"type": "record", "name": "AMStarted",
- "fields": [
- {"name": "applicationAttemptId", "type": "string"},
- {"name": "startTime", "type": "long"},
- {"name": "containerId", "type": "string"},
- {"name": "nodeManagerHost", "type": "string"},
- {"name": "nodeManagerPort", "type": "int"},
- {"name": "nodeManagerHttpPort", "type": "int"}
- ]
- },
- {"type": "record", "name": "JobSubmitted",
- "fields": [
- {"name": "jobid", "type": "string"},
- {"name": "jobName", "type": "string"},
- {"name": "userName", "type": "string"},
- {"name": "submitTime", "type": "long"},
- {"name": "jobConfPath", "type": "string"},
- {"name": "acls", "type": {"type": "map",
- "values": "string"
- }
- },
- {"name": "jobQueueName", "type": "string"}
- ]
- },
- {"type": "record", "name": "JobInfoChange",
- "fields": [
- {"name": "jobid", "type": "string"},
- {"name": "submitTime", "type": "long"},
- {"name": "launchTime", "type": "long"}
- ]
- },
- {"type": "record", "name": "JobPriorityChange",
- "fields": [
- {"name": "jobid", "type": "string"},
- {"name": "priority", "type": "string"}
- ]
- },
- {"type": "record", "name": "JobStatusChanged",
- "fields": [
- {"name": "jobid", "type": "string"},
- {"name": "jobStatus", "type": "string"}
- ]
- },
- {"type": "record", "name": "JobUnsuccessfulCompletion",
- "fields": [
- {"name": "jobid", "type": "string"},
- {"name": "finishTime", "type": "long"},
- {"name": "finishedMaps", "type": "int"},
- {"name": "finishedReduces", "type": "int"},
- {"name": "jobStatus", "type": "string"}
- ]
- },
- {"type": "record", "name": "MapAttemptFinished",
- "fields": [
- {"name": "taskid", "type": "string"},
- {"name": "attemptId", "type": "string"},
- {"name": "taskType", "type": "string"},
- {"name": "taskStatus", "type": "string"},
- {"name": "mapFinishTime", "type": "long"},
- {"name": "finishTime", "type": "long"},
- {"name": "hostname", "type": "string"},
- {"name": "port", "type": "int"},
- {"name": "rackname", "type": "string"},
- {"name": "state", "type": "string"},
- {"name": "counters", "type": "JhCounters"},
- {"name": "clockSplits", "type": { "type": "array", "items": "int"}},
- {"name": "cpuUsages", "type": { "type": "array", "items": "int"}},
- {"name": "vMemKbytes", "type": { "type": "array", "items": "int"}},
- {"name": "physMemKbytes", "type": { "type": "array", "items": "int"}}
- ]
- },
- {"type": "record", "name": "ReduceAttemptFinished",
- "fields": [
- {"name": "taskid", "type": "string"},
- {"name": "attemptId", "type": "string"},
- {"name": "taskType", "type": "string"},
- {"name": "taskStatus", "type": "string"},
- {"name": "shuffleFinishTime", "type": "long"},
- {"name": "sortFinishTime", "type": "long"},
- {"name": "finishTime", "type": "long"},
- {"name": "hostname", "type": "string"},
- {"name": "port", "type": "int"},
- {"name": "rackname", "type": "string"},
- {"name": "state", "type": "string"},
- {"name": "counters", "type": "JhCounters"},
- {"name": "clockSplits", "type": { "type": "array", "items": "int"}},
- {"name": "cpuUsages", "type": { "type": "array", "items": "int"}},
- {"name": "vMemKbytes", "type": { "type": "array", "items": "int"}},
- {"name": "physMemKbytes", "type": { "type": "array", "items": "int"}}
- ]
- },
- {"type": "record", "name": "TaskAttemptFinished",
- "fields": [
- {"name": "taskid", "type": "string"},
- {"name": "attemptId", "type": "string"},
- {"name": "taskType", "type": "string"},
- {"name": "taskStatus", "type": "string"},
- {"name": "finishTime", "type": "long"},
- {"name": "rackname", "type": "string"},
- {"name": "hostname", "type": "string"},
- {"name": "state", "type": "string"},
- {"name": "counters", "type": "JhCounters"}
- ]
- },
- {"type": "record", "name": "TaskAttemptStarted",
- "fields": [
- {"name": "taskid", "type": "string"},
- {"name": "taskType", "type": "string"},
- {"name": "attemptId", "type": "string"},
- {"name": "startTime", "type": "long"},
- {"name": "trackerName", "type": "string"},
- {"name": "httpPort", "type": "int"},
- {"name": "shufflePort", "type": "int"},
- {"name": "containerId", "type": "string"}
- ]
- },
- {"type": "record", "name": "TaskAttemptUnsuccessfulCompletion",
- "fields": [
- {"name": "taskid", "type": "string"},
- {"name": "taskType", "type": "string"},
- {"name": "attemptId", "type": "string"},
- {"name": "finishTime", "type": "long"},
- {"name": "hostname", "type": "string"},
- {"name": "port", "type": "int"},
- {"name": "rackname", "type": "string"},
- {"name": "status", "type": "string"},
- {"name": "error", "type": "string"},
- {"name": "clockSplits", "type": { "type": "array", "items": "int"}},
- {"name": "cpuUsages", "type": { "type": "array", "items": "int"}},
- {"name": "vMemKbytes", "type": { "type": "array", "items": "int"}},
- {"name": "physMemKbytes", "type": { "type": "array", "items": "int"}}
- ]
- },
- {"type": "record", "name": "TaskFailed",
- "fields": [
- {"name": "taskid", "type": "string"},
- {"name": "taskType", "type": "string"},
- {"name": "finishTime", "type": "long"},
- {"name": "error", "type": "string"},
- {"name": "failedDueToAttempt", "type": ["null", "string"] },
- {"name": "status", "type": "string"}
- ]
- },
- {"type": "record", "name": "TaskFinished",
- "fields": [
- {"name": "taskid", "type": "string"},
- {"name": "taskType", "type": "string"},
- {"name": "finishTime", "type": "long"},
- {"name": "status", "type": "string"},
- {"name": "counters", "type": "JhCounters"}
- ]
- },
-
- {"type": "record", "name": "TaskStarted",
- "fields": [
- {"name": "taskid", "type": "string"},
- {"name": "taskType", "type": "string"},
- {"name": "startTime", "type": "long"},
- {"name": "splitLocations", "type": "string"}
- ]
- },
- {"type": "record", "name": "TaskUpdated",
- "fields": [
- {"name": "taskid", "type": "string"},
- {"name": "finishTime", "type": "long"}
- ]
- },
- {"type": "enum", "name": "EventType",
- "symbols": [
- "JOB_SUBMITTED",
- "JOB_INITED",
- "JOB_FINISHED",
- "JOB_PRIORITY_CHANGED",
- "JOB_STATUS_CHANGED",
- "JOB_FAILED",
- "JOB_KILLED",
- "JOB_INFO_CHANGED",
- "TASK_STARTED",
- "TASK_FINISHED",
- "TASK_FAILED",
- "TASK_UPDATED",
- "NORMALIZED_RESOURCE",
- "MAP_ATTEMPT_STARTED",
- "MAP_ATTEMPT_FINISHED",
- "MAP_ATTEMPT_FAILED",
- "MAP_ATTEMPT_KILLED",
- "REDUCE_ATTEMPT_STARTED",
- "REDUCE_ATTEMPT_FINISHED",
- "REDUCE_ATTEMPT_FAILED",
- "REDUCE_ATTEMPT_KILLED",
- "SETUP_ATTEMPT_STARTED",
- "SETUP_ATTEMPT_FINISHED",
- "SETUP_ATTEMPT_FAILED",
- "SETUP_ATTEMPT_KILLED",
- "CLEANUP_ATTEMPT_STARTED",
- "CLEANUP_ATTEMPT_FINISHED",
- "CLEANUP_ATTEMPT_FAILED",
- "CLEANUP_ATTEMPT_KILLED",
- "AM_STARTED"
- ]
- },
- {"type": "record", "name": "Event",
- "fields": [
- {"name": "type", "type": "EventType"},
- {"name": "event",
- "type": [
- "JobFinished",
- "JobInfoChange",
- "JobInited",
- "AMStarted",
- "JobPriorityChange",
- "JobStatusChanged",
- "JobSubmitted",
- "JobUnsuccessfulCompletion",
- "MapAttemptFinished",
- "ReduceAttemptFinished",
- "TaskAttemptFinished",
- "TaskAttemptStarted",
- "TaskAttemptUnsuccessfulCompletion",
- "TaskFailed",
- "TaskFinished",
- "TaskStarted",
- "TaskUpdated"
- ]
- }
- ]
- }
- ],
- "messages": {}
- }
|