Guest User

Untitled

a guest
Nov 7th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. sqoop import \
  2. --connect "jdbc:mysql://quickstart.cloudera:3306/retail_db" \
  3. --username retail_dba \
  4. --password cloudera \
  5. --table products_replica \
  6. --target-dir /user/cloudera/problem5/products-text \
  7. --fields-terminated-by '|' \
  8. --lines-terminated-by '\n' \
  9. --null-non-string -1 \
  10. --null-string "NOT-AVAILABLE" \
  11. -m 3 \
  12. --where "product_id between 1 and 1000" \
  13. --outdir /home/cloudera/sqoop1 \
  14. --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