DataX从hive导出数据到mysql报错,无法将hive表中数据内容导入mysql

ERROR StdoutPluginCollector - 脏数据: 
{"message":"No enum constant com.alibaba.datax.plugin.unstructuredstorage.reader.UnstructuredStorageReaderUtil.Type.BIGINT","record":[{"byteSize":2,"index":0,"rawData":"城市","type":"STRING"},{"byteSize":0,"index":1,"rawData":"","type":"STRING"},{"byteSize":6,"index":2,"rawData":"临沂市分公司","type":"STRING"},{"byteSize":2,"index":3,"rawData":"二级","type":"STRING"},{"byteSize":0,"index":4,"rawData":"","type":"STRING"},{"byteSize":4,"index":5,"rawData":"书房家具","type":"STRING"}],"type":"reader"}

解决办法

脏数据类型错误

由于DataX不能完全支持所有Hive表的数据类型,应将DataX启动文件中的hdfsreader中的column字段的类型改成DataX支持的类型

DataX从hive导出数据到mysql报错,无法将hive表中数据内容导入mysql_第1张图片

再重新执行DataX启动脚本即可

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