sqoop import \
--connect jdbc:mysql://ms.itversity.com:3306/retail_db \
--username retail_user \
--password itversity \
--table order_items \
--warehouse-dir /user/dgadiraju/sqoop_import/retail_db \
--num-mappers 2 \
--as-textfile \
--compress \
--compression-codec org.apache.hadoop.io.compress.GzipCodec
sqoop import \
--connect jdbc:mysql://ms.itversity.com:3306/retail_db \
--username retail_user \
--password itversity \
--table order_items \
--warehouse-dir /user/dgadiraju/sqoop_import/retail_db \
--num-mappers 2 \
--as-textfile \
--compress \
--compression-codec org.apache.hadoop.io.compress.SnappyCodec