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 "Yuanbo Liu (JIRA)" <ji...@apache.org> on 2017/02/17 08:40:41 UTC

[jira] [Updated] (YARN-1728) History server doesn't understand percent encoded paths

     [ https://issues.apache.org/jira/browse/YARN-1728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuanbo Liu updated YARN-1728:
-----------------------------
    Attachment: YARN-1728-branch-2.001.patch

The root cause of this defect is that the third-party jar named guice-3.0 doesn't obey the rule which is introduced by [~jira.shegalov]
With HADOOP-12064, this defect will never be a problem in trunk and hadoop-3, but in branch-2, it still exists.
I strongly suggest that this defect should be addressed in hadoop-2 because encoded path in url is quite often and the implemented method in guice-3.0 doesn't follow the contract of the interface {{HttpServletRequest#getPathInfo}}.

> History server doesn't understand percent encoded paths
> -------------------------------------------------------
>
>                 Key: YARN-1728
>                 URL: https://issues.apache.org/jira/browse/YARN-1728
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Abraham Elmahrek
>            Assignee: Yuanbo Liu
>         Attachments: YARN-1728-branch-2.001.patch
>
>
> For example, going to the job history server page http://localhost:19888/jobhistory/logs/localhost%3A8041/container_1391466602060_0011_01_000001/job_1391466602060_0011/admin/stderr results in the following error:
> {code}
> Cannot get container logs. Invalid nodeId: test-cdh5-hue.ent.cloudera.com%3A8041
> {code}
> Where the url decoded version works:
> http://localhost:19888/jobhistory/logs/localhost:8041/container_1391466602060_0011_01_000001/job_1391466602060_0011/admin/stderr
> It seems like both should be supported as the former is simply percent encoding.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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