Creating the Databus credentials

Databus credentials are needed to establish secure connections for the Metering V2 service to transmit metrics.

Ensure that you have the following:
  • A Cloudera user account that can be promoted to Full Administrator role in Cloudera Manager.
  • Grants to create API keys and Machine Users in Cloudera User Management Service (UMS).
  1. Create a new Machine User by following Creating a machine user in Cloudera.
  2. Retrieve the DatabaseUploader role CRN:
    cdp iam list-roles | grep “altus:role:DbusUploader”
  3. Update machine user with DatabaseUploader role:
    cdp iam assign-machine-user-role --machine-user-name ***USER-NAME-FROM-STEP1*** --role ***CRN-FROM-STEP-2***
  4. Create API Access Keys
    cdp iam create-machine-user-access-key --machine-user-name ***USER-NAME-FROM-STEP1***
  5. Record the accessKeyId and the privateKey for use later:
    {
        "accessKey": {
            "accessKeyId": "abc",
            "crn": "",
            "actorCrn": "",
            "creationDate": "",
            "status": "ACTIVE",
            "type": "V2"
        },
        "privateKey": "abc"
    }
    
  6. In the CRN value from the JSON in the previous step, record the region and the account number. For example, the Region (us-west-1) and Tenant ID (215d3903-333d-45ae-8824-6a4a85e17e22) are highlighted in the example CRN:
    crn:altus:iam:***REGION***:***TENANT-ID***:accesskey:***ACCESS-KEY***
    crn:altus:iam:us-west-1:215d3903-333d-45ae-8824-6a4a85e17e22:accesskey:b940b1ef-3ef7-425f-9140-2709990f544c