Configuring the Knox gateway-site.xml

Learn how to configure Knox parameters to allow admin permissions in Knox. Admin permission is required to create the CLIENT_ID and CLIENT_SECRET.

The CLIENT_ID and CLIENT_SECRET is required for creating Data Shares to authorize your external clients.

  • The Cloudera on cloud user must be configured as both Knox and Ranger Admin to perform the tasks required to configure Knox parameters.
  • Knox topologies are automatically deployed. Editing the token lifetime (KNOXTOKEN:knox.token.ttl) and the token allowance per user (KNOXTOKEN:knox.token.limit.per.user) is applicable to all topologies, but can be overridden by individual topology settings.
  1. Go to Cloudera Manager > Clusters > Knox > Configuration > Advanced Configuration Snippet (Safety Valve) for conf/gateway-site.xml
    1. Add the gateway.knox.admin.users parameter.
    2. Add the gateway.knox.admin.groups parameter.
  2. Click Save Changes.
  3. Set the Knox token limit parameter:
    1. Cloudera Manager > Clusters > Knox > Configuration.
    2. Search for gateway.knox.token.limit.per.user, then set the value of the parameter.
  4. Click Save Changes and refresh the configuration as needed.

Continue with configuring the Knox IDBroker.