|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.sqoop.manager.ConnManager
com.cloudera.sqoop.manager.SqlManager
com.cloudera.sqoop.manager.GenericJdbcManager
com.cloudera.sqoop.manager.MySQLManager
com.cloudera.sqoop.manager.DirectMySQLManager
public class DirectMySQLManager
Manages direct connections to MySQL databases so we can use mysqldump to get really fast dumps.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Fields inherited from class com.cloudera.sqoop.manager.SqlManager |
---|
options |
Constructor Summary | |
---|---|
DirectMySQLManager(SqoopOptions options)
|
Method Summary | |
---|---|
void |
exportTable(ExportJobContext context)
Export the table from HDFS by using mysqlimport to insert the data back into the database. |
void |
importTable(ImportJobContext context)
Import the table into HDFS by using mysqldump to pull out the data from the database and upload the files directly to HDFS. |
Methods inherited from class com.cloudera.sqoop.manager.MySQLManager |
---|
escapeColName, escapeTableName, execAndPrint, execute, getColNamesQuery, listDatabases, markWarningPrinted, release |
Methods inherited from class com.cloudera.sqoop.manager.GenericJdbcManager |
---|
close, discardConnection, getConnection, getDriverClass, hasOpenConnection |
Methods inherited from class com.cloudera.sqoop.manager.SqlManager |
---|
formatAndPrintResultSet, getColTypesQuery, getColumnNames, getColumnTypes, getPrimaryKey, getSplitColumn, listTables, makeConnection, readTable, toHiveType, toJavaType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public DirectMySQLManager(SqoopOptions options)
Method Detail |
---|
public void importTable(ImportJobContext context) throws java.io.IOException, ImportException
importTable
in class MySQLManager
java.io.IOException
ImportException
public void exportTable(ExportJobContext context) throws java.io.IOException, ExportException
exportTable
in class SqlManager
java.io.IOException
ExportException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |