Hadoop mapreduce java program on accident flights

Our HadoopTpoint App is now available in google play store,please rate and comment it in play store : W3Schools

Hadoop mapreduce java program on accident flights

Finding how many passengers are traveled in an accident flights based on total fatal injuries total major injuries total minor injuries and total un injures  passengers,count the all four category passengers  in every flight and the total  four category passengers are total number of passengers in a flight.

Input

Click Here for Input file —–> Accident-Flights.txt

Hadoop mapreduce java program on accident flights

Hadoop mapreduce java program on accident flights

Hadoop mapreduce java program

In the above text file totally we have six columns that are flight event id,accident type,total fatal injuries,total major injuries,total minor injuries,city and total un injuries passengers.Here we need only flight event id  and sum of  total fatal injuries,total major injuries,total minor injuries and total un injuries passengers .

Here is The Program of Accident Flights

Hadoop Mapreduce java program

Output

Ax123wa 44
Ax123wb 45
Ax123wc 50
Ax123wd 53
Ax123we 57

The above code has written in hadoop mapreduce java program 


Speak Your Mind

*