Last active
July 6, 2016 06:52
-
-
Save jiankuang/564c46303329a9934116de77bde6c2cc 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
# import mysql tables into HDFS using sqoop | |
sqoop import-all-tables --connect jdbc:mysql://localhost/retail_db --username retail_dba --password cloudera | |
# import mysql tables into hive using sqoop | |
sqoop import-all-tables --connect jdbc:mysql://localhost/retail_db --username retail_dba --password cloudera --hive-import --create-hive-table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment