title: Oozie running own MapReduce workflow issue
body: <p>Not sure if anyone has run into this issue. I am trying to use oozie for running a simple MapReduce job that searches for a string value in HDFS location and if it finds it it outputs it.  When I submit the job, oozie successfully executes but I don't get the expected output.  It seems that my mapper never was invoked since it did not filter out any of the expected results. The output file just has all the input records.  I have put System.out.printlns all over the code and I don't see them in task log files.  I have checked the config, and job results and I don't see a counter that I have added nor any of the System.outs.  The job config though states that my mapper class was executed. This does not make any sense to me. Below is a snippet of my Mapper code:</p>
  
  <pre><code>private static final String SEARCH_FOR_STRING = "poc.search.string";
  
  enum SearchCounters {
      NUMBER_OF_MATCHES;
  }
  
  
  private NullWritable nullValue = NullWritable.get();
  private Text outputLine = new Text();
  private String searchString = null;
  
  @Override
  protected void setup(Context context) {
      searchString = context.getConfiguration().get(SEARCH_FOR_STRING);
      System.out.println("Searching for: [" + searchString + "]");
      context.getCounter(SearchCounters.NUMBER_OF_MATCHES).increment(0);
  }
  
  @Override
  public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException
  {   
      String inputLine = value.toString();
      System.out.println("key: " + key.toString() + "value: " + inputLine 
              + " searchString: [" + searchString + "]");
  
      if(inputLine.contains(searchString)) {
          context.getCounter(SearchCounters.NUMBER_OF_MATCHES).increment(1);
          outputLine.set(inputLine);
          context.write(outputLine, nullValue);
      }
  }
  </code></pre>
  
  <p>And here is my workflow.xml</p>
  
  <pre><code>&lt;workflow-app xmlns="uri:oozie:workflow:0.1" name="search-wf"&gt;
      &lt;start to="mr-node"/&gt;
      &lt;action name="mr-node"&gt;
          &lt;map-reduce&gt;
              &lt;job-tracker&gt;${jobTracker}&lt;/job-tracker&gt;
              &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
              &lt;prepare&gt;
                  &lt;delete path="${nameNode}/user/${wf:user()}/${outputDir}"/&gt;
              &lt;/prepare&gt;
              &lt;configuration&gt;
                  &lt;property&gt;
                      &lt;name&gt;mapred.job.queue.name&lt;/name&gt;
                      &lt;value&gt;${queueName}&lt;/value&gt;
                  &lt;/property&gt;
                  &lt;property&gt;
                      &lt;name&gt;mapreduce.map.class&lt;/name&gt;
                      &lt;value&gt;poc.SearchForValueMapper&lt;/value&gt;
                  &lt;/property&gt;
                  &lt;property&gt;
                      &lt;name&gt;mapreduce.reducer.class&lt;/name&gt;
                      &lt;value&gt;poc.SearchForValueReducer&lt;/value&gt;
                  &lt;/property&gt;
                  &lt;property&gt;
                      &lt;name&gt;mapred.map.tasks&lt;/name&gt;
                      &lt;value&gt;100&lt;/value&gt;
                  &lt;/property&gt;
                  &lt;property&gt;
                      &lt;name&gt;mapred.input.dir&lt;/name&gt;
                      &lt;value&gt;/user/${wf:user()}/${inputDir}&lt;/value&gt;
                  &lt;/property&gt;
                  &lt;property&gt;
                      &lt;name&gt;com.disney.search.string&lt;/name&gt;
                      &lt;value&gt;${searchString}&lt;/value&gt;
                  &lt;/property&gt;
                  &lt;property&gt;
                      &lt;name&gt;mapred.output.dir&lt;/name&gt;
                      &lt;value&gt;/user/${wf:user()}/${outputDir}&lt;/value&gt;
                  &lt;/property&gt;
              &lt;/configuration&gt;
          &lt;/map-reduce&gt;
          &lt;ok to="end"/&gt;
          &lt;error to="fail"/&gt;
      &lt;/action&gt;
      &lt;kill name="fail"&gt;
          &lt;message&gt;Map/Reduce failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&lt;/message&gt;
      &lt;/kill&gt;
      &lt;end name="end"/&gt;
  &lt;/workflow-app&gt;
  </code></pre>