Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

Use the following steps to manually create the users and databases required by the platform in PostgreSQL.

Launch PostgreSQL

Pre-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.
  1. 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.


  2. 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:

    ParameterDescription
    hostPublic DNS value for database server instance
    portPort number value for database server instance
    usernameAdmin username for database server instance
    passwordPassword for admin username


  3. 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.


D s item
itemdatabase

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;

Job Metadata Service database

Code Block
CREATE ROLE trifactjobmetadataservicetrifactajobmetadataservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactjobmetadataservice>trifactajobmetadataservice>';
CREATE DATABASE trifactjobmetadataservicetrifactajobmetadataservice WITH OWNER trifactjobmetadataservicetrifactajobmetadataservice;


Manual DB Install for MySQL

...