Use the following steps to manually create the users and databases required by the platform in PostgreSQL. Launch PostgreSQLPre-requisites for PostgreSQL: - The installing user must have write permissions to the directory from which the commands are executed.
- The installing user must have sudo privileges.
Switch to the Postgres user. Launch psql. Code Block |
---|
sudo su - postgres |
Info |
---|
NOTE: Unless the port number for postgres has been modified, it should be listening at the default value: 5432 . |
Launch psql using the following command, applying the admin password when prompted: Code Block |
---|
psql --host=${POSTGRES_HOST_NAME} --port=${POSTGRES_HOST_PORT} --username=${POSTGRES_ADMIN_USERNAME} --password=${POSTGRES_ADMIN_PASSWORD} |
where: Parameter | Description |
---|
host | Public DNS value for database server instance | port | Port number value for database server instance | username | Admin username for database server instance | password | Password for admin username |
Execute the following commands using the postgres user. Info |
---|
NOTE: The values in platform configuration must match the values that you use below. Below are the default values. |
Code Block |
---|
CREATE ROLE trifacta LOGIN ENCRYPTED PASSWORD '<pwd_trifacta>';
CREATE DATABASE trifacta WITH OWNER trifacta; |
Jobs database Code Block |
---|
CREATE ROLE trifactaactiviti WITH LOGIN ENCRYPTED PASSWORD '<pwd_trifactaactiviti>';
CREATE DATABASE "trifacta-activiti" WITH OWNER trifactaactiviti; |
Scheduling database Code Block |
---|
CREATE ROLE trifactaschedulingservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactaschedulingservice>';
CREATE DATABASE trifactaschedulingservice WITH OWNER trifactaschedulingservice; |
For more information on scheduling, see Configure Automator. Time-based Trigger database Code Block |
---|
CREATE ROLE trifactatimebasedtriggerservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactatimebasedtriggerservice>';
CREATE DATABASE trifactatimebasedtriggerservice WITH OWNER trifactatimebasedtriggerservice; |
For more information on scheduling, see Configure Automator. Configuration Service database Code Block |
---|
CREATE ROLE trifactaconfigurationservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactaconfigurationservice>';
CREATE DATABASE trifactaconfigurationservice WITH OWNER trifactaconfigurationservice; |
Artifact Storage Service database Code Block |
---|
CREATE ROLE trifactaartifactstorageservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactaartifactstorageservice>';
CREATE DATABASE trifactaartifactstorageservice WITH OWNER trifactaartifactstorageservice; |
Code Block |
---|
CREATE ROLE trifactjobmetadataservicetrifactajobmetadataservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactjobmetadataservice>trifactajobmetadataservice>';
CREATE DATABASE trifactjobmetadataservicetrifactajobmetadataservice WITH OWNER trifactjobmetadataservicetrifactajobmetadataservice; |
|