ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.RuntimeException: java.lang.RuntimeExcepti...

使用sqoop导入数据时报了如题的异常,异常的提示是

 The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'convertToNull' is not acceptable.

解决:

--connect jdbc:mysql://hadoop002:3306/company?zeroDateTimeBehavior=CONVERT_TO_NULL \

加了个参数zeroDateTimeBehavior=CONVERT_TO_NULL

之后重新执行可以正常导入了

转载于:https://www.cnblogs.com/tele-share/p/10015571.html

你可能感兴趣的:(java,大数据,数据库)