You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Takeshi Yamamuro (Jira)" <ji...@apache.org> on 2019/12/28 05:38:00 UTC

[jira] [Resolved] (SPARK-28670) [UDF] create permanent UDF does not throw Exception if jar does not exist in HDFS path or Local

     [ https://issues.apache.org/jira/browse/SPARK-28670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Takeshi Yamamuro resolved SPARK-28670.
--------------------------------------
    Fix Version/s: 3.0.0
         Assignee: Sandeep Katta
       Resolution: Fixed

Resolved by https://github.com/apache/spark/pull/25399

> [UDF] create permanent UDF does not throw Exception if jar does not exist in HDFS path or Local
> -----------------------------------------------------------------------------------------------
>
>                 Key: SPARK-28670
>                 URL: https://issues.apache.org/jira/browse/SPARK-28670
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: ABHISHEK KUMAR GUPTA
>            Assignee: Sandeep Katta
>            Priority: Minor
>             Fix For: 3.0.0
>
>
>  jdbc:hive2://10.18.18.214:23040/default> create function addm  AS 'com.huawei.bigdata.hive.example.udf.AddDoublesUDF' using jar 'hdfs://hacluster/user/AddDoublesUDF1.jar';
> +---------+--+
> | Result  |
> +---------+--+
> +---------+--+
> No rows selected (0.241 seconds)
> 0: jdbc:hive2://10.18.18.214:23040/default> create temporary function addm  AS 'com.huawei.bigdata.hive.example.udf.AddDoublesUDF' using jar 'hdfs://hacluster/user/AddDoublesUDF1.jar';
> INFO  : converting to local hdfs://hacluster/user/AddDoublesUDF1.jar
> ERROR : Failed to read external resource hdfs://hacluster/user/AddDoublesUDF1.jar
> java.lang.RuntimeException: Failed to read external resource hdfs://hacluster/user/AddDoublesUDF1.jar
>         at org.apache.hadoop.hive.ql.session.SessionState.downloadResource(SessionState.java:1288)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org