sqoop import –connect jdbc:mysql://localhost:3306/telecom --driver com.mysql.jdbc.Driver --username root --password root --table customers
--columns cust_id, name, address, date, history, occupation --where item>=1234
--target-dir /tmp//customers
--m 8
--split-by cust_id
--fields-terminated-by ,
--escaped-by \
--hive-drop-import-delims
--map-column-java
cust_id=string, name=string, address=string, date=string, history=string, occupation=string
Copyright ©2022 coderraj.com. All Rights Reserved.