Github user jerryshao commented on the pull request:

    https://github.com/apache/spark/pull/10821#issuecomment-190108163
  
    /1, /2 is not actually an attempt id, so how to convert this to an valid 
attempt id?
    
    In the code of history server:
    
    ```scala
     private val loaderServlet = new HttpServlet {
        protected override def doGet(req: HttpServletRequest, res: 
HttpServletResponse): Unit = {
          // Parse the URI created by getAttemptURI(). It contains an app ID 
and an optional
          // attempt ID (separated by a slash).
          val parts = Option(req.getPathInfo()).getOrElse("").split("/")
          if (parts.length < 2) {
            res.sendError(HttpServletResponse.SC_BAD_REQUEST,
              s"Unexpected path info in request (URI = ${req.getRequestURI()}")
            return
          }
    
          val appId = parts(1)
          val attemptId = if (parts.length >= 3) Some(parts(2)) else None
    ```
    
    The GET url will be split into two fields, `appId` and `attemptId`, so if 
the URL you mentioned is accessible, `attemptId` will be 1 or 2, am not sure 
how to use this to get the right event log?
    



---
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]

Reply via email to