Last active
March 18, 2017 09:13
-
-
Save milindjagre/02410cb2222f66e5758ceda26662fc44 to your computer and use it in GitHub Desktop.
This file is used for importing the custom query from RDBMS to HDFS using Apache Sqoop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqoop import \ | |
--connect jdbc:mysql://sandbox.hortonworks.com:3306/retail_db \ | |
--username retail_dba \ | |
--password hadoop \ | |
--query 'select * from customers WHERE customer_zipcode=78521 AND $CONDITIONS' \ | |
--split-by customer_id \ | |
--target-dir /user/root/custom_query |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment