TBLPROPERTIES ('RETENTION_PLATINUM'='90')
*/
public class WritingTool extends Configured implements Tool {
@Override
public int run(String[] args) throws Exception {
HiveOutputDescription outputDesc = new HiveOutputDescription();
outputDesc.setDbName("default");
outputDesc.setTableName("hive_io_test");
Map<String, String> partitionValues = ImmutableMap.of("ds", "2013-04-01");
outputDesc.setPartitionValues(partitionValues);
HiveApiOutputFormat.initProfile(getConf(), outputDesc, SAMPLE_PROFILE_ID);
Job job = new Job(getConf(), "hive-io-writing");
job.setMapperClass(SampleMapper.class);
job.setInputFormatClass(SampleInputFormat.class);