hadoop - Write Reducer output of a Mapreduce job to a single File -
i have written map-reduce job data in hbase. contains multiple mappers , single reducer. reducer method takes in data supplied mapper , analytic on it. after processing complete data in hbase wanted write data file in hdfs through single reducer. presently able write data hdfs every time new 1 unable figure how write final conclusion hdfs @ last.
so, if trying write final result single reducer hdfs, can try 1 of approaches below -
- use hadoop api filesystem's create() function write hdfs reducer.
- emit single key , value reducer after final calculation
- override reducers cleanup() function , point (1) there.
details on 3:
hope helps.
Comments
Post a Comment