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.
-
In Cloudera Manager, select the Knox service.
-
Go to Configuration.
-
Find the Knox Gateway Advanced Configuration Snippet (Safety Valve)
for conf/cdp-resources.xml advanced configuration snippet.
-
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.

-
Click the Save Changes(CTRL+S) button.
-
Refresh the Knox instances configuration by clicking the Stale
Configuration: Refresh needed indicator and wait until the
refresh process completes.
-
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
-
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