I am importing data from teradata to hive using Sqoop.
I added --map-column-hive
in sqoop import command
--map-column-hive col1=int,col2=float,col3=decimal,col4=timestamp,col5=varchar
I got exception:
FAILED: ParseException line 1:234 mismatched input ',' expecting ( near 'varchar' in primitive type specification
Then I tried:
--map-column-hive col1=int,col2=float,col3=decimal,col4=timestamp,col5=varchar(255)
I got:
bash: syntax error near unexpected token `('
How to handle char
, varchar
and decimal
in this?