Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-10571

Spark REST / JSON API mixes up application names and application ids

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.5.0
    • None
    • Web UI
    • None

    Description

      The REST API documentation (https://spark.apache.org/docs/1.5.0/monitoring.html#rest-api) claims that the URLs incorporate application ids, but it appears that the actual implementation uses application names.

      For instance, when I browse to http://localhost:4041/api/v1/applications/ locally with a 1.5.0 spark-shell:

      [ {
        "id" : "Spark shell",
        "name" : "Spark shell",
        "attempts" : [ {
          "startTime" : "2015-09-11T19:58:26.673GMT",
          "endTime" : "1969-12-31T23:59:59.999GMT",
          "sparkUser" : "",
          "completed" : false
        } ]
      } ]
      

      However, in spark-shell:

      scala> sc.applicationId
      res2: String = local-1442001507533
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              joshrosen Josh Rosen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: