Created
May 3, 2018 17:06
-
-
Save prasku5/e4e364e8e67b5b3fbe03d0f32259651d 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 \ | |
--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 ) | |
--table Source_table_name \ (This will store the files in .gz compression which is default) | |
--hive-import \ (This will import the data imported in HDFS as Hive table automatically) | |
-m 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment