What is the use of split by in sqoop?

Saheli Patil
Saheli Patil

Posted On: Feb 25, 2020

 

The sqoop import/export parallel, data can split into multiple chunks to transfer. The Split by in sqoop selects the id_number to split a column of the table.

sqoop import --connect jdbc:mysql:// localhost/database_name --username user_name --password 1234 
--query 'select * from table_name where id=3 AND $CONDITIONS' --split-by table.id_no --target-dir /dir

the split by helped to proper distribution to make a split of data.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Sqoop Interview Questions

    What is Sqoop?

    The sqoop is an acronym of SQL-TO-HADOOP. It is a command-line interface application. It is worked for conveying data between relational databases (MySQL/ PostgreSQL/Oracle/SQL Server/DB2) and Hadoop ...

    Sqoop Interview Questions

    What is sqoop used for?

    The sqoop is primarily conveying the immense data between the relational database and the Hadoop ecosystem. The entire database or individual table import to the ecosystem (HDFS) and after modificatio...

    Sqoop Interview Questions

    List some major features of Apache Sqoop?

    The following list of apache sqoop features.Compression Connectors for all major RDBMS databases Kerberos security integration Full load Incremental load Import results of database query Loa...