title: PIG doesn't read my custom InputFormat
body: <p>I have a custom <code>MyInputFormat</code> that suppose to deal with record boundary problem for <a href="https://stackoverflow.com/questions/13871134/pig-udf-handle-multi-lined-tuple-split-into-different-mapper">multi-lined inputs</a>. But when I put the <code>MyInputFormat</code> into my UDF load function. As follow:</p>
  
  <pre><code>import org.apache.hadoop.mapreduce.InputFormat;
  public class EccUDFLogLoader extends LoadFunc {
      @Override
      public InputFormat getInputFormat() {
          System.out.println("I am in getInputFormat function");
          return new MyInputFormat();
      }
  }
  
  import org.apache.hadoop.mapreduce.lib.input.TextInputFormat;
  public class MyInputFormat extends TextInputFormat {
      public RecordReader createRecordReader(InputSplit inputSplit, JobConf jobConf) throws IOException {
          System.out.prinln("I am in createRecordReader");
          //MyRecordReader suppose to handle record boundary
          return new MyRecordReader((FileSplit)inputSplit, jobConf);
      }
  }
  </code></pre>
  
  <p>For each mapper, it print out <code>I am in getInputFormat function</code> but not <code>I am in createRecordReader</code>. I am wondering if anyone can provide a hint on how to hoop up my costome MyInputFormat to PIG's UDF loader? Much Thanks. </p>
  
  <p>I am using PIG on Amazon EMR.</p>