This documentation applies to Release 4.0. As of Release 4.1, the Pig running environment is no longer available. You can follow these steps on a pre-Release 4.1 instance to convert your Python UDFs to Java UDFs. This content will be removed in a future release.
Deprecation of Python UDFs
As Release 4.1, Python UDFs are no longer available in the platform. You must transition or author UDFs in Java. Details are below.
In Release 4.0 introduces Spark as the default running environment for Hadoop job execution. This environment does not support the execution of Python UDFs.
NOTE: Environments that have been upgraded to Release 4.0 are automatically switched to using Spark as the default running environment. To complete these steps, you must re-enable Pig as the default running environment, which is described below.
This section describes the general process for converting existing Python UDFs to Java UDFs in a production environment.
NOTE: Development of user-defined functions is a developer-level skill.
- After you have upgraded to Release 4.0, you must re-enable Pig for job execution. See Running Environment Options.
- For each of your existing Python UDFs, author a new one in Java:
- This new UDF must have the same name and schema.
- Deploy each new Java UDF to the Alteryx node.
- For more information on authoring and deployment, see Java UDFs.
- When all of your existing Python UDFs have been converted to Java and installed on the Alteryx node, enable the Spark running environment on the node. See Running Environment Options.
- At this point:
- When you select Run on Alteryx Server , the Photon running environment uses the Python UDFs.
- When you select Run in Hadoop, the Spark running environment uses the Java UDFs.
- Verify job results of executions on each running environment for each of your Python UDFs.
- Remove the Python UDFs from the Alteryx node.
For Release 4.1 upgrade:
- Python UDF service will be removed.
- All Python UDFs will be deleted from the platform.
TODAY and NOW functions are part of application
In previous releases, the Python UDF documentation included examples on how to create the TODAY() and NOW() functions. These functions are now available through the application by default.
- See TODAY Function.
- See NOW Function.
This page has no comments.