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

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

解决方法:

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

posted @ 2019-01-22 15:52  峰峰仔  阅读(906)  评论(0编辑  收藏  举报