0

我在 hive 中使用时编写了一个 hive UDAF。它抛出 NullPointException
代码和整个任务日志粘贴在 github gist --> https://gist.github.com/hellojinjie/6750572

知道为什么它会抛出 NullPointException 吗?

或者为什么它说:
stderr logs java.lang.reflect.InvocationTargetException Continuing ... java.lang.IllegalArgumentException: Unbound variable: GenericUDAFCdnBytesLoaded$GenericUDAFCdnBytesLoadedEvaluator0 Continuing ...

4

1 回答 1

0

UDAT 需要扩展 AbstractGenericUDAFResolver

https://github.com/hellojinjie/hive-function/blob/d321281f67c357f50e8d3f98252c65682049da06/src/main/java/shaman/hive/udf/GenericUDAFCdnBytesLoaded.java

于 2013-10-31T04:01:32.080 回答