Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6615

AmIpFilter drops query parameters on redirect

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0, 2.7.3, 2.6.5, 3.0.0-alpha2
    • 2.9.0, 2.7.4, 2.6.6, 3.0.0-alpha4, 2.8.2
    • None
    • None
    • Reviewed

    Description

      When an AM web request is redirected to the RM the query parameters are dropped from the web request.

      This happens for Spark as described in SPARK-20772.
      The repro steps are:

      • Start up the spark-shell in yarn mode and run a job
      • Try to access the job details through http://<fqdn>:4040/jobs/job?id=0
      • A HTTP ERROR 400 is thrown (requirement failed: missing id parameter)

      This works fine in local or standalone mode, but does not work on Yarn where the query parameter is dropped. If the UI filter org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter is removed from the config which shows that the problem is in the filter

      Attachments

        1. YARN-6615.1.patch
          3 kB
          wilfreds#1
        2. YARN-6615-branch-2.8.1.patch
          3 kB
          wilfreds#1
        3. YARN-6615-branch-2.6.1.patch
          3 kB
          wilfreds#1
        4. YARN-6615-branch-2.6.2.patch
          3 kB
          wilfreds#1
        5. YARN-6615-branch-2.6.3.patch
          4 kB
          wilfreds#1

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            wilfreds Wilfred Spiegelenburg
            wilfreds Wilfred Spiegelenburg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment