简体   繁体   English

自定义SerDe的配置单元异常

[英]Hive exception with custom SerDe

I'm trying to use hive with a custom SerDe and StorageHandler classes. 我正在尝试将蜂巢与自定义SerDe和StorageHandler类一起使用。 When I try to run a hive query using the new SerDe, I get the following exception with no other details. 当我尝试使用新的SerDe运行配置单元查询时,出现以下异常,没有其他详细信息。

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. 失败:执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask返回代码1。 java.lang.RuntimeException: java.lang.reflect.InvocationTargetException java.lang.RuntimeException:java.lang.reflect.InvocationTargetException

I tried logging information inside the StorageHandler and it seems it was created successfully but the SerDe initialize function wasn't called. 我尝试在StorageHandler内记录信息,看来它已成功创建,但未调用SerDe初始化函数。

Is there an obvious reason for this exception or an easy way to debug it ? 是否有明显的原因会导致这种异常,或者是否有简单的调试方法?

Thanks 谢谢

不好的是,我只查看了hive CLI中生成的日志,没有检查/tmp/$user/hive.log ,问题是生成的jar中缺少类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM