This is the documentation for CDH 5.1.x. Documentation for other versions is available at Cloudera Documentation.

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.

Page generated September 3, 2015.