Using Materialized Views in SQL Stream BuilderPDF version

Configuring Materialized View database information

In CDP Public Cloud, PostgreSQL is automatically configured for SQL Stream Builder (SSB) when creating your Data Hub cluster using the Streaming Analytics cluster template. You can review the database configuration for SSB using Cloudera Manager.

SSB uses PostgreSQL database to store the queried data of the Materialized View feature. In CDP Public Cloud, you can only use PostgreSQL as a database for SSB. In case you need to connect to the PostgreSQL database of SSB, you can review the necessary information of the database in Cloudera Manager. You can also configure the user and the password of the database using CLI, and then updating the existing information in Cloudera Manager.
  1. Navigate to Management Console > Environments, and select the environment where you have created your cluster.
  2. Select Cloudera Manager from the services.
  3. Select Configuration>Database Settings.
  4. Select sql_stream_builder from Scope to filter down the configuration properties.
    The following information is listed about the PostgreSQL database:
    • Database Name
    • Database Host
    • Database Port
    • Database User
    • Database Password
When you want to change the default configuration of PostgreSQL database, first you need to change the information in PostgreSQL and then update the configuration in Cloudera Manager for SSB.
  1. Connect to the database host using ssh.
    ssh <workload_username>@<database_host>
    Password: <your_workload_password>
  2. Connect to PostgreSQL.
    sudo -U postgres psql
  3. Change the username or the password for the database.
    ALTER USER eventador_admin WITH PASSWORD <new_password>;
    ALTER USER eventador_admin RENAME TO <new_username>;
    After changing the password or username, you need to update the database information in Cloudera Manager.
  4. Navigate to Management Console > Environments, and select the environment where you have created your cluster.
  5. Select Cloudera Manager from the services.
    You are redirected to the Cloudera Manager user interface.
  6. Select Configuration>Database Settings.
  7. Select sql_stream_builder from Scope to filter down the configuration properties.
  8. Update the Database user or the Database password field based on the new parameters you provided in PostgreSQL.

We want your opinion

How can we improve this page?

What kind of feedback do you have?