You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2006/06/20 03:39:30 UTC

[jira] Commented: (HADOOP-309) NullPointerException in StatusHttpServer

    [ http://issues.apache.org/jira/browse/HADOOP-309?page=comments#action_12416831 ] 

Konstantin Shvachko commented on HADOOP-309:
--------------------------------------------

Even if I get through this I get yet another NullPointerException.
Now because webapps resource is not defined.

Exception in thread "main" java.lang.NullPointerException
	at org.apache.hadoop.mapred.StatusHttpServer.getWebAppsPath(StatusHttpServer.java:108)
	at org.apache.hadoop.mapred.StatusHttpServer.<init>(StatusHttpServer.java:71)
	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)

> NullPointerException in StatusHttpServer
> ----------------------------------------
>
>          Key: HADOOP-309
>          URL: http://issues.apache.org/jira/browse/HADOOP-309
>      Project: Hadoop
>         Type: Bug

>   Components: dfs, mapred
>     Versions: 0.3.2
>     Reporter: Konstantin Shvachko

>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira