Prerequisite tasks
Configure Google Colab and Pentaho Data Integration (PDI) for machine learning.
Google Colab
Colab runs Jupyter notebooks in your browser. It includes preconfigured runtimes for common ML libraries.

Linux (Ubuntu/Debian)
Install or verify Python
Update packages:
Verify Python:
Install ML libraries (venv)
Install these libraries:
h2opandasnumpymatplotlibpy4j

Install R and rJava
R is required only if you plan to run R steps in PDI.
Install R:
Verify:
Install & configure rJava:
Install rJava from source:
Verify rJava:
Configure PDI for R integration
Set environment variables
You can get the paths from R:
Edit /etc/environment and set the values for your system (new terminal):
Example:
Ensure PATH includes your /usr/lib/R/bin directory:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/R/bin"
Copy libjri.so into Spoon’s native lib directory:
Validate with a simple R transformation
Start PDI:
Create a transformation with an R Script Executor step:

Use this script:
Click Test Script:

Last updated
Was this helpful?
