com.cloudera.sqoop.mapreduce
Class MySQLExportJob
java.lang.Object
com.cloudera.sqoop.mapreduce.JobBase
com.cloudera.sqoop.mapreduce.ExportJobBase
com.cloudera.sqoop.mapreduce.MySQLExportJob
public class MySQLExportJob
- extends ExportJobBase
Class that runs an export job using mysqlimport in the mapper.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Method Summary |
protected void |
configureInputFormat(org.apache.hadoop.mapreduce.Job job,
java.lang.String tableName,
java.lang.String tableClassName,
java.lang.String splitByCol)
Configure the inputformat to use for the job. |
protected java.lang.Class<? extends org.apache.hadoop.mapreduce.Mapper> |
getMapperClass()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
MySQLExportJob
public MySQLExportJob(ExportJobContext context)
configureInputFormat
protected void configureInputFormat(org.apache.hadoop.mapreduce.Job job,
java.lang.String tableName,
java.lang.String tableClassName,
java.lang.String splitByCol)
throws java.lang.ClassNotFoundException,
java.io.IOException
- Description copied from class:
JobBase
- Configure the inputformat to use for the job.
- Overrides:
configureInputFormat
in class ExportJobBase
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
getMapperClass
protected java.lang.Class<? extends org.apache.hadoop.mapreduce.Mapper> getMapperClass()
- Overrides:
getMapperClass
in class JobBase
- Returns:
- the mapper class to use for the job.
Copyright © 2010 Cloudera, Inc.