This is the continuation part of "Sqoop Complete Tutorial". If you want to read -
16) Importing a table from MySQL to Hive's default database.  
Importing a table from MySQL to Hive's default database. The below command will help in copying "emp" table and data from MySQL to Hive "default" database as "employee".
sqoop import 
--connect jdbc:mysql://localhost/empdept 
--table emp 
--username root 
--password cloudera 
--hive-import 
--hive-table employees
17) Importing a table from MySQL to Hive's user database.
sqoop import 
--connect jdbc:mysql://localhost/empdept 
--table emp 
--username root 
--password cloudera 
--hive-import 
--hive-table employees
--hive-database dbTest
Verifying the data:
Please click here for the next part.
No comments:
Post a Comment