已经试过了,好像不好使啊sqoop import --connect jdbc:oracle:thin:@ip:dname --username x --password x --query "select convert(wspzxh,'UTF-8','US7ASCII'),convert(nsrdzdah,'UTF-8','US7ASCII'),convert(fzczt_dm,'UTF-8','US7ASCII'),convert(rd_jbr_dm,'UTF-8','US7ASCII'),convert(rd_fzr,'UTF-8','US7ASCII'),convert(rd_yj,'UTF-8','US7ASCII'),convert(rd_rq,'UTF-8','US7ASCII'),convert(fzcjc_wspzxh,'UTF-8','US7ASCII'),convert(fzcjc_jbr_dm,'UTF-8','US7ASCII'),convert(fzcjc_yj,'UTF-8','US7ASCII'),convert(fzcjc_rq,'UTF-8','US7ASCII'),convert(ggnr,'UTF-8','US7ASCII'),convert(ggjbr_dm,'UTF-8','US7ASCII'),convert(gglrr_dm,'UTF-8','US7ASCII'),convert(ggrq,'UTF-8','US7ASCII'),convert(zx_wspzxh,'UTF-8','US7ASCII'),convert(zx_jbr_dm,'UTF-8','US7ASCII'),convert(zx_yj,'UTF-8','US7ASCII'),convert(zxrq,'UTF-8','US7ASCII'),convert(nsr_swjg_dm,'UTF-8','US7ASCII'),convert(swjg_dm,'UTF-8','US7ASCII'),convert(lrr_dm,'UTF-8','US7ASCII'),convert(lrrq,'UTF-8','US7ASCII'),convert(xgr_dm,'UTF-8','US7ASCII'),convert(xgrq,'UTF-8','US7ASCII'),convert(sdh_bz,'UTF-8','US7ASCII') from dj_fzcgl where \$CONDITIONS" -m 1 --target-dir /user/hive/warehouse/sichuan.db/dj_fzcgl_test --hive-table dj_fzcgl_test --hive-import --as-parquetfile
|