Setting default credentials using Cloudera Manager

In scenarios where you need to set a credential for every action of every workflow, you can set the credential definitions and its usages using Cloudera Manager. You can also set these as the default configurations.

  1. In Cloudera Manager, click the Oozie service.
  2. Click the Configuration tab.
  3. Search for action_conf and add the following in the Oozie Server Advanced Configuration Snippet (Safety Valve) for action-conf/default.xml field:
    Definition (can be seen by all the actions started by Oozie)
    
    Name: oozie.action.credentials.filesystem.myCustomCredential
    Value: s3a://<bucket-name>
    
    Name: oozie.action.credentials.filesystem.myotherCustomCredential
    Value: abfs://<bucket-name>
    Usage (applies to all the actions started by Oozie)
    
    Name: oozie.action.credentials.filesystem
    Value: myCustomCredential,myotherCustomCredential
  4. Click Save Changes on the bottom right corner.
    Cloudera Manager - Oozie service configuration page
  5. Click Stale Service Restart that is next to the Oozie service name.
  6. Review the properties added to the default action configuration. All these properties will be available in every Oozie action.
    Cloudera Manager - Oozie service stale configurations
  7. Click Restart Stale Services to make this change happen on the Oozie instances.