美文网首页
sqoop增量

sqoop增量

作者: 在路上很久了 | 来源:发表于2017-12-11 17:42 被阅读0次

sqoop import \

--connect jdbc:mysql://master21:3306/test \

--username hadoop \

--password 123456 \

--table customertest \

--check-column last_mod \

--incremental lastmodified \

--last-value "2017-12-11 14:33:54" \

--m 4 \

--split-by id \

--merge-key id \

--append

sqoop  import \

--connect jdbc:mysql://master21:3306/test \

--username hadoop \

--password 123456 \

--table customertest \

--check-column id \

--incremental append \

--last-value 0 \

--m 4 \

--split-by id \

--merge-key id \

--append

sqoop import \

--connect jdbc:mysql://master21:3306/test \

--username hadoop \

--password 123456 \

--table customertest \

--m 4 \

--split-by id \

--merge-key id \

--hive-overwrite

相关文章

网友评论

      本文标题:sqoop增量

      本文链接:https://www.haomeiwen.com/subject/qzpiixtx.html