Sets the license Key.

Table of contents


SET LICENSE license_key


SET LICENSE registers a license key that will enable CrateDB to operate in Enterprise Edition until the license expiry date.


Should the license registration fail, the cluster will continue to operate in the existing mode e.g. Enterprise Edition as long as the current license is still valid (i.e. not expired).

When the existing licence expires, the cluster will run in a degraded mode, allowing only read only system information operations and the SET LICENSE statement. Switching to the Community Edition is an alternative. For more details on that see Enterprise features.


License Key

The license_key parameter is the encoded representation of a CrateDB license that CrateIO will provide.

See also

You can view the current license by querying the sys.cluster table. See Cluster license.


How helpful was this page?