1、mysql資料導入到hdfs
sqoop import \ --driver com.mysql.jdbc.Driver \ --connect jdbc:mysql://host/database \ --username xxx \ --password xxx \ --table mysqltable \ --target-dir /user/test/ \ --delete-target-dir \
結果:表mysqltable有一個字段是imei,為blob資料類型,然後導出後檔案為
00 02 31 24的ASCII碼表示
2、解決方案
添加該配置
--map-column-java imei=String