Remove a shared provider configuration

How to remove a shared provider configuration in Knox through Cloudera Manager.

You can remove shared provider configurations in Knox when they are no longer required.

Only non-referenced shared providers can be deleted. If a provider is being used by a descriptor, the provider cannot be deleted.

  1. In Cloudera Manager, select the Knox service.
  2. Go to Configuration.
  3. Find the Knox Gateway Advanced Configuration Snippet (Safety Valve) for conf/cdp-resources.xml advanced configuration snippet.
  4. Click the + icon, and add the following entries:
    • Set the Name to providerConfigs:[***PROVIDER_CONFIGURATION_NAME(S)***].
    • Set the Value to remove.
    In this example, we remove the myTestProviderConfig shared provider.

  5. Click the Save Changes(CTRL+S) button.
  6. Refresh the Knox instances configuration by clicking the Stale Configuration: Refresh needed indicator and wait until the refresh process completes.


  7. Verify that the shared provider configuration file has been removed by running the following command in the Command Line Interface (CLI):
    ls -al /var/lib/knox/gateway/conf/shared-providers/[***PROVIDER_CONFIGURATION_NAME***].json
  8. Check the output. If the file has been successfully removed, you will see the following message:
    ls: cannot access /var/lib/knox/gateway/conf/shared-providers/[***PROVIDER_CONFIGURATION_NAME***].json: No such file or directory