[ https://issues.apache.org/jira/browse/TEZ-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14740826#comment-14740826 ]
Prakash Ramachandran commented on TEZ-2792: ------------------------------------------- also getIDsFromRequest in the comment says it can return a list of the form {code} Takes in "0,1_0,1_3,2_5_7" and returns [[0],[1,0],[1,3][2,5,7]] so the inner list can return a list like [2,5,7] {code} however where it is called it always assumes the list size is 2 (line 545) {code} for (List<Integer> indexes : taskIDs) { Vertex vertex = getVertexFromIndex(dag, indexes.get(0)); if(vertex == null) { continue; } Task task = getTaskFromIndex(vertex, indexes.get(1)); {code} > Add AM web service API for tasks. > --------------------------------- > > Key: TEZ-2792 > URL: https://issues.apache.org/jira/browse/TEZ-2792 > Project: Apache Tez > Issue Type: Sub-task > Components: UI > Reporter: Sreenath Somarajapuram > Assignee: Sreenath Somarajapuram > Attachments: TEZ-2792.1.patch, TEZ-2792.2.patch, TEZ-2792.3.patch > > > Add AM API for fetching realtime tasks info: > - API endpoint : /ws/v2/tez/tasksInfo > - Query Params: > -- dagID: Just need to pass the dagIndex, (mandatory). > -- vertexID: Just need to pass the vertexIndex. Can be a comma separated list > -- taskID: Must be of the format <vertexIndex>_<taskIndex>. For instance task > with index 5 in vertex 3 can be referenced using the id 3_5. Can be a comma > separated list. > -- limit: Maximum number of items to be returned (Defaults to 100). > - If taskID is passed: All (capped by limit) the specified tasks will be > returned. vertexID if present wont be considered. > - IF vertexID is passed: All (capped by limit) tasks under the vertices will > be returned. > - If just dagID is passed: All (capped by limit) tasks under the DAG will be > returned. > - Data returned: complete task id, progress, status -- This message was sent by Atlassian JIRA (v6.3.4#6332)