271 likes | 1.09k Views
** Hadoop Training: https://www.edureka.co/hadoop ** <br>This Edureka PPT on Sqoop Tutorial will explain you the fundamentals of Apache Sqoop. It will also give you a brief idea on Sqoop Architecture. In the end, it will showcase a demo of data transfer between Mysql and Hadoop <br>Below topics are covered in this video: <br><br>1. Problems with RDBMS <br>2. Need for Apache Sqoop <br>3. Introduction to Sqoop <br>4. Apache Sqoop Architecture <br>5. Sqoop Commands <br>6. Demo to transfer data between Mysql and Hadoop <br><br>Check our complete Hadoop playlist here: https://goo.gl/hzUO0m <br><br>Follow us to never miss an update in the future. <br>Instagram: https://www.instagram.com/edureka_learning/ <br>Facebook: https://www.facebook.com/edurekaIN/ <br>Twitter: https://twitter.com/edurekain <br>LinkedIn: https://www.linkedin.com/company/edureka
E N D
Topics to be covered… 1 Problems with RDBMS 2 Need for Sqoop 3 Introduction to Sqoop 4 Features of Sqoop 5 Sqoop Architecture 6 Sqoop Commands & Demo using MySQL Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Problems with Relational Database RDBMS Data Importing was Tedious task Difficult to handle large datasets Time Consuming Task Cant store Unstructured Data Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Need for Sqoop Data Analysis Command Line Interface High Performance Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Sqoop? Tool used to transfer bulk data between HDFS & Relational Database Servers Import RDBMS HDFS Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Sqoop? Tool used to transfer bulk data between HDFS & Relational Database Servers HDFS RDBMS Export Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Features of Sqoop Full Load Data loading directly to HIVE Incremental Load Parallel Import/Export Kerberos Security Integration Compression Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Sqoop Architecture Copyright © 2017, edureka and/or its affiliates. All rights reserved.
How Sqoop Import & Export Works? Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Sqoop Import Command IMPORT Import EXPORT Import each table of the RDBMS in Hadoop LIST DATABASE LIST TABLES $ sqoop import \ --connect jdbc:mysql://<ip address>/<database name> --table <mysql_table name> CODEGEN --username <username_for_mysql_user> --password <Password> --target-dir <target directory where data needs to be imported>
Sqoop Export Command IMPORT Export EXPORT Exports data from HDFS to RDBMS LIST DATABASE LIST TABLES $ sqoop export \ --connect jdbc:mysql://<ip address>/<database name> --table <mysql_table name> CODEGEN --username <username_for_mysql_user> --password <Password> --export-dir <directory name where data needs to be exported>
Sqoop List Database IMPORT Sqoop EXPORT It lists the databases present in the relational database LIST DATABASE LIST TABLES $ sqoop list databases --connect jdbc:mysql://<ip address>/<database name> CODEGEN --table <mysql_table name> --username <username_for_mysql_user> --password <Password>
Sqoop List Tables ID 1 2 3 Name Jino Neha Chaitra Age 25 22 23 Address Kottayam Dharwad Bangalore IMPORT EXPORT It lists the available tables in the database LIST DATABASE LIST TABLES $ sqoop list tables --connect jdbc:mysql://<ip address>/<database name> CODEGEN --table <mysql_table name> --username <username_for_mysql_user> --password <Password>
Sqoop Codegen Generates DAO Class automatically Generates Java Class file Source code can be recreated IMPORT EXPORT LIST DATABASE LIST TABLES $ sqoop codegen --connect jdbc:mysql://<ip address>/<database name> CODEGEN --table <mysql_table name> --username <username_for_mysql_user> --password <Password>