sh cca175-problem-5-step-2-sqoop-import.sh
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh cca175-problem-5-step-2-sqoop-import.sh相关的知识,希望对你有一定的参考价值。
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-part1 \
--fields-terminated-by '*' \
--lines-terminated-by '\n' \
--null-non-string -1000 \
--null-string "NA" \
-m 2 \
--where "product_id <= 1111 " \
--outdir /home/cloudera/sqoop2 \
--boundary-query "select min(product_id), max(product_id) from products_replica where product_id <= 1111";
以上是关于sh cca175-problem-5-step-2-sqoop-import.sh的主要内容,如果未能解决你的问题,请参考以下文章
sh cca175-problem-5-step-1-sqoop-import.sh
sh cca175-problem-5-step-2-sqoop-import.sh
sh cca175-problem-5-step-3-sqoop-import.sh
sh cca175-problem-5-step-4-sqoop-merge.sh
sh cca175-problem-5-step-6-sqoop-import.sh
sh cca175-problem-03-partitioning.sh