Apache Sqoop Course Contents

This page combines all Sqoop-related topics into a single article to make it more helpful and beneficial to learners. It is presented in a hierarchical manner, beginning with the basics and progressing to more advanced topics.

Sqoop Complete Tutorial Part-1

Sqoop (SQL-to-Hadoop) is a Hadoop ecosystem component and an ETL tool that offers the capability to extract data from various structured data stores such as relational databases with the help of map-reduce. This command-line interpreter works efficiently to transfer a huge volume of the data to the Hadoop file system (HDFS, HBase, and Hive). Similarly, it exports the data from Hadoop to SQL. Sqoop offers parallel processing as well as

Continue reading

Sqoop Complete Tutorial Part-2

This is the continuation part of “Sqoop Complete Tutorial”. If you want to read Part-1, please click here. Part-2, please click here. Part-3, please click here. Part-4, please click here. Part-5, please click here. Part-6, please click here. Part-7, please click here. We are about to discuss the following in the current and in the upcoming parts. Importing data from MySQL to HDFS Importing a table from MySQL to the

Continue reading

Sqoop Complete Tutorial Part-3

This is the continuation part of “Sqoop Complete Tutorial”. If you want to read –Part-1, please click here.Part-2, please click here.Part-3, please click here.Part-4, please click here.Part-5, please click here.Part-6, please click here.Part-7, please click here. 5) Importing all the tables but excluding few tables from MySQL to HDFS  sqoop import-all-tables–connect jdbc:mysql://localhost/retail_db–username root–password cloudera–exclude-tables “order_items”  Note: There is no way to import only a few selected tables to HDFS. The

Continue reading

Sqoop Complete Tutorial Part-4

This is the continuation part of “Sqoop Complete Tutorial”. If you want to read – Part-1, please click here.Part-2, please click here.Part-3, please click here.Part-4, please click here.Part-5, please click here.Part-6, please click here.Part-7, please click here. 11) Importing data from MySQL to HDFS based on SQL query  sqoop import-all-tables–connect jdbc:mysql://localhost/retail_db–username root–password cloudera–exclude-tables “order_items”  Append & LastModified The following is as per the Sqoop documentation. Sqoop supports two types of

Continue reading

Sqoop Complete Tutorial Part-5

This is the continuation part of “Sqoop Complete Tutorial”. If you want to read – Part-1, please click here. Part-2, please click here. Part-3, please click here. Part-4, please click here. Part-5, please click here. Part-6, please click here. Part-7, please click here. 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

Continue reading

Sqoop Complete Tutorial Part-6

This is the continuation part of “Sqoop Complete Tutorial”. If you want to read – Part-1, please click here. Part-2, please click here. Part-3, please click here. Part-4, please click here. Part-5, please click here. Part-6, please click here. Part-7, please click here. 18) 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”

Continue reading

Sqoop Complete Tutorial Part-7

This is the continuation part of “Sqoop Complete Tutorial”. If you want to read – Part-1, please click here. Part-2, please click here. Part-3, please click here. Part-4, please click here. Part-5, please click here. Part-6, please click here. Part-7, please click here. 20) Importing all tables from MySQL to Hive   Importing a table from MySQL to Hive’s default database. The below command will help in copying all the tables

Continue reading

Sqoop Complete Tutorial Part-8

This is the continuation part of “Sqoop Complete Tutorial”. 22) Import the table’s structure from MySQL to Hive without data Create-hive-table is the option that generates the table structure based on the table available in the relational data source. sqoop create-hive-table –connect jdbc:mysql://localhost/empdept –username root –password cloudera –table employees –hive-table emp; Note: The above command will create only the structure. Data will not be imported. With the above command, we

Continue reading

SQOOP Complete Tutorial Part-9

Previous articles covered how to move data from a relational database to HDFS and Hive. We’ll now look at how to get the data out of HDFS and Hive. Before exporting, the target table must exist in the target database. As previously stated, everything in HDFS is a file; there are no tables. When these files are exported into an RDBMS, the rows will be read and parsed into records.

Continue reading

SQOOP Complete Tutorial Part-10

In this session, we’ll work with staging tables while exporting data from HDFS to MySQL. Staging tables are the tables that hold the data temporarily. If any exceptions are raised by the map reduce jobs, the data may only be loaded partly in the target table. Instead of transferring data to the target table, staging tables are utilized in certain instances. If there are no exceptions, data will be moved

Continue reading

SQOOP Complete Tutorial Part-11

This is the continuation part of “Sqoop Complete Tutorial”. The following will be covered in this article. Sqoop Export – Update the records in the destination table. Sqoop Export – Append the new and modify the existing the values in the destination table. When exporting data from Hive/HDFS to RDBMS, we frequently need to either update existing records OR update current records and append new entries. The following export control

Continue reading

Sqoop Complete Tutorial Part-12

So far, we’ve looked at a variety of instances in which the same arguments are supplied several times. The arguments are mostly what you need to know when dealing with Sqoop. If the correct inputs are supplied, the required task will be completed without problems. This post is part of the “Sqoop Complete Tutorial” series, and it will show you how to export tables from Hive to MySQL and Oracle.

Continue reading

Sqoop Complete Tutorial Part-13

This is continuation part to “SQOOP Complete Tutorial” and in this part we will see how to create and save the jobs in Sqoop. Instead of rewriting commands that need to be run many times, Sqoop allows you to save them as jobs. When it comes to incremental import, this is a common occurrence. A saved job keeps track of the configuration information needed to run a Sqoop operation later.

Continue reading

Sqoop Complete Tutorial Part-14

This is the final installment of the “Sqoop Complete Tutorial” series. As previously stated, Apache Sqoop is an ETL tool for moving large amounts of data between Apache Hadoop, Apache Hive, and structured datastores like relational databases. There are various arguments that aid in restricting, filtering, and accomplishing the data transmission need. In order to perform the needed work without difficulty, one must be aware of the appropriate arguments to

Continue reading

Sqoop Import All – Copying MySQL Database to Hive

At the point when I began learning Sqoop, I confronted such huge numbers of blunders for which I was unable to get a lot of help from the discussions or sites. The beneath is one of them which killed parcel of time.  sqoop import-all-tables –connect=jdbc:mysql://localhost/retail_db –username=root –password=cloudera –hive-import –hive-database retaildb –warehouse-dir=/user/hive/warehouse/retaildb.db -m 1 I wanted to import all the tables and data into Hive database all at once i.e., a

Continue reading

3 comments

  1. Please let me know if you’re looking for a writer
    for your weblog. You have some really good articles and I think
    I would be a good asset. If you ever want to take some of the load
    off, I’d really like to write some articles for your blog in exchange for a link back to
    mine. Please blast me an email if interested. Cheers!

    Like

  2. I truly love your website.. Pleasant colors & theme. Did you develop this site yourself?
    Please reply back as I’m wanting to create my very own site and want to
    learn where you got this from or exactly what the theme
    is called. Cheers!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s