
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表中的BIGINT类型数据。错误信息提示DataX不支持此类型。为解决该问题,需要调整DataX启动配置,将HdfsReader中的列类型转换为DataX兼容的类型。完成类型转换后,重新运行DataX任务,可以成功导入数据。
最低0.47元/天 解锁文章
1675

被折叠的 条评论
为什么被折叠?



