[
https://issues.apache.org/jira/browse/YARN-4224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14943320#comment-14943320
]
Varun Saxena commented on YARN-4224:
------------------------------------
My proposal would be as under
* *Query flows*
Current REST API for querying flows is
{{/ws/v2/timeline/flows/\{clusterid}/}} . This can be changed to :
{panel}
*/ws/v2/timeline/\{clusterid}/flows*
_Eg :_ /ws/v2/timeline/yarn_cluster/flows
{panel}
* *Query flowrun*
Current REST API is
{{/ws/v2/timeline/flowrun/\{clusterid}/\{flowid}/\{flowrunid}/}} . This can be
changed to :
{panel}
*/ws/v2/timeline/\{clusterid}/\{flowid}/run/\{flowrunid}*
_Eg :_ /ws/v2/timeline/yarn_cluster/hive_flow/run/123
{panel}
* *Query app*
Current REST API in YARN-3864 is
{{/ws/v2/timeline/app/\{clusterid}/\{appid}/}} . This can be changed to :
{panel}
*/ws/v2/timeline/\{clusterid}/app/\{appid}*
_Eg :_ /ws/v2/timeline/yarn_cluster/app/application_1111111111_1345
{panel}
* *Query apps for a flow*
Current REST API in YARN-3864 is
{{/ws/v2/timeline/flowapps/\{clusterid}/\{flowid}/}} . This can be changed to :
{panel}
*/ws/v2/timeline/\{clusterid}/\{flowid}/apps*
_Eg :_ /ws/v2/timeline/yarn_cluster/hive_flow/apps
{panel}
* *Query apps for a flowrun*
Current REST API in YARN-3864 is
{{/ws/v2/timeline/flowrunapps/\{clusterid}/\{flowid}/\{flowrunid}/}} . This can
be changed to :
{panel}
*/ws/v2/timeline/\{clusterid}/\{flowid}/\{flowrunid}/apps*
_Eg :_ /ws/v2/timeline/yarn_cluster/hive_flow/123/apps
{panel}
* *Query entity*
Current REST API is
{{/ws/v2/timeline/entity/\{clusterid}/\{appid}/\{entitytype}/\{entityid}/}} .
This can be changed to :
{panel}
*/ws/v2/timeline/\{clusterid}/\{appid}/\{entitytype}/entity/\{entityid}*
_Eg :_
/ws/v2/timeline/yarn_cluster/application_1444034548255_0001/YARN_CONTAINER/entity/container_1444034548255_0001_01_000001
{panel}
* *Query entities*
Current REST API is
{{/ws/v2/timeline/entities/\{clusterid}/\{appid}/\{entitytype}/}} . This can be
changed to :
{panel}
*/ws/v2/timeline/\{clusterid}/\{appid}/\{entitytype}/entities*
_Eg :_
/ws/v2/timeline/yarn_cluster/application_1444034548255_0001/YARN_CONTAINER/entities
{panel}
> Change the REST interface to conform to current REST APIs' in YARN
> ------------------------------------------------------------------
>
> Key: YARN-4224
> URL: https://issues.apache.org/jira/browse/YARN-4224
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: timelineserver
> Affects Versions: YARN-2928
> Reporter: Varun Saxena
> Assignee: Varun Saxena
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)