Failed with exception java.io.IOException:org.apache.hadoop.hive.serde2.SerDeException: org.codehaus
·
Failed with exception java.io.IOException:org.apache.hadoop.hive.serde2.SerDeException: org.codehaus.jackson.JsonParseException: Current token (VALUE_STRING) not numeric, can not use numeric value accessors
at [Source: java.io.ByteArrayInputStream@4e343265; line: 1, column: 363]
在执行hive数据装载的时候,加载完数据,查询数据的时候,提示上面这个错误,
经过排查发现是创建STRUCT结构的数据的时候,指定的数据类型是bigint,导入的数据却是string类型的,导致数据类型不匹配,所以在查询的时候,显示以上错误信息。
所以,解决方案是根据实际的业务评估调整源数据字段的数据类型或者修改hive的建表语句。
更多推荐
所有评论(0)