May 2017
Beginner to intermediate
596 pages
15h 2m
English
Sqoop executable also comes with the capability to import all tables from a relational database to HDFS. The typical syntax to perform this is as given:
sqoop import-all-tables (generic-args) (import-args)
With respect to the previous import command, the only difference here would be to use the import-all-tables option of Sqoop command. A sample command is as shown:
bin/sqoop import-all-tables --connect jdbc:postgresql://<DB_SERVER_ADDRESS>/<DB_NAME>?schema=<SCHEMA> --m 1 --username <DB_USER_NAME> --password <DB_PASSWORD> --as-avrodatafile
As we come to this point, we also realize that in order to see this command in action, we should have multiple tables in the relational database. Hence, I would suggest creating ...
Read now
Unlock full access