Creating a database using CDP CLI

You can create an operational database in your registered environment using CDP CLI Beta.

  • You must download and install the latest CDP CLI beta version.
  • Understand Cloudera environment and user management. For more information, see User Management and Cloudera Environments topics.
  • Set up an environment that gives you credential and cloud storage.
  • Ensure you are authorized to create a database.
  • Required role: You must be logged into the Cloudera Operational Database as an ODAdmin.
  • You can create a Cloudera Operational Database in an AWS, GCP, or Azure environment.
  1. Log in to the CDP CLI beta tool.
  2. Enter the following command:

    cdp opdb create-database --environment-name cod7215 --database-name test123

    Pass the --use-hdfs flag to create a database for Cloudera Operational Database using HDFS storage.

    If you pass --no-use-hdfs flag or do not pass any flag, the database for Cloudera Operational Database is created using cloud storage. For example, Amazon S3, GCS, or ABFS.

Your new database is ready for use.