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.

  1. Go to Cloudera Manager > Clusters > Knox > Configuration > Advanced Configuration Snippet (Safety Valve) for conf/gateway-site.xml
  2. Add the gateway.knox.admin.users parameter.
  3. Add the gateway.knox.admin.groups parameter.
  4. Add 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.
      Figure 1. Editing the token limit per user
    Figure 2. Adding the admin user and group
  5. Click Save Changes and refresh the configuration as needed.

Continue with configuring the Knox IDBroker.