hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chao Sun (Jira)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-17327) NPE when starting MiniYARNCluster from hadoop-client-minicluster
Date Sat, 24 Oct 2020 00:17:00 GMT
Chao Sun created HADOOP-17327:
---------------------------------

             Summary: NPE when starting MiniYARNCluster from hadoop-client-minicluster
                 Key: HADOOP-17327
                 URL: https://issues.apache.org/jira/browse/HADOOP-17327
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 3.3.0
            Reporter: Chao Sun


When starting MiniYARNCluster one could get the following exception:
{code}
  java.lang.NullPointerException:
  at org.apache.hadoop.yarn.server.nodemanager.webapp.WebServer.serviceStart(WebServer.java:72)
  at org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
  at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:122)
  at org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
  at org.apache.hadoop.yarn.server.MiniYARNCluster$NodeManagerWrapper.serviceStart(MiniYARNCluster.java:616)
  at org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
  at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:122)
  at org.apache.hadoop.yarn.server.MiniYARNCluster.serviceStart(MiniYARNCluster.java:327)
  at org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
  at org.apache.spark.deploy.yarn.BaseYarnClusterSuite.beforeAll(BaseYarnClusterSuite.scala:96)
  ...
{code}

Looking into the code, this is because we explicitly exclude those resource files under {{hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/resources/TERMINAL}},
and therefore this code in {{WebServer}} fails with NPE:
{code}
    terminalParams.put("resourceBase", WebServer.class
        .getClassLoader().getResource("TERMINAL").toExternalForm());
{code}

Those who use {{hadoop-minicluster}} may not be affected because they'll also need {{hadoop-yarn-server-nodemanager}}
as an extra dependency, which includes the resource files. However {{hadoop-client-minicluster}}
is supposed to be a single jar that includes both {{MiniYARNCluster}} as well as classes such
as {{ResourceManager}} and {{NodeManager}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message