Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sqoop import \
- --connect "jdbc:mysql://quickstart.cloudera:3306/retail_db" \
- --username retail_dba \
- --password cloudera \
- --table products_replica \
- --target-dir /user/cloudera/problem5/products-text \
- --fields-terminated-by '|' \
- --lines-terminated-by '\n' \
- --null-non-string -1 \
- --null-string "NOT-AVAILABLE" \
- -m 3 \
- --where "product_id between 1 and 1000" \
- --outdir /home/cloudera/sqoop1 \
- --boundary-query "select min(product_id), max(product_id) from products_replica where product_id between 1 and 1000";
Add Comment
Please, Sign In to add comment