hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-6044) Fully qualified intermediate done directory will break per-user dir creation on Windows
Date Sat, 23 Aug 2014 14:08:12 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-6044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14108005#comment-14108005
] 

Hudson commented on MAPREDUCE-6044:
-----------------------------------

SUCCESS: Integrated in Hadoop-Hdfs-trunk #1846 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1846/])
MAPREDUCE-6044. Fully qualified intermediate done dir path breaks per-user dir creation on
Windows. Contributed by Zhijie Shen. (zjshen: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1619863)
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/jobhistory/TestJobHistoryEventHandler.java
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapreduce/v2/jobhistory/JobHistoryUtils.java


> Fully qualified intermediate done directory will break per-user dir creation on Windows
> ---------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6044
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6044
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: jobhistoryserver
>    Affects Versions: 3.0.0, 2.6.0
>         Environment: Windows
>            Reporter: Zhijie Shen
>            Assignee: Zhijie Shen
>             Fix For: 2.6.0
>
>         Attachments: MAPREDUCE-6044.1.patch
>
>
> After MAPREDUCE-6032, the string of the intermediate done dir will be a fully qualified
path.
> The following code in JobHistoryUtils tries to concat this path and user name to create
a per-user dir path, using File.separator as the seperator (on Windows, it is "\").
> {code}
>   public static String getHistoryIntermediateDoneDirForUser(Configuration conf) throws
IOException {
>     return getConfiguredHistoryIntermediateDoneDirPrefix(conf) + File.separator
>         + UserGroupInformation.getCurrentUser().getShortUserName();
>   }
> {code}
> Therefore, an intermediate done dir for user will become "hdfs://localhost:9201/mapred/history/done_intermediate\user".
With the scheme available in the path, Path class will not replace "\" with "/", and finally
FS cannot handle this path correctly: it will take "done_intermediateuser" as a single directory
name.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message