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
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
Post a Comment