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 "dhruba borthakur (JIRA)" <ji...@apache.org> on 2007/05/02 01:42:15 UTC

[jira] Updated: (HADOOP-575) StatusHttpServer is failing if trying to use hadoop as a standalone jar

     [ https://issues.apache.org/jira/browse/HADOOP-575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dhruba borthakur updated HADOOP-575:
------------------------------------

    Priority: Minor  (was: Blocker)

I think this issue is not a "blocker".

> StatusHttpServer is failing if trying to use hadoop as a standalone jar
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-575
>                 URL: https://issues.apache.org/jira/browse/HADOOP-575
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.6.2
>         Environment: WinXP
>            Reporter: Paul Malolepsy
>         Assigned To: Sameer Paranjpye
>            Priority: Minor
>
> I just recently tried to upgrade from hadoop .2 and I am getting an error during the startup of StatusHttpServer.  I did set my hadoop.log.dir, but there are still errros.  Here is my stack below.
> java.io.FileNotFoundException: E:\projects\marzen\file:\E:\projects\marzen\web\WEB-INF\lib\hadoop.jar!\webapps\datanode
> 	at org.mortbay.jetty.servlet.WebApplicationContext.resolveWebApp(WebApplicationContext.java:266)
> 	at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:449)
> 	at org.mortbay.util.Container.start(Container.java:72)
> 	at org.mortbay.http.HttpServer.doStart(HttpServer.java:753)
> 	at org.mortbay.util.Container.start(Container.java:72)
> 	at org.apache.hadoop.mapred.StatusHttpServer.start(StatusHttpServer.java:177)
> 	at org.apache.hadoop.dfs.DataNode.<init>(DataNode.java:167)
> 	at org.apache.hadoop.dfs.DataNode.makeInstance(DataNode.java:1069)
> 	at org.apache.hadoop.dfs.DataNode.run(DataNode.java:1003)
> 	...rest of stack removed...
> The root of the issues seems to be in StatusHttpServer.getWebAppsPath().  Its possible that I am using hadoop differently than most people (as a standalone jar in another web app), but I'm not sure how this function could ever work if you were just using hadoop packaged as a standalone jar.  Its trying to get the webapps path using this line: 
> URL url = StatusHttpServer.class.getClassLoader().getResource("webapps");
> Which is returning the following path.  This is a path within the hadoop jar:   file:\E:\projects\marzen\web\WEB-INF\lib\hadoop.jar!\webapps
> It then tries to return the canonical path of that wich returns this path:  E:\projects\marzen\file:\E:\projects\marzen\web\WEB-INF\lib\hadoop.jar!\webapps
> I don't even think that is a valid path, and the Jetty server certainly doesn't like it.  Is there something I'm doing wrong?  Is it possible nobody else is using hadoop as a standalone jar?  Is this a windows specific bug?  

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