How-to Guides
Creating Remote Execution Contexts
Add-on Feature
This feature is a paid add-on available for Business Hub Standard and Enterprise editions.
Administrators can create and manage remote execution contexts using the Hub UI.
Additional Option
This is available only for shared execution contexts created by Hub admins. It is possible to enable this feature for specific teams via the Hub API.
Create a new execution context from the Hub UI (see instructions in the admin guide)
When creating an execution context, switch Execution to Remote.
Important
This option can only be set during creation; you cannot change the executor provisioning mode for an existing context.
After creation, the context will remain in a Not configured state until the first executor is added.
Installing the Executor Agent (Linux)
Download and Install KNIME Analytics Platform (v5.8.1 or later):
KNIME Analytics Platform Already Installed?
If you already have an existing KNIME Analytics Platform installation on the machine, you can reuse it and skip the steps below. The executor requires KNIME Analytics Platform 5.8.1 or later, with the KNIME Executor Connector and the KNIME Remote Workflow Editor for Executor extensions installed. The full KNIME Analytics Platform distributions referenced in the steps below already include these extensions by default.
- Download the latest KNIME Analytics Platform version
shellcurl -L -o knime-full-latest-linux.gtk.x86_64.tar.gz https://download.knime.com/analytics-platform/linux/knime-full-latest-linux.gtk.x86_64.tar.gz- Extract the archive into a directory named "knime"
shellmkdir knime && tar xzf knime-full-latest-linux.gtk.x86_64.tar.gz -C knime --strip-components=1- (Optionally) Remove the downloaded archive
shellrm knime-full-latest-linux.gtk.x86_64.tar.gzDownload and Install KNIME Hub Executor Agent:
- Download KNIME Hub Executor Agent version
shellcurl -L -o knime-hub-executor-agent_latest_Linux_amd64.tar.gz http://download.knime.com/knime-hub-executor-agent/knime-hub-executor-agent_latest_Linux_amd64.tar.gz- Extract the archive
shelltar xzf knime-hub-executor-agent_latest_Linux_amd64.tar.gz- (Optionally) Remove the downloaded archive
shellrm knime-hub-executor-agent_latest_Linux_amd64.tar.gz- Make the agent executable
shellchmod +x knime-agentConfigure the Agent:
- Execute the command
shell./knime-agent configure --executor $PWD/knime/You will be prompted for the Hub URL and a connect token provided in the Hub UI.
Important
The value passed to
--executormust be the path to the KNIME Analytics Platform installation directory (the directory containing the knime.ini file). Adjust the path if you bring your own installation or move the installation. An absolute path is recommended in case you want to run the agent as a service.Start the Agent:
- Execute the command
shell./knime-agent startThe status in the Hub UI will change from Offline to Running.
Installing the Executor Agent (Windows)
Download and Install KNIME Analytics Platform (v5.8.1 or later):
KNIME Analytics Platform Already Installed?
If you already have an existing KNIME Analytics Platform installation on the machine, you can reuse it and skip the steps below. The executor requires KNIME Analytics Platform 5.8.1 or later, with the KNIME Executor Connector and the KNIME Remote Workflow Editor for Executor extensions installed. The full KNIME Analytics Platform distributions referenced in the steps below already include these extensions by default.
- (Optionally) If the following download is slow, disabling the progress bar might speed it up
powershell$ProgressPreference = 'SilentlyContinue'- Download the latest KNIME Analytics Platform version
powershellInvoke-WebRequest -Uri https://download.knime.com/analytics-platform/win/knime-full-latest-win32.win32.x86_64.zip -OutFile knime-full-latest-win32.win32.x86_64.zip- Extract the archive to folder "knime"
powershellAdd-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD/knime-full-latest-win32.win32.x86_64.zip", "$PWD")- Rename the extracted folder to "knime"
powershellGet-ChildItem -Directory -Filter 'knime-full_*' | Sort-Object LastWriteTime -Descending | Select-Object -First 1 | Rename-Item -NewName 'knime'- (Optionally) Remove the downloaded archive
powershellRemove-Item knime-full-latest-win32.win32.x86_64.zipInstall KNIME Hub Executor Agent:
- Download KNIME Hub Executor Agent version
powershellInvoke-WebRequest -Uri http://download.knime.com/knime-hub-executor-agent/knime-hub-executor-agent_latest_Windows_amd64.zip -OutFile knime-hub-executor-agent_latest_Windows_amd64.zip- Extract the archive
powershellAdd-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD/knime-hub-executor-agent_latest_Windows_amd64.zip", "$PWD")- (Optionally) Remove the downloaded archive
powershellRemove-Item knime-hub-executor-agent_latest_Windows_amd64.zipConfigure the Agent:
- Execute the command
powershell.\knime-agent.exe configure --executor $PWD\knime\You will be prompted for the Hub URL and a connect token provided in the Hub UI.
Important
The value passed to
--executormust be the path to the KNIME Analytics Platform installation directory (the directory containing the knime.ini file). Adjust the path if you bring your own installation or move the installation. An absolute path is recommended in case you want to run the agent as a service.Start the Agent:
- Execute the command
powershell.\knime-agent.exe startThe status in the Hub UI will change from Offline to Running.
Configuring the Agent as a System Service (Linux)
To ensure the Agent automatically starts upon host restart, create a systemd unit file at /etc/systemd/system/knime-agent.service:
shell
[Unit]
Description=KNIME Hub Executor Agent
After=network.target
[Service]
Type=simple
User=<non-root user>
Group=<non-root group>
WorkingDirectory=<path to the agent>
ExecStart=<path to the agent>/knime-agent start
Restart=always
[Install]
WantedBy=multi-user.targetRemoving and Revoking Remote Executors
- Revoking via Hub UI: Removing an executor in the Hub UI revokes its credentials. The installation on the remote machine remains, but future connection attempts will be rejected.
- Decommissioning: If an agent is uninstalled or a machine is terminated, it will stay in the Hub UI as Offline. Administrators must explicitly remove it to clean up the entry and free up vCore licenses.
Enabling Remote Execution (On-Premise)
For on-prem installations, an administrator must enable the feature in the KOTS admin page by checking the Enable Remote Execution checkbox in the Remote Execution section.