[
https://issues.apache.org/jira/browse/YARN-3698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sreenath Somarajapuram updated YARN-3698:
-----------------------------------------
Description:
Issue with redirection:
On hitting
{code}http://address:8042/node/containerlogs/container_e13_1448429572030_8751_01_000588/uname/syslog_attempt_1448429572030_8751_6_02_000000_0{code}
We are getting redirected to the container logs at
{code}http://address:19888/jobhistory/logs/address:45454/container_e13_1448429572030_8751_01_000588/container_e13_1448429572030_8751_01_000588/uname{code}
The ideal behaviour must be to get the respective attempt log.
Provide a downloadable link:
Please provide a variant of the link with the following headers set, this
enables direct download of the file across all browsers. Without these we
cannot provide a cross-browser download links.
Content-Disposition: attachment; filename="attempt-id.log"
Content-Type of text/plain
was:
Currently we don't have direct access to an attempt's log file from web apps.
The only available option is through jobhistory, and that provides an HTML view
of the log.
Would be great if we provide raw log files for the users to download.
Requirements:
# A link to access the raw log file.
# A variant of the link with the following headers set, this enables direct
download of the file across all browsers. Without these we cannot provide a
cross-browser download link.
Content-Disposition: attachment; filename="attempt-id.log"
Content-Type of text/plain
# Correct nodemanager redirection:
-- Node manager redirects an attempt syslog view to the container view. Hence
we are not able to view the logs of a specific attempt.
-- Before redirection:
http://sandbox.hortonworks.com:8042/node/containerlogs/container_1432048982252_0004_01_000002/root/syslog_attempt_1432048982252_0004_1_02_000000_0
-- After redirection:
http://sandbox.hortonworks.com:19888/jobhistory/logs/sandbox.hortonworks.com:45454/container_1432048982252_0004_01_000002/container_1432048982252_0004_01_000002/root
> Correct node-manager redirection & make task attempt log files downloadable
> from all browsers
> ---------------------------------------------------------------------------------------------
>
> Key: YARN-3698
> URL: https://issues.apache.org/jira/browse/YARN-3698
> Project: Hadoop YARN
> Issue Type: Task
> Reporter: Sreenath Somarajapuram
>
> Issue with redirection:
> On hitting
> {code}http://address:8042/node/containerlogs/container_e13_1448429572030_8751_01_000588/uname/syslog_attempt_1448429572030_8751_6_02_000000_0{code}
> We are getting redirected to the container logs at
> {code}http://address:19888/jobhistory/logs/address:45454/container_e13_1448429572030_8751_01_000588/container_e13_1448429572030_8751_01_000588/uname{code}
> The ideal behaviour must be to get the respective attempt log.
> Provide a downloadable link:
> Please provide a variant of the link with the following headers set, this
> enables direct download of the file across all browsers. Without these we
> cannot provide a cross-browser download links.
> Content-Disposition: attachment; filename="attempt-id.log"
> Content-Type of text/plain
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)