Sqoop 1
On the command line, use the following option to import to Avro data files:
--as-avrodatafile
Sqoop 1 will automatically generate an Avro schema that corresponds to the database table being exported from.
To enable Snappy compression, add the following option:
--compression-codec snappy
Note:
Sqoop 2 does not currently support Avro.
<< Flume | MapReduce >> | |