sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rganeshan-ias <...@git.apache.org>
Subject [GitHub] sqoop pull request #25: Use mysql to import data from hdfs to the database w...
Date Wed, 03 Aug 2016 19:27:45 GMT
GitHub user rganeshan-ias opened a pull request:

    https://github.com/apache/sqoop/pull/25

    Use mysql to import data from hdfs to the database when sqoop.mysql.e…

    Allows the use of mysql to load data so that we can set session variables. For example:
    hadoop jar build/sqoop-1.4.7-SNAPSHOT.jar org.apache.sqoop.Sqoop  export -Dsqoop.mysql.export.clause="set
@bh_dataformat='mysql'" --connect "jdbc:mysql://localhost/test?user=xxx&password=xxx"
--table countries --export-dir /user/test/countries.txt --fields-terminated-by '\t' --direct
--password xxx --username xxx

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rgan/sqoop export_with_mysql

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sqoop/pull/25.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #25
    
----
commit 1bbd501153ccd7f96dc4a736b71d0d1eeea11d79
Author: rgan <rajaram.ganeshan@gmail.com>
Date:   2016-08-02T02:27:54Z

    Use mysql to import data from hdfs to the database when sqoop.mysql.export.clause is set

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message