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

John Zhuge resolved HDFS-11176.
-------------------------------
       Resolution: Duplicate
    Fix Version/s: 3.0.0-alpha4

Fixed by HDFS-10860: 
https://github.com/apache/hadoop/blob/69b23632c48297ac844c58fd3e21aad10c093cc8/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/libexec/shellprofile.d/hadoop-httpfs.sh#L65.

> httpfs.sh run fails due to missing temp dir
> -------------------------------------------
>
>                 Key: HDFS-11176
>                 URL: https://issues.apache.org/jira/browse/HDFS-11176
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: httpfs
>    Affects Versions: 3.0.0-alpha2
>            Reporter: John Zhuge
>            Assignee: John Zhuge
>            Priority: Minor
>             Fix For: 3.0.0-alpha4
>
>
> Got this error when running {{httpfs.sh run}} in Pseudo-Distributed mode:
> {noformat}
> Nov 25, 2016 1:27:33 PM org.apache.catalina.core.ApplicationContext log
> INFO: ERROR: S01: Dir 
> [/Users/jzhuge/hadoop2/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/temp] 
> does not exist
> Nov 25, 2016 1:27:33 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}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to