Set up the external databases
You must set up the external databases to be used with CDP Private Cloud Experiences. You must enable the base cluster PostgreSQL database to use an SSL connection to encrypt client-server communication as a requirement for Cloudera Data Warehouse (CDW) experience.
To set up the external databases for Private Cloud, complete the following steps:
- Install PostgreSQL 10.6 or higher.
- In the
postgresql.conf
file, set the following parameters:parameters listen_addresses = '*'
max_connections = 1000
- In the
pg_hba.conf
file, add the following lines:host all all 0.0.0.0/0 md5 host all all ::/0 md5
- Restart the Postgres server.
- Create the databases and database user that were used during the Control Plane installation.
To enable SSL, which is a requirement for CDW, complete the following steps:
- Place a leaf certificate, and the certificate's private key on the Postgres server.
- In the
postgresql.conf
file, set the following parameters- Set the
ssl_cert_file
parameter to the location of the leaf certificate. - Set the
ssl_key_file
parameter to the location of the key file.
- Set the
- Set
ssl=on
in thepostgresql.conf
file. - In the
postgresql.conf
file, set the following parameters:parameters listen_addresses = '*'
max_connections = 1000
- In the
pg_hba.conf
file, add the following lines:host all all 0.0.0.0/0 md5 host all all ::/0 md5
- Restart the Postgres server.
- When you are prompted, upload the CA that signed the leaf certificate, to the Cloudera Manager UI.
- Create the databases and database user that were used during the Control Plane installation.