You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "FengWu (Jira)" <ji...@apache.org> on 2019/12/13 07:34:00 UTC

[jira] [Created] (HIVE-22643) Unable to execute method public java.lang.String udf.IpCityName.evaluate(java.lang.String) on object udf.IpCityName@2edadd75 of class udf.IpCityName with arguments {113.***.****.151:java.lang.String} of size 1

FengWu created HIVE-22643:
-----------------------------

             Summary: Unable to execute method public java.lang.String udf.IpCityName.evaluate(java.lang.String)  on object udf.IpCityName@2edadd75 of class udf.IpCityName with arguments {113.***.****.151:java.lang.String} of size 1
                 Key: HIVE-22643
                 URL: https://issues.apache.org/jira/browse/HIVE-22643
             Project: Hive
          Issue Type: Task
          Components: UDF
    Affects Versions: 2.1.1
            Reporter: FengWu
         Attachments: IpProvinceCode.java

hello,i want to use  udf to Resolve IP address,a local file is need.i want to create a new static object,but its error when run the sql.

if you cant understand,please check the javafile....thanks

 

//我想用udf函数来解析ip地址,需要引用一个本体文件来创建一个实例对象City,但是定义成全局变量会出错,请问该怎么写。

create temporary function IpCityName as 'udf.IpCityName' 可以成功,但是运行时候会报错。



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