Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-22314

Accessing Hive UDFs defined without 'USING JAR' from Spark

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.2.0
    • None
    • Spark Core

    Description

      When defining UDF functions in Hive it is possible to load the UDF jar(s) from a shared location e.g. from hive.reloadable.aux.jars.path, and then use the CREATE FUNCTION statement:

      CREATE FUNCTION <your_function_name> AS '<fully_qualified_class_name>';

      These UDFs are not working from Spark unless you use the

      CREATE FUNCTION <your_function_name> AS '<fully_qualified_class_name>' USING JAR 'hdfs:///<path/to/jar/in/hdfs>';
      command to create the Hive UDF function.

      Attachments

        Activity

          People

            Unassigned Unassigned
            morhidi Matyas Orhidi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: