0 votes
in Sqoop by
How can we import data from particular row or column? What is the destination types allowed in Sqoop import command?

1 Answer

0 votes
by

Sqoop allows to Export and Import the data from the data table based on the where clause. The syntax is

--columns

<col1,col2……> --where

--query

Example:

sqoop import –connect jdbc:mysql://db.one.com/corp --table INTELLIPAAT_EMP --where “start_date> ’2016-07-20’ ”

sqoopeval --connect jdbc:mysql://db.test.com/corp --query “SELECT * FROM intellipaat_emp LIMIT 20”

sqoop import –connect jdbc:mysql://localhost/database --username root --password aaaaa –columns “name,emp_id,jobtitle”

Sqoop supports data imported into following services:

HDFS

  • Hive
  • Hbase
  • Hcatalog
  • Accumulo

Related questions

0 votes
asked Apr 3, 2020 in Big Data | Hadoop by Tate
0 votes
asked Mar 3, 2022 in Sqoop, Flume and Oozie by sharadyadav1986
...