Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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)
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 *
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB