Configuring Cloudera client

After you generate the access key, go to the command line and run the following commands to configure the Cloudera client.

  1. On the command line, run the following command to configure the client with the access key:
    cdp configure
  2. Enter the following information at the prompt:
    1. Cloudera Data Platform Access key. Copy and paste the access key ID that you generated in the Cloudera Management Console.
    2. Cloudera Data Platform Private key. Copy and paste the private key that you generated in the Cloudera Management Console.

    The configuration utility creates the following file to store your user credentials:

    ~/.cdp/credentials
  3. To verify that the credentials were created correctly, run the following command:
    cdp iam get-user

    The command displays your Cloudera client credentials.

  4. Optionally, configure the Cloudera client to use the correct Cloudera Control Plane region. In the ~/.cdp/config file, set the Control Plane region as follows:
    cdp_region = <CONTROL_PLANE_REGION>

    For example: cdp_region = eu-1

    The CDP CLI chooses the endpoint URL in the following order:

    1. The endpoint-url from the command line or config file
    2. The --cdp-region argument from the command line (for example: cdp iam get-user --cdp-region eu-1
    3. The cdp_region from the ~/.cdp/config file
    4. Default to us-west-1

    For more information about Cloudera Control Plane regions, see Cloudera Control Plane regions.

  5. After you configure the client, go back to the Cloudera Management Console and click OK to exit the access key window. Note that a login command is not required if access credentials are stored in the ~/.cdp/credentials file.