Skip to content

Instantly share code, notes, and snippets.

@prasku5
Created May 2, 2018 17:28
Show Gist options
  • Save prasku5/f94ba395d871c6f04612110193643fde to your computer and use it in GitHub Desktop.
Save prasku5/f94ba395d871c6f04612110193643fde to your computer and use it in GitHub Desktop.
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 \
--table source_table_name \
--target-dir <path of the file>
-m 4 (using more mappers for parallel increase in perforamce)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment