Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This will create a build subdirectory containing the compile compiled plugin: pdk-test-udf-0.1.jar. There's also a build/metadata directory containing add-jar.sql (demonstrating the command to use to load the plugin jar) and class-registration.sql (demonstrating the commands to use for loading the UDF's from the plugin).

You can run the tests associated with the plugin via

Code Block

ant -Dhive.install.dir=../.. test

If all is well, you should see output like

Code Block

Buildfile: /hive-0.8.0-SNAPSHOT/examples/test-plugin/build.xml

get-class-list:

test:
    [junit] Running org.apache.hive.pdk.PluginTest
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 38.955 sec

BUILD SUCCESSFUL