[
https://issues.apache.org/jira/browse/MAPREDUCE-5782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13923635#comment-13923635
]
Bing Jiang commented on MAPREDUCE-5782:
---------------------------------------
Checking the code,
========org.apache.hadoop.examples.Sort========
URI partitionUri = new URI(partitionFile.toString() +
"#" + "_sortPartitioning");
DistributedCache.addCacheFile(partitionUri, conf);
which rename default name '_partition.lst' into '_sortPartitioning' when
container finishes localization.
So the problem can be tackled by add
-Dmapreduce.totalorderpartitioner.path=_sortPartitioning
or remove the setting of symlink here.
> Sort Use TableOrderPartitioner cannot find the path of _partition.lst int the
> container cwd.
> --------------------------------------------------------------------------------------------
>
> Key: MAPREDUCE-5782
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5782
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Affects Versions: 0.23.10
> Reporter: Bing Jiang
> Priority: Minor
>
> hadoop jar hadoop-mapreduce-examples.jar sort sort \
> -inFormat org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat \
> -outFormat org.apache.hadoop.mapreduce.lib.output.TextOutputFormat \
> -outKey org.apache.hadoop.io.Text \
> -outValue org.apache.hadoop.io.Text \
> -totalOrder 0.1 10000 10 \
> input output
> It prints cannot find the file _partition.lst in the container's cwd.
> Error: java.lang.IllegalArgumentException: Can't read partitions file
> at
> org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner.setConf(TotalOrderPartitioner.java:116)
> at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:70)
> at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:130)
> at
> org.apache.hadoop.mapred.MapTask$NewOutputCollector.<init>(MapTask.java:642)
> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:710)
> at
> org.apache.hadoop.mapred.MapTask.run(MapTask.java:333)
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:158)
--
This message was sent by Atlassian JIRA
(v6.2#6252)