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

Error in spark rest api application info for job names contains spaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Not A Problem
    • 1.5.2
    • None
    • Spark Core

    Description

      When accessing spark rest api with application id to get job specific id status, a job with name containing whitespaces are being encoded to '%20' and therefore the rest api returns `no such app`.

      For example:

      http://spark.mysite.com:20888/proxy/application_1447676402999_1254/api/v1/applications/ returns:
      [ {
      "id" : "Spark shell",
      "name" : "Spark shell",
      "attempts" : [

      { "startTime" : "2016-01-28T09:20:58.526GMT", "endTime" : "1969-12-31T23:59:59.999GMT", "sparkUser" : "", "completed" : false }

      ]
      } ]

      and then when accessing:
      http://spark.mysite.com:20888/proxy/application_1447676402999_1254/api/v1/applications/Spark shell/
      the result returned is:
      unknown app: Spark%20shell

      Attachments

        Activity

          People

            Unassigned Unassigned
            avihoo Avihoo Mamka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: