com.cloudera.sqoop.mapreduce
Class MySQLDumpImportJob

java.lang.Object
  extended by com.cloudera.sqoop.mapreduce.JobBase
      extended by com.cloudera.sqoop.mapreduce.ImportJobBase
          extended by 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
           
 
Fields inherited from class com.cloudera.sqoop.mapreduce.JobBase
inputFormatClass, mapperClass, options, outputFormatClass
 
Constructor Summary
MySQLDumpImportJob(SqoopOptions opts, ImportJobContext context)
           
 
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 com.cloudera.sqoop.mapreduce.ImportJobBase
configureOutputFormat, runImport, runJob
 
Methods inherited from class com.cloudera.sqoop.mapreduce.JobBase
configureNumTasks, getInputFormatClass, getMapperClass, getOutputFormatClass, loadJars, setInputFormatClass, setMapperClass, setOptions, setOutputFormatClass, unloadJars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

MySQLDumpImportJob

public MySQLDumpImportJob(SqoopOptions opts,
                          ImportJobContext context)
                   throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException
Method Detail

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.