Adds a license. Permissions required: fc or a


The license can be specified either by passing the license string itself to license add, or by specifying a file containing the license string.

Syntax

CLI

maprcli license add
    [ -cluster <cluster> ]
    [ -is_file true|false ]
    -license <license>

REST

http[s]://<host>:<port>/rest/license/add?<parameters> 

Parameters



Parameter

Description

cluster

The cluster on which to run the command.

is_file

Specifies whether the license specifies a file. If false, the license parameter contains a long license string.

license

The license to add to the cluster. If -is_file is true, license specifies the filename of a license file. Otherwise, license contains the license string itself.

Examples

Adding a License from a File

To install a license from the command line:

  1. Obtain a valid license file from your MapR sale representative.
  2. Copy the license file to a cluster node, for example to /tmp/license.txt.
  3. Run the following command to add the license, assuming that the file /tmp/license.txt contains the license string:

CLI

maprcli license add -is_file true -license /tmp/license.txt
RESThttps://10.10.82.23:8443/rest/license/add?is_file=true&license=%2Ftmp%2Flicense.txt