hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Wen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-4452) NPE when submit Unmanaged application
Date Mon, 14 Dec 2015 14:17:46 GMT

    [ https://issues.apache.org/jira/browse/YARN-4452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15056023#comment-15056023
] 

Lin Wen commented on YARN-4452:
-------------------------------

Here is how to reproduce it.
1. On Hadoop Yarn, timeline server is started/enabled and "yarn.resourcemanager.system-metrics-publisher.enabled"
is enable in yarn-site.xml.
    <property>
 <description>The hostname of the timeline server web application.</description>
  <name>yarn.timeline-service.hostname</name>
   <value>master</value>
   </property>
<property>
 <description>Enable or disable the GHS</description>
  <name>yarn.resourcemanager.system-metrics-publisher.enabled</name>
   <value>true</value>
   </property>
<property>
 <description>Enable or disable the Timeline Server.</description>
  <name>yarn.timeline-service.enabled</name>
   <value>true</value>
   </property>
<property>
 <description>Store class name for timeline store</description>
  <name>yarn.timeline-service.store-class</name>
   <value>org.apache.hadoop.yarn.server.timeline.LeveldbTimelineStore</value>
   </property>
<property>
 <description>Store file name for leveldb timeline store</description>
  <name>yarn.timeline-service.leveldb-timeline-store.path</name>
   <value>/data/1/yarn/logs/timeline</value>
   </property>
2. Use hortonworks' simple-yarn-app(https://github.com/hortonworks/simple-yarn-app), and start
it in "unmanaged AM" mode.
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"


> NPE when submit Unmanaged application
> -------------------------------------
>
>                 Key: YARN-4452
>                 URL: https://issues.apache.org/jira/browse/YARN-4452
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.7.1
>            Reporter: Naganarasimha G R
>            Assignee: Naganarasimha G R
>            Priority: Critical
>
> As reported in the forum by Wen Lin (wlin@pivotal.io)
> {quote}
> [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"
> {quote}
> error is coming as 
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message