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

NPE when submit Unmanaged application

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.7.1, 2.6.2
    • Fix Version/s: 2.8.0, 2.7.3, 2.6.4, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      As reported in the forum by Wen Lin (wlin@pivotal.io)

      [gpadmin@master simple-yarn-app]$ hadoop jar
      ~/hadoop/singlecluster/hadoop/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.6.0.3.0.0.0-120.jar
      Client --classpath ./target/simple-yarn-app-1.1.0.jar -cmd "java
      com.hortonworks.simpleyarnapp.ApplicationMaster /bin/date 2"

      error is coming as

      org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error in handling event type REGISTERED for applicationAttempt
      application_1450079798629_0001
      664 java.lang.NullPointerException
      665     at
      org.apache.hadoop.yarn.server.resourcemanager.metrics.SystemMetricsPublisher.appAttemptRegistered(SystemMetricsPublisher.java:143)
      666     at
      org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl$AMRegisteredTransition.transition(RMAppAttemptImpl.java:1365)
      667     at
      org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl$AMRegisteredTransition.transition(RMAppAttemptImpl.java:1341)
      668     at
      org.apache.hadoop.yarn.state.StateMachineFactory$SingleInternalArc.doTransition(StateMachineFactory.java:362)
      

        Attachments

        1. YARN-4452-branch-2.6.3.v1.001.patch
          6 kB
          Naganarasimha G R
        2. YARN-4452.v1.002.patch
          7 kB
          Naganarasimha G R
        3. YARN-4452.v1.001.patch
          4 kB
          Naganarasimha G R

          Issue Links

            Activity

              People

              • Assignee:
                Naganarasimha Naganarasimha G R
                Reporter:
                Naganarasimha Naganarasimha G R
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: