Github user jerryshao commented on the pull request:
https://github.com/apache/spark/pull/10821#issuecomment-194612805
Hi @tgravescs , here in the original code:
```
val attemptId = client.getAttemptId().getAttemptId().toString()
```
This will get the attempt id as "1" or "2"...
And finally the history server url is:
`xxx/history/application_1455663314062_13672/1`. In history server this "1"
will be parsed as attempt id to find out the cached event log. But since here
the attempt id is not a valid one, so this url will be failed to access.
Actually history server's expected attempt id is:
appattempt_1455663314062_13672_000001, and the right url for accessing history
server should be:
`xxx/history/application_1455663314062_13672/appattempt_1455663314062_13672_000001`.
So here I change to `client.getAttemptId().toString()` to get the full
attempt id. That's the point of this fix.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]