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

API redirects from a standby resource manager drop query string parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.7.1
    • None
    • resourcemanager
    • None

    Description

      When making an API request with a query string to a secondary resource manager, the redirection doesn't contain the query string.
      Example:

      $ curl -v -H "Accept: application/json" "http://standby-server.mydomain:8088/ws/v1/cluster/apps?limit=10&user=someuser"
      * Hostname was NOT found in DNS cache
      *   Trying 192.168.0.123...
      * Connected to standby-server.mydomain (192.168.0.123) port 8088 (#0)
      > GET /ws/v1/cluster/apps?limit=10&user=someuser HTTP/1.1
      > User-Agent: curl/7.35.0
      > Host: standby-server.mydomain:8088
      > Accept: application/json
      > 
      < HTTP/1.1 307 TEMPORARY_REDIRECT
      < Cache-Control: no-cache
      < Expires: Fri, 22 Jan 2016 16:43:42 GMT
      < Date: Fri, 22 Jan 2016 16:43:42 GMT
      < Pragma: no-cache
      < Expires: Fri, 22 Jan 2016 16:43:42 GMT
      < Date: Fri, 22 Jan 2016 16:43:42 GMT
      < Pragma: no-cache
      < Content-Type: text/plain; charset=UTF-8
      < Location: http://active-server.mydomain:8088/ws/v1/cluster/apps
      < Content-Length: 105
      * Server Jetty(6.1.26.hwx) is not blacklisted
      < Server: Jetty(6.1.26.hwx)
      < 
      This is standby RM. The redirect url is: http://active-server.mydomain:8088/ws/v1/cluster/apps
      * Connection #0 to host standby-server.mydomain left intact
      

      This may depend on RMWebAppFilter generating the redirect path from request.getRequestURI(), which does not include query string parameters.

      Attachments

        1. YARN-4666.patch
          1 kB
          KWON BYUNGCHANG

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asterione Antonio Bellezza
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: