Created
November 13, 2017 04:32
-
-
Save dgadiraju/3e919a2328b50e0182dce4fa1c83d0b2 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
#Default behavior | |
sqoop import \ | |
--connect jdbc:mysql://ms.itversity.com:3306/hr_db \ | |
--username hr_user \ | |
--password itversity \ | |
--table employees \ | |
--warehouse-dir /user/dgadiraju/sqoop_import/hr_db | |
#Changing default delimiters and nulls | |
sqoop import \ | |
--connect jdbc:mysql://ms.itversity.com:3306/hr_db \ | |
--username hr_user \ | |
--password itversity \ | |
--table employees \ | |
--warehouse-dir /user/dgadiraju/sqoop_import/hr_db \ | |
--null-non-string -1 \ | |
--fields-terminated-by "\000" \ | |
--lines-terminated-by ":" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment