Sqoop tutorial 9 : Overriding Type Mapping

Use Sqoop’s ability to override default type mapping using the parameter --mapcolumn-
java.
For example, to override the type of column id to Java type Long:

sqoop import \
--connect jdbc:mysql://mysql.example.com/sqoop \
--username sqoop \
--table cities \
--map-column-java id=Long

Comments

Popular posts from this blog

Hive Tutorial 31 : Analytic Functions

Hive Tutorial 37 : Performance Tuning

How to change sqoop saved job parameters