Home > Software > BIGDATA > HADOOP
Interview Questions   Tutorials   Discussions   Programs   Videos   Discussion   

HADOOP - How we can process max value of every 2 columns out of 10 columns by using map reduce job?




1069
views
asked vijju January 21, 2015 07:23 PM  

How we can process max value of every 2 columns out of 10 columns by using map reduce job?


           

2 Answers



 
answered By makubex   0  

Hi,

I'm not clear on the question. Let's say that the input data set(comma delimited columns) is as below, 5,1,12,21,4,15,51,6,71,51 4,8,9,12,21,66,71,8,75,0 4,81,9,12,91,66,71,8,75,10

How should the expected output be?

Regards, makubeX

flag   
   add comment

 
answered By   0  

Hi,

for two values for total line(record). do the sorting for values arranged (high to low) on the record, then get the fist two values.

as per ur requirement using for loop get two columns value then compare it. then send to output.

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert