You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by rganeshan-ias <gi...@git.apache.org> on 2016/08/03 19:27:45 UTC

[GitHub] sqoop pull request #25: Use mysql to import data from hdfs to the database w...

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\u2026

    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 <ra...@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.
---

[GitHub] sqoop issue #25: Use mysql to import data from hdfs to the database when sqo...

Posted by liz-z17 <gi...@git.apache.org>.
Github user liz-z17 commented on the issue:

    https://github.com/apache/sqoop/pull/25
  
    Hi @rganeshan-ias ,
    Sqoop project currently does not accept pull requests. To contribute, you will need to generate patch and upload it to the JIRA (of course if there's no corresponding JIRA issue, you will also need to create one first).
    See the instructions here: [https://cwiki.apache.org/confluence/display/SQOOP/How+to+Contribute](https://cwiki.apache.org/confluence/display/SQOOP/How+to+Contribute)
    If you need more directions, I'd be happy to help!


---
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.
---