com.cloudera.sqoop.mapreduce
Class MySQLDumpImportJob
java.lang.Object
com.cloudera.sqoop.mapreduce.JobBase
com.cloudera.sqoop.mapreduce.ImportJobBase
com.cloudera.sqoop.mapreduce.MySQLDumpImportJob
public class MySQLDumpImportJob
- extends ImportJobBase
Class that runs an import job using mysqldump 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 void |
configureMapper(org.apache.hadoop.mapreduce.Job job,
java.lang.String tableName,
java.lang.String tableClassName)
Set the mapper class implementation to use in the job,
as well as any related configuration (e.g., map output types). |
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
MySQLDumpImportJob
public MySQLDumpImportJob(SqoopOptions opts,
ImportJobContext context)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
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
- Configure the inputformat to use for the job.
- Overrides:
configureInputFormat
in class JobBase
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
configureMapper
protected void configureMapper(org.apache.hadoop.mapreduce.Job job,
java.lang.String tableName,
java.lang.String tableClassName)
throws java.lang.ClassNotFoundException,
java.io.IOException
- Set the mapper class implementation to use in the job,
as well as any related configuration (e.g., map output types).
- Overrides:
configureMapper
in class JobBase
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
Copyright © 2010 Cloudera, Inc.