sqoop跑数模板保存
作者:互联网
kinit -kt /var/lib/hue/hue.keytab hue
sqoop import \
-D mapred.job.queue.name=root.etl.ld \
-D org.apache.sqoop.splitter.allow_text_splitter=true \
--connect jdbc:oracle:thin:@$1:$2:$3 \
--username $4 \
--password $5 \
--query "SELECT
C_IDEN,
C_IDEN_RELA,
C_SEC_CODE,
C_SEC_CODE_TAG,
N_TD_AMOUNT,
C_TD_TYPE,
D_UPDATE_INFO
FROM V45HRXT.T_D_AC_TRADE_ZYW
WHERE \$CONDITIONS" \
--target-dir /user/hive/warehouse/ld.db/fa45_t_d_ac_trade_zyw \
--split-by C_IDEN \
--fields-terminated-by '\001' \
--delete-target-dir \
--hive-drop-import-delims \
--mapreduce-job-name sqoop_fa45_t_d_ac_trade_zyw \
--num-mappers 1 \
--null-string '\\N' \
--null-non-string '\\N' \
--as-textfile
标签:跑数,IDEN,CODE,hue,--,sqoop,dir,模板 来源: https://blog.csdn.net/jtpython666/article/details/121609028