Home

/apps/events/inefficient_apps

Gets total job count per status in a given time window (at one hour intervals).

Request
GET http://unravel-host:3000/api/v1/apps/events/inefficient_apps?start_time={timestamp}&end_time={timestamp}&entity_type={application type}
Path parameters

None.

Query parameters

Required parameters are highlighted.

Name

Type

Description

start_time

string

Start date. Format YYYY-MM-DD

end_time

string

End date. Format YYYY-MM-DD

entity_type

integer

Application type.

Valid values are:

0: MR
1: Hive
2 : Spark
16 : Impala
Response body

Name

Type

Description

entity_type

integer

Entity type

event_name

string

Event name

count

integer

Examples

Request:

curl -X GET "http://http://myserver.com:3000/api/v1/apps/events/inefficient_apps/?start_time=2019-03-01&end_time=2019-03-06&entity_type=2" -H "accept: application/json"-H  "accept: application/json" -H  "Authorization: JWT token"

Response body:

[
  {
    "entity_type": 0,
    "event_name": "MRTooLargeMapEvent",
    "count": 10559
  },
  {
    "entity_type": 0,
    "event_name": "MRTimeBreakdownEvent",
    "count": 7868
  },
  {
    "entity_type": 0,
    "event_name": "MRTooLargeReduceEvent",
    "count": 4782
  },
  {
    "entity_type": 0,
    "event_name": "MRTooManyMapEvent2",
    "count": 2097
  },
  {
   "entity_type": 0,
    "event_name": "MRTooManyReduceEvent2",
    "count": 1066
  },
  {
    "entity_type": 0,
    "event_name": "LongReduceTasksStartBeforeMapFinishEvent",
    "count": 21
  },
  {
    "entity_type": 0,
    "event_name": "MRTooFewMapEvent2",
    "count": 3
  },
  {
    "entity_type": 0,
    "event_name": "MRReduceTimeSkewEvent",
    "count": 2
  },
  {
    "entity_type": 0,
    "event_name": "MRMapTimeSkewEvent",
    "count": 1
  }
]