Manage licenses using the command line interface
You can set the license path environment variable or you can install, update, list, or remove license files.
Setting the license path environment variable
To ensure that the Pentaho Server uses the same location to store and retrieve your Pentaho licenses, you must create a PENTAHO_LICENSE_INFORMATION_PATH system environment variable for your Pentaho user account if it does not exist. It does not matter what location you choose; however, the location needs to be available to the user account(s) that run the Pentaho Server.
Set the license path environment variable on Linux
Perform the following steps to set the environment variable for the license path in Linux.
Open the
/etc/environment
file with any text editor.Add this line in a convenient place (changing the path if necessary):
export PENTAHO_LICENSE_INFORMATION_PATH=/home/pentaho/.elmLicInfo.plt
The license information file is saved in the
/home/user/…/.pentaho
folder.Log out and log back into the operating system for the change to take effect.
Verify that the variable is properly set using the following command.
env | grep PENTAHO_LICENSE_INFORMATION_PATH
The PENTAHO_LICENSE_INFORMATION_PATH variable is now set.
Set the license path environment variable on Windows
Perform the following steps to set the environment variable for the license path in Windows.
Move the installed license .elmLicInfo.plt
file from where it was installed (C:\Users\<user>\.pentaho
) to C:\Windows\ServiceProfiles\LocalService\.pentaho
or to the location where you are running the Windows service.
Under Windows settings, locate and open the Windows system environment variables file for editing.
In the System Variable section, click New.
A dialog box will ask for a variable name and value.
Type
PENTAHO_LICENSE_INFORMATION_PATH
into the name field, and specify the directory where you intend to install the licenses. Type.elmLicInfo.plt
in the value field, then click OK.C:/pentaho/.elmLicInfo.plt
The license information file is saved in the
/home/user/…/.pentaho
folder.In the parent window, click Apply Changes.
Restart your computer for the change to take effect.
Verify that the variable is properly set, using the following command at the command prompt:
echo %PENTAHO_LICENSE_INFORMATION_PATH%
The PENTAHO_LICENSE_INFORMATION_PATH variable is now set.
If you run Tomcat automatically as a Windows service, you must also configure it to run on the Windows user account where the .elmLicInfo.plt
file is located.
Install or update license files from the command line
To install or update license files, follow the steps below.
Navigate to the
/license-installer/
directory where the Pentaho PDI tool is installed (thelicense-installer
subfolder).Run the license installation script as follows to see examples of how to use it:
Linux:
install_license.sh --help
MacOS:
install_license.sh --help
Windows:
install_license.bat --help
Last updated
Was this helpful?