Offline licensing

Offline licensing in Pentaho Data Catalog enables you to activate and validate product licenses without requiring network connectivity to an external licensing server. This is ideal for secure or air-gapped environments. The license validation is performed locally using an offline license file provided by Pentaho support. Feature enforcement behavior remains consistent with online licensing. Switching between online and offline licensing affects only the license validation mechanism and does not modify existing metadata, assets, or configuration data within Data Catalog.

Configure offline licensing in Data Catalog

Configuring offline licensing in Data Catalog determines how the application validates license entitlements. Data Catalog uses the LICENSING_OFFLINE_INSTALL environment variable to determine whether to validate licenses via an external licensing service or an offline license file stored locally.

This configuration applies at the application level and affects all license validation behavior.

Perform the following steps to configure Data Catalog to use offline licensing instead of online licensing.

Before you begin

  • Ensure that you have administrator access to the PDC deployment environment.

  • Verify that you have access to the PDC deployment configuration files.

  • Obtain the offline license file from Pentaho support. The license file is uploaded in a later step.

Procedure

  1. In a terminal window, navigate to the pdc-docker-deployment folder and open the hidden environment variable configuration file (.env). This file is located in the /opt folder by default.

  2. Verify the system environment variables set in the /opt/pentaho/pdc-docker-deployment/vendor/.env.default file.

  3. Locate or add the following environment variable:

    LICENSING_OFFLINE_INSTALL

  4. Set the environment variable to true to enable offline licensing. By default, this variable is set to false, which enables online licensing.

  5. Save the configuration file and restart Data Catalog.

    ./pdc.sh stop
    ./pdc.sh up

Result

Data Catalog starts in offline licensing mode when LICENSING_OFFLINE_INSTALL is set to true. In this mode, Data Catalog does not attempt to connect to an external licensing server and waits for an offline license file to be uploaded.

Licensed features remain unavailable until a valid offline license file is uploaded.

Next steps

Upload the offline license file to activate licensed features. See Upload an Offline License File for instructions.

Upload an offline license file

Once you configure offline licensing by setting LICENSING_OFFLINE_INSTALL=true in the deployment configuration and restarting PDC, you should upload an offline license file to Data Catalog using PDC APIs and activate licensed features.

Perform the following steps to upload the offline license file using PDC Licensing APIs:

Before you begin

  • Ensure that you have administrator credentials to authenticate with the PDC Public APIs.

  • Obtain the offline license file provided by Pentaho support.

Procedure

  1. Access the PDC API Swagger UI for your environment.

    This page lists all available PDC API endpoints grouped by domain.

  2. Authenticate to obtain an access token. For more information, see Authenticationarrow-up-right in PDC API documentation. Use the same authentication method and credentials that you use to access the PDC user interface. The authentication process returns a bearer token that you must include in subsequent API requests.

  3. Upload the offline license file using the licensing upload API.

    1. Use the following endpoint to upload the license file and associate it with a device identifier:

      POST /api/public/v1/licensing/uploadLicense

    2. Include the required request parameters:

      • deviceId: A unique identifier for the deployment. This value can be any valid identifier.

      • fileData: The offline license file provided by Hitachi Vantara. The following example shows a sample curl request:

  4. Submit the request.

Result

When the upload is successful, Data Catalog stores the offline license file in its internal database and processes the license entitlements. Licensed features become available immediately based on the permissions and limits defined in the license file.

If the upload fails, the response indicates the reason for the failure, such as an invalid license file or missing authentication.

Next steps

  • Verify that the licensed features are available in the Data Catalog user interface.

  • Securely store the offline license file in accordance with your organization’s security policies.

Last updated

Was this helpful?