Configuring Cloudera client
After you generate the access key, go to the command line and run the following commands to configure the Cloudera client.
- On the command line, run the following command to configure the client with the access key:
cdp configure
- Enter the following information at the prompt:
- Cloudera Data Platform Access key. Copy and paste the access key ID that you generated in the Cloudera Management Console.
- 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
- To verify that the credentials were created correctly, run the following command:
cdp iam get-user
The command displays your Cloudera client credentials.
-
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:
- The endpoint-url from the command line or config file
- The --cdp-region argument from the command line (for example:
cdp iam get-user --cdp-region eu-1
- The cdp_region from the ~/.cdp/config file
- Default to us-west-1
For more information about Cloudera Control Plane regions, see Cloudera Control Plane regions.
-
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.