Configuring OAuth with core-site.xml

Configuring your OAuth credentials in core-site.xml is insecure. Cloudera recommends that you only use this method for development environments or other environments where security is not a concern.

Perform the following steps to connect your cluster to ADLS Gen2:

  1. In the Cloudera Manager Admin Console, search for the following property: Cluster-wide Advanced Configuration Snippet (Safety Valve) for core-site.xml. .
  2. Add the following properties and values:
    Table 1. OAuth Properties
    Name Value OAuth org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider Provide your tenant ID:<Tenant_ID>/oauth2/token Provide your <Client_ID> Provide your <Client_Secret>
In addition, you can also provide account-specific keys. To do this, you need to add the following suffix to the key: