--null-string '\\N' --null-non-string '\\N'java
--hive-drop-import-delims数据库
target-dir 必定不要与数据库最终保存位置一致app
--input-null-string '\\N'--input-null-non-string '\\N'oop
id主键冲突,由特殊字符致使hdfs文件格式有问题\spa
update-key update-mode对象
例子: --update-key id --update-mode allowinsert字符串
两种模式: allowinsert : 若是key是主键,则MySQL存在则更新,不存在则插入;不是主键,则插入;get
updateonly : 只会更新,不会插入;input
\\N \\\\\\Nstring