/** * Set the schema for the data being written out to the partition. The * table schema is used by default for the partition if this is not called. * @param conf the job Configuration object * @param schema the schema for the data * @throws IOException */ public static void setSchema(final Configuration conf, final HCatSchema schema) throws IOException { OutputJobInfo jobInfo = getJobInfo(conf); Map<String, String> partMap = jobInfo.getPartitionValues(); setPartDetails(jobInfo, schema, partMap); conf.set(HCatConstants.HCAT_KEY_OUTPUT_INFO, HCatUtil.serialize(jobInfo)); }
/** * Set the schema for the data being written out to the partition. The * table schema is used by default for the partition if this is not called. * @param conf the job Configuration object * @param schema the schema for the data * @throws IOException */ public static void setSchema(final Configuration conf, final HCatSchema schema) throws IOException { OutputJobInfo jobInfo = getJobInfo(conf); Map<String, String> partMap = jobInfo.getPartitionValues(); setPartDetails(jobInfo, schema, partMap); conf.set(HCatConstants.HCAT_KEY_OUTPUT_INFO, HCatUtil.serialize(jobInfo)); }
/** * Set the schema for the data being written out to the partition. The * table schema is used by default for the partition if this is not called. * @param conf the job Configuration object * @param schema the schema for the data * @throws IOException */ public static void setSchema(final Configuration conf, final HCatSchema schema) throws IOException { OutputJobInfo jobInfo = getJobInfo(conf); Map<String, String> partMap = jobInfo.getPartitionValues(); setPartDetails(jobInfo, schema, partMap); conf.set(HCatConstants.HCAT_KEY_OUTPUT_INFO, HCatUtil.serialize(jobInfo)); }
/** * Set the schema for the data being written out to the partition. The * table schema is used by default for the partition if this is not called. * @param conf the job Configuration object * @param schema the schema for the data * @throws IOException */ public static void setSchema(final Configuration conf, final HCatSchema schema) throws IOException { OutputJobInfo jobInfo = getJobInfo(conf); Map<String, String> partMap = jobInfo.getPartitionValues(); setPartDetails(jobInfo, schema, partMap); conf.set(HCatConstants.HCAT_KEY_OUTPUT_INFO, HCatUtil.serialize(jobInfo)); }
/** * Set the schema for the data being written out to the partition. The * table schema is used by default for the partition if this is not called. * @param conf the job Configuration object * @param schema the schema for the data * @throws IOException */ public static void setSchema(final Configuration conf, final HCatSchema schema) throws IOException { OutputJobInfo jobInfo = getJobInfo(conf); Map<String, String> partMap = jobInfo.getPartitionValues(); setPartDetails(jobInfo, schema, partMap); conf.set(HCatConstants.HCAT_KEY_OUTPUT_INFO, HCatUtil.serialize(jobInfo)); }