Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Aggregator transformation
  6. Cleanse transformation
  7. Data Masking transformation
  8. Deduplicate transformation
  9. Expression transformation
  10. Filter transformation
  11. Hierarchy Builder transformation
  12. Hierarchy Parser transformation
  13. Hierarchy Processor transformation
  14. Input transformation
  15. Java transformation
  16. Java transformation API reference
  17. Joiner transformation
  18. Labeler transformation
  19. Lookup transformation
  20. Mapplet transformation
  21. Normalizer transformation
  22. Output transformation
  23. Parse transformation
  24. Python transformation
  25. Rank transformation
  26. Router transformation
  27. Rule Specification transformation
  28. Sequence Generator transformation
  29. Sorter transformation
  30. SQL transformation
  31. Structure Parser transformation
  32. Transaction Control transformation
  33. Union transformation
  34. Velocity transformation
  35. Verifier transformation
  36. Web Services transformation

Transformations

Transformations

Installing and configuring Python

Installing and configuring Python

To use the Python transformation with additional libraries, the runtime environment must have access to an installation of Python and the resource files that you reference in the Python code. When you install Python, you can include any third-party libraries such as numpy, scikit-learn, and cv2. You can access the third-party libraries in the Python code.
If you have a custom Python installation, you cannot perform a test run of the mapping. You must create a mapping task based on the elastic mapping and provide
advanced.custom.property
for the advanced session property.
Install Python and add resource files based on the type of runtime environment:
Runtime environment
Add the Python installation in the following directory on the Secure Agent machine:
<Secure Agent installation directory>/ext/python/
If you reference resource files in the Python code, add the resource files to the same directory. To maintain consistency, you can store the resource files in a dedicated folder named python_resources.
Consider the following guidelines:
  • If the Secure Agent machine stops unexpectedly and the agent restarts on a different machine, you must add the Python installation and resource files to the same directory on the new machine.
  • If you update the Python installation or resource files on the Secure Agent machine, the files take effect the next time that you run a job on the elastic cluster.
  • To prevent long-running jobs from failing, do not update the files on the Secure Agent machine more than four times while you have jobs running.
Serverless runtime environment
Install Python and add resource files in the supplementary file location.
If you update the Python installation or resource files, you must redeploy the serverless runtime environment for the changes to take effect.
For more information about the supplementary file location, see
Administrator
in the Administrator help.