[ 
https://issues.apache.org/jira/browse/SQOOP-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557226#comment-13557226
 ] 

Guido Serra aka Zeph edited comment on SQOOP-793 at 1/18/13 2:11 PM:
---------------------------------------------------------------------

[~jarcec] well, I'm not a fan of the NIH (Not Invented Here) approach, so I'd 
prefer to extend Sqoop :)

In the end it seems to be that I just need to override, in the 
DirectMySQLManager class, the methods inherited from the MySQLManager that are 
dependant on the SQL executions. Or maybe even write a new "HdfsMySQLManager" 
to avoid at all dependancies to the MySQL connector

I guess I'll use [JSqlParser|http://jsqlparser.sourceforge.net/] for the CREATE 
statements:
 - http://stackoverflow.com/questions/2903556/a-mysql-schema-parser-in-java
                
      was (Author: zeph):
    [~jarcec] well, I'm not a fan of the NIH (Not Invented Here) approach, so 
I'd prefer to extend Sqoop :)

In the end it seems to be that I just need to override, in the 
DirectMySQLManager class, the methods inherited from the MySQLManager that are 
dependant on the SQL executions. Or maybe even write a new "HdfsMySQLManager" 
to avoid at all dependancies to the MySQL connector

I guess I'll use JSqlparser for the CREATE statements:
 - http://stackoverflow.com/questions/2903556/a-mysql-schema-parser-in-java
 - http://jsqlparser.sourceforge.net/
                  
> mysqldump > file > hdfs > sqoop
> -------------------------------
>
>                 Key: SQOOP-793
>                 URL: https://issues.apache.org/jira/browse/SQOOP-793
>             Project: Sqoop
>          Issue Type: New Feature
>          Components: connectors/mysql
>            Reporter: Guido Serra aka Zeph
>            Assignee: Guido Serra aka Zeph
>            Priority: Minor
>
> extend the MySQLDump module to be able to read from a mysqldump generated 
> file,
> saved on hdfs, instead of triggering the "--direct" option or connect via jdbc

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to