Hi,
I am importing data from teradata to hive using Sqoop.
I added --map-column-hive in sqoop import command
--map-column-hive num_int=int, num_float=float
,num_dec=decimal,ts=timestamp, desc_varchar=varchar
I got exception:
FAILED: ParseException line 1:234 mismatched input ',' expecting ( near
'varchar' in primitive type specification
Then I tried:
--map-column-hive num_int=int, num_float=float
,num_dec=decimal,ts=timestamp, desc_varchar=varchar(255)
I got:
bash: syntax error near unexpected token `('
How to handle char, varchar and decimal in --map-column-hive tag?
Regards,
Devender Yadav
Software Developer
Impetus Infotech Pvt Ltd