@Override
    protected void map(WritableComparable key, HCatRecord value,
               org.apache.hadoop.mapreduce.Mapper<WritableComparable, HCatRecord,
                 WritableComparable, HCatRecord>.Context context)
      throws IOException, InterruptedException {
      // just write out the value as-is
      context.write(new IntWritable(0), value);

    }
This is a map reduce test for testing hcat which goes against the "complex"
table and writes to "complex_nopart_empty_initially" table. It reads data from complex which
is an unpartitioned table and stores the data as-is into complex_empty_initially table
(which is also unpartitioned)

Usage: hadoop jar testudf.jar storecomplex <serveruri> <-libjars hive-hcat jar>  
 The hcat jar location should be specified as file://<full path to jar>
hcatalog/src/test/e2e/hcatalog/udfs/java/org/apache/hive/hcatalog/utils/StoreComplex.java