hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Pivovarov <apivova...@gmail.com>
Subject What's the diff btw setOutputKeyComparatorClass and setOutputValueGroupingComparator?
Date Sun, 27 Nov 2011 05:13:50 GMT
I tried to use one or another for secondary sort -- both options work fine
-- I get combined sorted result in reduce() iterator

Also I noticed that if I set both of them at the same time
then KeyComparatorClass.compare(O1, O2) never called,  hadoop calls
only ValueGroupingComparator.compare()

I run my tests on single node instillation.

Please help me understand the diff btw these two comparators.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message