List of usage examples for org.apache.hadoop.mapreduce.lib.db DBConfiguration setOutputFieldCount
public void setOutputFieldCount(int fieldCount)
From source file:com.cloudera.sqoop.mapreduce.db.DBOutputFormat.java
License:Apache License
/** * Initializes the reduce-part of the job * with the appropriate output settings. * * @param job The job//from w w w . j av a 2 s . co m * @param tableName The table to insert data into * @param fieldCount the number of fields in the table. */ public static void setOutput(Job job, String tableName, int fieldCount) throws IOException { DBConfiguration dbConf = setOutput(job, tableName); dbConf.setOutputFieldCount(fieldCount); }