[ 
https://issues.apache.org/jira/browse/HADOOP-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469306
 ] 

Hadoop QA commented on HADOOP-309:
----------------------------------

-1, because the patch command could not apply the latest attachment 
(http://issues.apache.org) as a patch to trunk revision r502030. Please note 
that this message is automatically generated and may represent a problem with 
the automation system and not the patch.

> NullPointerException in StatusHttpServer
> ----------------------------------------
>
>                 Key: HADOOP-309
>                 URL: https://issues.apache.org/jira/browse/HADOOP-309
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.10.1
>            Reporter: Konstantin Shvachko
>         Assigned To: navychen
>            Priority: Minor
>             Fix For: 0.10.1
>
>         Attachments: 309.patch
>
>
> The NullPointerException happens in the constructor of StatusHttpServer 
> because the System property "hadoop.log.dir" is undefined.
> I see it trying to start the Namenode directly without using any scripts.
> Exception in thread "main" java.lang.NullPointerException
>       at org.mortbay.util.Resource.newResource(Resource.java:99)
>       at 
> org.mortbay.http.ResourceCache.setResourceBase(ResourceCache.java:140)
>       at org.mortbay.http.HttpContext.setResourceBase(HttpContext.java:2207)
>       at 
> org.apache.hadoop.mapred.StatusHttpServer.<init>(StatusHttpServer.java:66)
>       at org.apache.hadoop.dfs.FSNamesystem.<init>(FSNamesystem.java:172)
>       at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:97)
>       at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:88)
>       at org.apache.hadoop.dfs.NameNode.main(NameNode.java:496)
> In general I think the sources should not rely on the system properties and 
> environment variables defined in hadoop scripts.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to