sqoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Devender Yadav <dev....@gmail.com>
Subject Issue with char, varchar, decimal in Sqoop command with --map-column-hive tag
Date Wed, 13 Apr 2016 10:43:01 GMT

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?

Devender Yadav
Software Developer
Impetus Infotech Pvt Ltd

View raw message