This is the continuation part of "Sqoop Complete Tutorial". If you want to read -
14) Read the contents of the database without importing it.
sqoop list-tables
--connect jdbc:mysql://localhost/empdept
--username root
--password cloudera
This above command will list out the tables from the given database.
15) Get the list of of the databases using Sqoop
sqoop list-databases
--connect jdbc:mysql://localhost/
--username root
--password cloudera
With the above command, we completed learning how to import data from MySQL to HDFS using Sqoop. The upcoming articles are on how to import data from MySQL to Hive.
Please click here for the next part
No comments:
Post a Comment