Skip to content

Instantly share code, notes, and snippets.

@prasku5
Created November 19, 2018 07:35
Show Gist options
  • Save prasku5/af49664dc47071541c9f0ade07ce90ca to your computer and use it in GitHub Desktop.
Save prasku5/af49664dc47071541c9f0ade07ce90ca to your computer and use it in GitHub Desktop.
sqoop import --connect jdbc:mysql://localhost/retail_db \
--username root \
--target-dir /user/training/ \
--table orders \
--autoreset-to-one-mapper \
--delete-target-dir \
--create-hcatalog-table \
--hcatalog-database default \
--hcatalog-table my_table_orc \
--hcatalog-storage-stanza "stored as orcfile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment