Github user jerryshao commented on the issue:
https://github.com/apache/spark/pull/17795
@ajbozarth the key point is that several spark applications doesn't have
attempt id. It's not related to one attempt or two, for example:
```
{
"id" : "application_1467878474947_0048",
"name" : "Spark shell",
"attempts" : [ {
"startTime" : "2016-12-30T03:22:47.300GMT",
"endTime" : "2016-12-30T03:33:42.460GMT",
"lastUpdated" : "2017-04-27T14:02:35.282GMT",
"duration" : 655160,
"sparkUser" : "spark",
"completed" : true,
"startTimeEpoch" : 1483068167300,
"endTimeEpoch" : 1483068822460,
"lastUpdatedEpoch" : 1493301755282
} ]
}
```
This app doesn't have attempt id, so using
`api/v1/applications/<application_1467878474947_0048>/1/logs` to get log will
be failed in
[here](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/status/api/v1/ApiRootResource.scala#L304),
I think this related to my recent changes, you could verify it on latest
master with "spark.history.ui.acls.enable".
---
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]