You are on page 1of 6

SPOOP IMPORT

Big Data 2020-2021


Imane Zarhrate

In this section I will import data from mysql to HDFS using sqoop export
command.
First of all , let’s open a Terminal and type this command.

Now let’s see the databases in mysql.


We’ll use the retail_db database and show it’s tables.

Now I’ll Display all fields in departments table.

The table has 6 rows as shown.


Now I’ll import data from mysql to HDFS .
First , let’s display all mysql databses.

Now I’ll import data from mysql to HDFS.


Now I’ll display the imported data in Hue file browser.

We can see that departments had been imported succefully.


The data imported in HDFS :

You might also like