[
https://issues.apache.org/jira/browse/IMPALA-10997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17489752#comment-17489752
]
ASF subversion and git services commented on IMPALA-10997:
----------------------------------------------------------
Commit 4bcc29f256acf751d168aacc0c3b14bcbfed5c10 in impala's branch
refs/heads/master from Steve Carlin
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=4bcc29f ]
IMPALA-11109: Catch class loading error for UDFs.
Fixes regression caused by IMPALA-10997.
If a UDF fails to load, an exception needs to be caught
and logged or else catalogd will not start up. The
method HiveLegacyJavaFunction.extract() will catch any hidden
exception thrown, and rethrow it as a CatalogException. The caller
already handles the CatalogException and logs the message
appropriately. The specific "hidden" exception thrown in our
regression tests was a "ClassNotFoundException", but in case
there are other exceptions that are thrown, we catch the generic
"Throwable" exception because the "extract" method should not
prevent the server from coming up.
Change-Id: I16813209cd4c2367c45e569c2aac13eff7ce2dbf
Reviewed-on: http://gerrit.cloudera.org:8080/18207
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Csaba Ringhofer <[email protected]>
> Refactor code for UDF implementation
> ------------------------------------
>
> Key: IMPALA-10997
> URL: https://issues.apache.org/jira/browse/IMPALA-10997
> Project: IMPALA
> Issue Type: Improvement
> Components: Frontend
> Reporter: Steve Carlin
> Priority: Major
>
> In its current form, Impala supports Java UDFs that are derived from the
> UDF.class.
> The UDF.class is legacy code and Hive now supports implementation off of the
> GenericUDF.class.
> This Jira is to track the refactoring the current UDF code to allow easier
> implementation when we eventually support the newer class. Common code will
> be put in a base HiveExecutor class and UDF.class specific code will be in a
> derived class.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]