title: To find the greatest integer value in hadoop (using java programming)
body: <p>I have started working in hadoop recently and I have just learned some basic theoretical knowledge about it. I am trying to solve a task where the input shall be be given in a text file, for example input.txt (1 10 37 5 4 98 100 etc)</p>
  
  <p>I need to find the largest integer in the given inputs (ie. integer type). I am trying to pass the inputs in the arraylist, so that I can compare the first integer with the rest of all the integers (using for-loop). </p>
  
  <p>The program should read the input file say some random numbers 100 20 40 90 70, then the output should display as 100. I have just tried to modify the code with wordcount example in map and reduce function. But since I am new to start coding in hadoop I could not figure it out where I am wrong.</p>
  
  <p>1)Is it possible to find the solution in this way? if yes, I could not create an arraylist here in hadoop and need some tips :-) </p>
  
  <p>2)Can we print only 'key' instead of key-value pairs? If so please help me. I tried to code in reduce function for not printing it but I am getting some errors.</p>
  
  <p>Please guide me with some tips by which I can move forward. Thank you</p>