List of usage examples for org.apache.hadoop.mapred OutputFormat checkOutputSpecs
void checkOutputSpecs(FileSystem ignored, JobConf job) throws IOException;
From source file:org.apache.hcatalog.hbase.HBaseBaseOutputFormat.java
License:Apache License
@Override public void checkOutputSpecs(FileSystem ignored, JobConf job) throws IOException { OutputFormat<WritableComparable<?>, Put> outputFormat = getOutputFormat(job); outputFormat.checkOutputSpecs(ignored, job); }
From source file:org.apache.hcatalog.mapreduce.DefaultOutputFormatContainer.java
License:Apache License
/** * Check for validity of the output-specification for the job. * @param context information about the job * @throws IOException when output should not be attempted *///ww w . jav a 2s . c o m @Override public void checkOutputSpecs(JobContext context) throws IOException, InterruptedException { org.apache.hadoop.mapred.OutputFormat<? super WritableComparable<?>, ? super Writable> outputFormat = getBaseOutputFormat(); JobConf jobConf = new JobConf(context.getConfiguration()); outputFormat.checkOutputSpecs(null, jobConf); HCatUtil.copyConf(jobConf, context.getConfiguration()); }