John Zhuge created HDFS-11202:
---------------------------------

             Summary: httpfs.sh will not run when temp dir does not exist
                 Key: HDFS-11202
                 URL: https://issues.apache.org/jira/browse/HDFS-11202
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: httpfs
            Reporter: John Zhuge
            Assignee: John Zhuge
            Priority: Minor


>From {{httpfs-localhost.2016-12-04.log}}:
{noformat}
INFO: ERROR: S01: Dir 
[/Users/jzhuge/hadoop2/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/temp] 
does not exist
Dec 04, 2016 7:04:46 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of 
class org.apache.hadoop.fs.http.server.HttpFSServerWebApp
java.lang.RuntimeException: org.apache.hadoop.lib.server.ServerException: S01: 
Dir 
[/Users/jzhuge/hadoop2/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/temp] 
does not exist
        at 
org.apache.hadoop.lib.servlet.ServerWebApp.contextInitialized(ServerWebApp.java:161)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4276)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4779)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:803)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:780)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)
        at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1080)
        at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1003)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:507)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:325)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1069)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:761)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.apache.hadoop.lib.server.ServerException: S01: Dir 
[/Users/jzhuge/hadoop2/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/temp] 
does not exist
        at org.apache.hadoop.lib.server.Server.verifyDir(Server.java:400)
        at org.apache.hadoop.lib.server.Server.init(Server.java:349)
        at 
org.apache.hadoop.fs.http.server.HttpFSServerWebApp.init(HttpFSServerWebApp.java:100)
        at 
org.apache.hadoop.lib.servlet.ServerWebApp.contextInitialized(ServerWebApp.java:158)
        ... 24 more
{noformat}
Create the temp dir manually, httpfs.sh works.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to