Sqoop is used to transfer any data between HDFS and relational database servers like mysql, oracle etc. Apache sqoop imports data from relational databases to HDFS, and exports data from HDFS to relational databases. So, if any requirement arises, we export or import the data accordingly.