Hortonworks Streaming Analytics Manager User Guide
Also available as:
PDF

Uploading Custom Functions to SAM

About This Task

After you create and build the UDAF, you must upload it to SAM so that it is available in the Aggregate processor.

Steps

  1. From the left-hand menu, select Configuration and then Application Resources.

  2. Click the UDF tab.

  3. Click the Add icon to display Add UDF.

  4. Supply the following information, and then click Ok:

    • Name

      The internal name of the UDAF. This must be unique and should not conflict with any of the built-in aggregate functions.

    • Display Name

      What is displayed in the list of aggregate functions in the Aggregate processor UI.

    • Description

      Any textual description of the function to assist the user.

    • Type

      AGGREGATE for UDAFs or FUNCTION for UDFs.

    • Classname

      The fully qualified class name of the UDAF that is packaged in the .jar file.

    • UDF JAR

      The .jar file that you built using the maven project.

Result

Your new UDF or UDAF displays in the list of available functions.