Last active
May 4, 2018 05:50
-
-
Save prasku5/3e7ba11bde2c34d47011bc033cf529a5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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-all-tables \ | |
--connect jdbc:mysql://localhost/source_database_name \ (This is the path to access the Source DB using JDBC Driver) | |
--username <username> \ (Source Database Username) | |
--password <password> \ (Source Database password) | |
--database source_database_name \ (The database name will become folder name in target HDFS ) | |
--warehouse-dir <path_name> (This will create folder subdirectories based on importing table names automatically) | |
--autoreset-to-one-mapper (When source tables doesnt have primary key we use this argument) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment