[
https://issues.apache.org/jira/browse/MAPREDUCE-5558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14246826#comment-14246826
]
Junping Du commented on MAPREDUCE-5558:
---------------------------------------
Hive meet the similar problem when enable local mode and defaultFS is hdfs. The
simple fix now has problem with adding schema of "hdfs://" to classpath which
block most of mainstream cases for DistributedCache.
[[email protected]], I will reopen it and take it over if you don't mind.
> 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.2.0
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Blocker
> 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 and Vinod who helped debug this issue
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)