207208209210211212213214
@Override public InputFormat getInputFormat() { if(loadLocation.endsWith(".bz2") || loadLocation.endsWith(".bz")) { return new Bzip2TextInputFormat(); } else { return new PigTextInputFormat(); } }
201202203204205206207208
2015201620172018201920202021
FileInputFormat.setInputPaths(job, location); } @Override public InputFormat getInputFormat() throws IOException { return new PigTextInputFormat(); }