java - Hadoop produces only one output from reducer -


although know hadoop not used image processing, proof of concept, have been trying implement image processing using hadoop. in course of doing so, have implemented sobel edge detection algorithm use mapreduce model , run under hadoop.

my program supposed take folder hdfs input , process files in folder , write output hdfs. however, considering single file input folder , writing single file output.

here source code of files https://gist.github.com/ardahal/f0046e50e04fadc28a96

this going semi-automatic better nothing. let say, input directory is: /user/hadoop/inpur_dir/input_i.txt

path pth = "/user/hadoop/inpur_dir/input_"  for(int = 0; < number_of_image; i++){     fileinputformat.addinputpath(job, pth.suffix(i+".txt") ); } 

and

here multiple output. better proposed before


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -