Hadoop - Globally sort mean and when is happen in MapReduce
问题 I am using Hadoop streaming JAR for WordCount , I want to know how can I get Globally Sort , according to answer on another question in SO, I found that when we use of just one reducer we can get Globally sort but in my result with numReduceTasks=1 (one reducer) it is not sort. For example, my input to mapper is: file 1: A long time ago in a galaxy far far away file 2: Another episode for Star Wars Result is: A 1 a 1 Star 1 ago 1 for 1 far 2 away 1 time 1 Wars 1 long 1 Another 1 in 1 episode