com.cloudera.sqoop.mapreduce
Class MySQLExportJob

java.lang.Object
  extended by com.cloudera.sqoop.mapreduce.JobBase
      extended by com.cloudera.sqoop.mapreduce.ExportJobBase
          extended by 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
           
 
Fields inherited from class com.cloudera.sqoop.mapreduce.ExportJobBase
context, EXPORT_MAP_TASKS_KEY, SQOOP_EXPORT_TABLE_CLASS_KEY
 
Fields inherited from class com.cloudera.sqoop.mapreduce.JobBase
inputFormatClass, mapperClass, options, outputFormatClass
 
Constructor Summary
MySQLExportJob(ExportJobContext 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  java.lang.Class<? extends org.apache.hadoop.mapreduce.Mapper> getMapperClass()
           
 
Methods inherited from class com.cloudera.sqoop.mapreduce.ExportJobBase
configureMapper, configureNumTasks, getInputFormatClass, getInputPath, getOutputFormatClass, inputIsSequenceFiles, isSequenceFiles, runExport, runJob
 
Methods inherited from class com.cloudera.sqoop.mapreduce.JobBase
configureOutputFormat, 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

MySQLExportJob

public MySQLExportJob(ExportJobContext context)
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
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.