You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Omkar Vinit Joshi (JIRA)" <ji...@apache.org> on 2013/10/03 23:06:43 UTC

[jira] [Commented] (MAPREDUCE-5558) Scheme for local file is lost when submitting mapreduce job using mapreduce API

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

Omkar Vinit Joshi commented on MAPREDUCE-5558:
----------------------------------------------

To give some idea.. the situation is like this
* JobConf-> "fs.defaultFS" points to hdfs.
* The files added are from different location. Few are from "file://" where as few are from "hdfs://".
Therefore in path parsing anywhere if we loose scheme/authority then we take the one from conf. 

> Scheme for local file is lost when submitting mapreduce job using mapreduce API
> -------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-5558
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5558
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 2.1.0-beta, 2.1.1-beta, 2.1.2-beta
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Critical
>         Attachments: mapreduce-5558.patch
>
>
> HBase snapshot export adds dependent jars (local files) through "tmpjars" config entry.
> When debugging HBASE-9687, we found that scheme for local file (file:/) is lost by DistributedCache.addFileToClassPath() call in JobSubmitter.
> The root cause of this problem is that we are somehow losing "file:/" from the uri. In the earlier code we were creating new Path object (new Path (newPath.toUri().getPath()) ) where as part of newPath.toUri().getPath() call we are losing the authority and scheme which are passed in.
> Thanks to Omkar who helped debug this issue



--
This message was sent by Atlassian JIRA
(v6.1#6144)