I wrote a test.sql file and ran it with hive. I got the error when hive was parsing to the code(show below):
[CODE]:
CREATE TEMPORARY FUNCTION foo AS "com.mytest.udaf.HelloWorldFoo";
[ERROR]:
This query failes with the error: "Execution Error, return code -101 from
org.apache.hadoop.hive.ql.exec.FunctionTask"
PS: Hadoop was running on Java 6.
the problem was that the UDAF class was compiled with Java 7 and Hadoop was running on Java 6.
关注阿布的进击,获取最新信息

本文介绍了一个关于Hive使用自定义聚合函数(UDAF)时遇到的错误案例。错误原因是UDAF使用了较高版本的Java编译,而Hadoop运行在较低版本的Java上。文章详细说明了解决这一兼容性问题的方法。
1万+

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



