private String createInputFile(String content) throws IOException {
    File f = File.createTempFile("input", "txt");
    FileWriter writer = new FileWriter(f);
    writer.write(content);
    writer.close();
    return f.getAbsolutePath();
  }
Create a file for map input

@return absolute path of the file.
@throws IOException if any error encountered
hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestMultiOutputFormat.java