Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-3702

internal server error trying access application master via proxy with filter enabled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.1
    • Component/s: mrv2
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      I had a hadoop.http.filter.initializers in place to do user authentication, but was purposely trying to let it bypass authentication on certain pages. One of those was the proxy and the application master main page. When I then tried to go to the application master through the proxy it throws an internal server error:

      Problem accessing /mapreduce. Reason:

      INTERNAL_SERVER_ERROR
      Caused by:

      java.lang.NullPointerException
      at org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter.doFilter(AmIpFilter.java:100)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
      at org.apache.hadoop.http.HttpServer$QuotingInputFilter.doFilter(HttpServer.java:940)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)

      It looks like the problem is that AmIpFilter doesn't check for null returned from httpReq.getCookies()

      1. MAPREDUCE-3702.patch
        6 kB
        Thomas Graves
      2. MAPREDUCE-3702.patch
        1 kB
        Thomas Graves

        Activity

        Thomas Graves created issue -
        Thomas Graves made changes -
        Field Original Value New Value
        Attachment MAPREDUCE-3702.patch [ 12511267 ]
        Thomas Graves made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Thomas Graves made changes -
        Attachment MAPREDUCE-3702.patch [ 12511278 ]
        Mahadev konar made changes -
        Fix Version/s 0.23.1 [ 12318883 ]
        Mahadev konar made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Thomas Graves
            Reporter:
            Thomas Graves
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development