You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Akhil PB (JIRA)" <ji...@apache.org> on 2018/11/21 09:03:00 UTC

[jira] [Comment Edited] (YARN-8964) UI2 should use clusters/{cluster name} for all ATSv2 REST APIs

    [ https://issues.apache.org/jira/browse/YARN-8964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16694411#comment-16694411 ] 

Akhil PB edited comment on YARN-8964 at 11/21/18 9:02 AM:
----------------------------------------------------------

[~sunilg] [~rohithsharma] 
v2 patch incorporates cluster-id changes and ATSv2 log URL changes.
One thing I noted that {{yarn.log.server.web-service.url}} returns {{http://<ats-host>:<port>/ws/v1/applicationhistory}} for old clusters. But this might return {{http://<ats-host>:<port>/ws/v1/applicationlogs}} for new clusters which has ATSv2 log servlet changes. Please note the difference in namespaces between ATSv1.5 and ATSv2. Because of this namespace difference, I think dynamically fetching and setting the log-url in URL makes difficult.
Please share your thoughts.

Note: v2 patch does not yet support dynamic config of log URL. Please share your thoughts on the above issue and will update the new patch accordingly.


was (Author: akhilpb):
[~sunilg] [~rohithsharma] 
v2 patch incorporates cluster-id changes and ATSv2 log URL changes.
One thing I noted that {{yarn.log.server.web-service.url}} returns {{http://<ats-host>:<port>/ws/v1/applicationhistory}} for old clusters. But this might return {{http://<ats-host>:<port>/ws/v1/applicationlogs}} for new clusters which has ATSv2 log servlet changes. Please note the difference in namespaces between ATSv1.5 and ATSv2. Because of this namespace difference, I think dynamically fetching and setting the log-url in URL makes difficult.
Please share your thoughts.

> UI2 should use clusters/{cluster name} for all ATSv2 REST APIs
> --------------------------------------------------------------
>
>                 Key: YARN-8964
>                 URL: https://issues.apache.org/jira/browse/YARN-8964
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Rohith Sharma K S
>            Assignee: Akhil PB
>            Priority: Major
>         Attachments: YARN-8964.001.patch, YARN-8964.002.patch
>
>
> UI2 makes a REST call to TimelineReader without cluster name. It is advised to make a REST call with clusters/{cluster name} so that remote TimelineReader daemon could serve for different clusters.
> *Example*:
> *Current*: /ws/v2/timeline/flows/
> *Change*: /ws/v2/timeline/*clusters/\{cluster name\}*/flows/
> *yarn.resourcemanager.cluster-id *is configured with cluster. So, this config could be used to get cluster-id
> cc:/ [~sunilg] [~akhilpb]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org