Last active
November 12, 2017 22:49
-
-
Save dgadiraju/4039fb7319952e626b23525ac9dcf4f8 to your computer and use it in GitHub Desktop.
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://ms.itversity.com:3306/retail_db \ | |
--username retail_user \ | |
--password itversity \ | |
--table order_items_nopk \ | |
--warehouse-dir /user/dgadiraju/sqoop_import/retail_db \ | |
--split-by order_item_order_id | |
#Splitting on text field | |
sqoop import \ | |
-Dorg.apache.sqoop.splitter.allow_text_splitter=true \ | |
--connect jdbc:mysql://ms.itversity.com:3306/retail_db \ | |
--username retail_user \ | |
--password itversity \ | |
--table orders \ | |
--warehouse-dir /user/dgadiraju/sqoop_import/retail_db \ | |
--split-by order_status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment