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

Unix Tutorial 11 : Conditional Statements

Unix Tutorial 12 : Loop Types

Unix Tutorial 17 : Advance Unix