sqoop将mysql的tinyint类型转化为boolean类型

当mysql中的字段为tinyint类型时,通过sqoop导入数据到hdfs上,在hdfs上显示的是true,false值。为了显示0,1。

解决方法:

jdbc:mysql://<hostname>:<port>/<dbname>?tinyInt1isBit=false

原文地址:https://www.cnblogs.com/yandufeng/p/10304303.html