sh cca175-problem-5-step-5-sqoop-job.sh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh cca175-problem-5-step-5-sqoop-job.sh相关的知识,希望对你有一定的参考价值。

// On terminal -

sqoop job --create first_sqoop_job \
  -- import \
  --connect "jdbc:mysql://quickstart.cloudera:3306/retail_db" \
  --username "retail_dba" \
  --password "cloudera" \
  --table products_replica \
  --target-dir /user/cloudera/problem5/products-incremental \
  --check-column product_id \
  --incremental append \
  --last-value 0;

sqoop job --exec first_sqoop_job

// On MySQL command line -

insert into products_replica 
  values (1346,2,'something 1','something 2',300.00,'not avaialble',3,'STRONG');
insert into products_replica 
  values (1347,5,'something 787','something 2',356.00,'not avaialble',3,'STRONG');

// On terminal - 

sqoop job --exec first_sqoop_job

// On MYSQL Command Line

insert into products_replica 
  values (1376,4,'something 1376','something 2',1.00,'not avaialble',3,'WEAK');
insert into products_replica 
  values (1365,4,'something 1376','something 2',10.00,'not avaialble',null,'NOT APPLICABLE');

// On terminal - 

sqoop job --exec first_sqoop_job

以上是关于sh cca175-problem-5-step-5-sqoop-job.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