1.知道某列的值的增量导入(mysql------>文件)
bin/sqoop import
--connect jdbc:mysql://bigdatcdh01:3306/test
--username root
--password 123456
--table my_user
--target-dir /user/sqoop/imp_my_incr
--num-mappers 1
--incremental append
--check-column id
--last-value 4
2.导出指定列到oracle表(hdfs文件----->oracle)
sqoop export
--connect "jdbc:oracle:thin:@192.168.2.100:1521:CMIS"
--username User_Test
--password Password_Test
--table USER_TEST.BF_TX_CHK_0803 (注意是用户名.表名)
--export-dir /user/hive/warehouse/sdata.db/s002_bf_tx_chk/dt=20170801/
--input-fields-terminated-by "^"
--input-lines-terminated-by "
"
--input-null-string ""
--input-null-non-string ""
--columns mer_id,terminal_id,tx_log_seq