zaratsian / Sqoop

Sqoop - Bulk Load Data into HDFS, Hive, HBase, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apache Sqoop

Commands and Code to move data from relational DBs into HDFS, Hive, HBase and similar Hadoop services.

MySQL - Connect to MySQL and list all available tables
sqoop list-tables --connect jdbc:mysql://localhost:3306/database --username root --password pw

sqoop import --connect jdbc:mysql://localhost:3306/database --username root --table mysql_table --hive-import --create-hive-table --hive-table hive_database.hive_table


References:

About

Sqoop - Bulk Load Data into HDFS, Hive, HBase, etc.