sqoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pratik khadloya <tispra...@gmail.com>
Subject Hive import is not compatible with importing into AVRO format
Date Fri, 12 Sep 2014 00:26:56 GMT
I am trying to import data from a free form mysql query into hive. I need
the files to be as AVRO data files, but when i pass the --as-avrodatafile
option, i get a compatibility error. Is there a way i can tell sqoop to use
the avro file format?

$ bin/sqoop import -jt <jobtracker> --connect
jdbc:mysql://<mydbserver>*/*<mydb> --username
<dbuser> --password <dbpwd> --target-dir /user/pkhadloya/sqoop/mytable
--query “<my query> WHERE \$CONDITIONS" --num-mappers 1 --hive-import
--hive-table mytable --create-hive-table --as-avrodatafile


~Pratik

Mime
View raw message