Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

rganeshan-ias
Copy link

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

@liz-z17
Copy link

liz-z17 commented Aug 4, 2016

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
If you need more directions, I'd be happy to help!

@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
@apache apache deleted a comment from SUMANG484 Mar 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants