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

AHS REST API can return NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.9.0, 3.0.0-beta1, 3.1.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      ApplicationHistoryService REST Api returns NullPointerException

      [prabhu@prabhu2 root]$ curl --negotiate -u: 'http://<ATS IP>:8188/ws/v1/applicationhistory/apps?queue=test'
      {"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException"}
      

      TimelineServer logs shows below.

      2017-08-17 17:54:54,128 WARN  webapp.GenericExceptionHandler (GenericExceptionHandler.java:toResponse(98)) - INTERNAL_SERVER_ERROR
      java.lang.NullPointerException
              at org.apache.hadoop.yarn.server.webapp.WebServices.getApps(WebServices.java:191)
              at org.apache.hadoop.yarn.server.applicationhistoryservice.webapp.AHSWebServices.getApps(AHSWebServices.java:96)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
      

        Attachments

        1. YARN-7118.01.patch
          7 kB
          Billie Rinaldi
        2. YARN-7118-branch-2.01.patch
          7 kB
          Billie Rinaldi

          Activity

            People

            • Assignee:
              billie.rinaldi Billie Rinaldi
              Reporter:
              Prabhu Joseph Prabhu Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: