sqoop 如何从hive导出到mssql


sqoop export \
--connect 'jdbc:sqlserver://10.190.238.65:1433;username=RHPT;password=RHPT@2021;database=TEST;useunicode=true;characterEncoding=UTF-8' \
--table py_test1 \
--columns "ztid" \
--export-dir /warehouse/tablespace/managed/hive/incre.db/py_test1/* \
--input-null-string '\\N' \
--input-null-non-string '\\N' \
--update-key ztid \
--update-mode allowinsert \
-- --identity-insert

想用增量来同步,全量已经成功了,增量一直报错,提示产生锁死,我估计是重复主键插入造成的,但hive表里是铁定没有重复的,mssql有主键和标记,求助