Example usage for org.apache.hadoop.mapred OutputFormat checkOutputSpecs

List of usage examples for org.apache.hadoop.mapred OutputFormat checkOutputSpecs

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred OutputFormat checkOutputSpecs.

Prototype

void checkOutputSpecs(FileSystem ignored, JobConf job) throws IOException;

Source Link

Document

Check for validity of the output-specification for the job.

Usage

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());
}