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

Saisai Shao updated SPARK-20517:
--------------------------------
    Description: 
The download link in history server UI is concatenated with:

{code}
      <td><a href="{{uiroot}}/api/v1/applications/{{id}}/{{num}}/logs" 
class="btn btn-info btn-mini">Download</a></td>
{code}

Here {{num}} filed represents number of attempts, this is not equal to REST 
APIs. In the REST API, if attempt id is not existed, then {{num}} field should 
be empty, otherwise this {{num}} field should actually be {{attemptId}}.

This will lead to the issue of "no such app", rather than correctly download 
the event log.

  was:
The download link in history server UI is concatenated with:

{code}
      <td><a href="{{uiroot}}/api/v1/applications/{{id}}/{{num}}/logs" 
class="btn btn-info btn-mini">Download</a></td>
{code}

Here {{num}} filed represents number of attempts, this is equal to REST APIs. 
In the REST API, if attempt id is not existed, then {{num}} field should be 
empty, otherwise this {{num}} field should actually be {{attemptId}}.

This will lead to the issue of "no such app", rather than correctly download 
the event log.


> Download link in history server UI is not correct
> -------------------------------------------------
>
>                 Key: SPARK-20517
>                 URL: https://issues.apache.org/jira/browse/SPARK-20517
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.1.0, 2.2.0
>            Reporter: Saisai Shao
>            Priority: Minor
>
> The download link in history server UI is concatenated with:
> {code}
>       <td><a href="{{uiroot}}/api/v1/applications/{{id}}/{{num}}/logs" 
> class="btn btn-info btn-mini">Download</a></td>
> {code}
> Here {{num}} filed represents number of attempts, this is not equal to REST 
> APIs. In the REST API, if attempt id is not existed, then {{num}} field 
> should be empty, otherwise this {{num}} field should actually be 
> {{attemptId}}.
> This will lead to the issue of "no such app", rather than correctly download 
> the event log.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to