the speed of the last reduce is very slow. the other reduce the number of my map and reduce is follows the number of map is 18784, the number of reduce is 1500 the average of time for each reduce about 1'26, but the last reduce is about 2h i try to change the number of reduce and reduce the size of job. but nothing changed
the last reduce as for my partition
public int getPartition(Object key, Object value, int numPartitions) {
// TODO Auto-generated method stub
String keyStr = key.toString();
int partId= String.valueOf(keyStr.hashCode()).hashCode();
partId = Math.abs(partId % numPartitions);
partId = Math.max(partId, 0);
return partId;
//return (key.hashCode() & Integer.MAX_VALUE) % numPartitions;
}