Uploaded image for project: 'Hive'
  1. Hive
  2. 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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.1
    • None
    • UDF
    • None

    Description

      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' 可以成功,但是运行时候会报错。

      Attachments

        1. IpProvinceCode.java
          1 kB
          FengWu

        Activity

          People

            zhangbutao Butao Zhang
            FengWu FengWu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: