Use the following steps to initialize the databases of the .
NOTE: These steps assume that the |
Pre-requisites:
NOTE: In the following steps, the default version is PostgreSQL 9.6. |
For CentOS 7.x, CentOS 8.x:
sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb |
For CentOS 7.x - PostgreSQL 12.3:
sudo /usr/pgsql-12/bin/postgresql12-setup initdb |
For RHEL 7.x, RHEL 8.x:
sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb |
For Ubuntu 16.04 / 18.04:
pg_createcluster -d /var/lib/postgresql/9.6/main 9.6 main |
No additional steps are required to initialize the databases in MySQL.
Use the following steps to set custom database names, usernames, and passwords in the :
Edit .
For each database, you can review the parameters in the listed area and make modifications as needed.
NOTE: For each database, you should change the default password. This change must also be applied on the database server. See Change Database Passwords for PostgreSQL . See Change Database Passwords for MySQL. |
NOTE: The |
Database | Parameter area |
---|---|
Main database | webapp.database.* |
Jobs database | batch-job-runner.database.* |
Scheduling database | scheduling-service.database.* |
Time-Based Trigger database | time-based-trigger-service.database.* |
Configuration Service database | configuration-service.database.* |
Job Metadata Service database | job-metadata-service.database.* |
Artifact Storage Service database |
|
Authorization Service database | authorization-service.database.* |
Orchestration Service database | orchestration-service.database.* |
Optimizer Service database | optimizer-service.database.* |
For more information, see Database Parameter Reference.
If you have customized database properties, you must apply the edits from the new sample file to the existing configuration file after you have upgrade the .
If you are using all defaults, you can just overwrite the existing file with the new version's sample file.
PostgreSQL:
Locate the sample Postgres configuration file:
/opt/trifacta/bin/setup-utils/db/pg_hba.conf.SAMPLE |
/var/lib/pgsql/9.6/data/pg_hba.conf
Ubuntu dir: /etc/postgresql/9.6/main/pg_hba.conf
From the SAMPLE
file, copy the following declarations and paste them into the production pg_hba.conf
file above any other declarations:
NOTE: You can substitute different database usernames and groups for the ones listed below ( |
:
local trifacta trifacta md5 host trifacta trifacta 127.0.0.1/32 md5 host trifacta trifacta ::1/128 md5 |
Jobs database:
local trifacta-activiti trifactaactiviti md5 host trifacta-activiti trifactaactiviti 127.0.0.1/32 md5 host trifacta-activiti trifactaactiviti ::1/128 md5 |
Scheduling database:
local trifactaschedulingservice trifactaschedulingservice md5 host trifactaschedulingservice trifactaschedulingservice 127.0.0.1/32 md5 host trifactaschedulingservice trifactaschedulingservice ::1/128 md5 |
Time-based Trigger database:
local trifactatimebasedtriggerservice trifactatimebasedtriggerservice md5 host trifactatimebasedtriggerservice trifactatimebasedtriggerservice 127.0.0.1/32 md5 host trifactatimebasedtriggerservice trifactatimebasedtriggerservice ::1/128 md5 |
Configuration Service database:
local trifactaconfigurationservice trifactaconfigurationservice md5 host trifactaconfigurationservice trifactaconfigurationservice 127.0.0.1/32 md5 host trifactaconfigurationservice trifactaconfigurationservice ::1/128 md5 |
Artifact Storage Service database:
local trifactaartifactstorageservice trifactaartifactstorageservice md5 host trifactaartifactstorageservice trifactaartifactstorageservice 127.0.0.1/32 md5 host trifactaartifactstorageservice trifactaartifactstorageservice ::1/128 md5 |
Job Metadata Service database:
local trifactajobmetadataservice trifactajobmetadataservice md5 host trifactajobmetadataservice trifactajobmetadataservice 127.0.0.1/32 md5 host trifactajobmetadataservice trifactajobmetadataservice ::1/128 md5 |
Authorization Service database:
local trifactaauthorizationservice trifactaauthorizationservice md5 host trifactaauthorizationservice trifactaauthorizationservice 127.0.0.1/32 md5 host trifactaauthorizationservice trifactaauthorizationservice ::1/128 md5 |
Orchestration Service database:
local trifactaorchestrationservice trifactaorchestrationservice md5 host trifactaorchestrationservice trifactaorchestrationservice 127.0.0.1/32 md5 host trifactaorchestrationservice trifactaorchestrationservice ::1/128 md5 |
Optimizer Service database:
local trifactoptimizerservice trifactoptimizerservice md5 host trifactoptimizerservice trifactoptimizerservice 127.0.0.1/32 md5 host trifactoptimizerservice trifactoptimizerservice ::1/128 md5 |
Restart the databases:
If you are have also restarted the operating system, please execute the following first, followed by the O/S-specific commands:
NOTE: This command is valid only if the Postgres DB is also hosted in the |
chkconfig postgresql-9.6 on |
For PostgreSQL 12.3 on CentOS 7:
chkconfig postgresql-12 on |
CentOS/RHEL:
sudo service postgresql-9.6 start |
CentOS/RHEL 7 (PostgreSQL 12.3):
sudo service postgresql-12 start |
Ubuntu:
sudo service postgresql start |
MySQL:
Upgrading MySQL versions is not supported in this release.