Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce, mail # user - Sorting Values sent to reducer NOT based on KEY (Depending on part of VALUE)


Copy link to this message
-
Sorting Values sent to reducer NOT based on KEY (Depending on part of VALUE)
Vikas Jadhav 2013-04-23, 05:44
Hi

how to sort value in hadoop using standard sorting algorithm of hadoop (
i.e sorting facility provided by hadoop)

Requirement:

1) Values shoulde be sorted depending on some part of value

For Exam     (KEY,VALUE)

 (0,"BC,4,XY')
 (1,"DC,1,PQ")
 (2,"EF,0,MN")

Sorted sequence @ reduce reached should be

(2,"EF,0,MN")
(1,"DC,1,PQ")
(0,"BC,4,XY')

Here sorted depending on second attribute postion in value.

Thanks

-- **
*

  Regards,
*
*   Vikas *