Advertisement
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-part2 \
- --fields-terminated-by '*' \
- --lines-terminated-by '\n' \
- --null-non-string -1000 \
- --null-string "NA" \
- -m 5 \
- --where "product_id > 1111 " \
- --outdir /home/cloudera/sqoop3 \
- --boundary-query "select min(product_id), max(product_id) from products_replica where product_id > 1111"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement