Manage licenses using the command line interface
You can set the license path environment variable, install the license files, update the license files, list the license files, 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_INSTALLED_LICENSE_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 variable on Linux
Edit your
/etc/environment
file with a text editor.Add this line in a convenient place (changing the path as explained above, if necessary):
export PENTAHO_INSTALLED_LICENSE_PATH=/home/pentaho/.installedLicenses.xml
You must log out and log back into the operating system for the change to take effect.
Verify that the variable is properly set.
env | grep PENTAHO_INSTALLED_LICENSE_PATH
The PENTAHO_INSTALLED_LICENSE_PATH variable is now set.
Set the license path environment variable on Windows
In Windows, right-click on Computer, then select Properties from context menu, then click Advanced System Settings.
The System Properties window will appear.
In the System Properties window, click the Advanced tab, then click Environment Variables.
In the System Variable section, click New.
A dialog box will ask for a variable name and value.
Type
PENTAHO_INSTALLED_LICENSE_PATH
into the name field, and the directory you intend to install licenses to plus.installedLicenses.xml
in the value field, then click OK.C:/pentaho/.installedLicenses.xml
In the parent window, click Apply Changes.
You must restart your computer for the change to take effect.
Verify that the variable is properly set, using a command prompt:
echo %PENTAHO_INSTALLED_LICENSE_PATH%
The PENTAHO_INSTALLED_LICENSE_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 .installedLicenses.xml
file is located.
Install or update license files from the command line
To install or update license files, follow the steps below.
Download the
.lic
file(s) you want to install.Navigate to the
/license-installer/
directory where Pentaho PDI tool is installed (thelicense-installer
subfolder).Copy your
.lic
files to the/license-installer/
directory.Run the license installation script:
Linux:
Run
install_license.sh
with the install switch and the location and name of your.lic
file as a parameter. You can specify multiple.lic
files separated by spaces. Be sure to use backslashes (\) to escape any spaces in the path or file name../install_license.sh install Pentaho\ BI\ Platform\ Enterprise\ Edition.lic
Windows:
Run
install_license.bat
with the install switch and the location and name of your license file as a parameter. Be sure to use quotation marks (") to escape any spaces in the path or file name.install_license.bat install "C:\Users\username\Downloads\Pentaho BI Platform Enterprise Edition.lic"
Repeat the previous step for all needed licenses.
List or remove license files from the command line
To list or remove license files, follow the steps below.
Navigate to the
/pentaho/server/license-installer/
directory.Run the following scripts with the
display
switch:Linux:
./install_license.sh display
Windows:
install_license.bat dis
If you have installed any Enterprise Edition license files, a list of them will appear, along with the products they cover and the duration of the license.
To remove a license, run the same script with the
uninstall
switch.A list of installed licenses will appear, followed by a prompt for the license ID you would like to remove. If you press Enter at this prompt, it will exit without taking any action.
Type in the license ID number that you want to remove, then press Enter.
After removing a file, if you had more than one installed, the list will regenerate and the prompt will reappear. You can choose to remove another license file, or you can press Enter to exit the script.
If you would prefer not to be prompted for confirmation, or if you intend to call this program as part of a script, use the -q
switch to suppress prompting.
Last updated
Was this helpful?