Use the following steps to initialize the databases of the .
NOTE: These steps assume that the |
Pre-requisites:
NOTE: The following steps are for configuring PostgreSQL 9.6. |
For CentOS 7.x:
sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb |
For CentOS 6.x, RHEL 6.x:
sudo service postgresql-9.6 initdb |
For RHEL 7.x:
sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb |
For Ubuntu 14.04 / 16.04:
pg_createcluster -d /var/lib/postgresql/9.6/main 9.6 main |
NOTE: This configuration step only applies if the |
Please verify the datestyle setting for your PostgreSQL instance.
Steps:
Execute the following in PostgreSQL:
trifacta=# show datestyle; DateStyle ----------- ISO, MDY (1 row) |
ISO
, please edit the following file (PostgreSQL 9.6):/var/lib/pgsql/9.6/data/postgresql.conf
/etc/postgresql/9.6/main/postgresql.conf
Set the datestyle
property to the following:
datestyle = 'ISO,MDY'; |
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 below, you can review the database name, username, and password.
Database | Property | Notes | |
---|---|---|---|
Main database | webapp.database.name | ||
webapp.database.username | |||
webapp.database.password | 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. | ||
webapp.database.type | Change this value only if you are installing the databases in a non-PostgreSQL environment. | ||
Jobs database | batch-job-runner.database.name | ||
batch-job-runner.database.username | |||
batch-job-runner.database.password | 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. | ||
batch-job-runner.database.type | Change this value only if you are installing the databases in a non-PostgreSQL environment. | ||
Scheduling database | scheduling-service.database.name | ||
scheduling-service.database.username | |||
scheduling-service.database.password | 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. | ||
scheduling-service.database.type | Change this value only if you are installing the databases in a non-PostgreSQL environment.
| ||
Time-Based Trigger database | time-based-trigger-service.database.name | ||
time-based-trigger-service.database.username | |||
time-based-trigger-service.database.password | 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. | ||
time-based-trigger-service.database.type | Change this value only if you are installing the databases in a non-PostgreSQL environment.
| ||
Configuration Service database | configuration-service.database.name | ||
configuration-service.database.username | |||
configuration-service.database.password | 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. | ||
configuration-service.database.type | Change this value only if you are installing the databases in a non-PostgreSQL environment.
| ||
Artifact Storage Service database | artifact-storage-service.database.name | ||
artifact-storage-service.database.username | |||
artifact-storage-service.database.password | 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. | ||
artifact-storage-service.database.type | Change this value only if you are installing the databases in a non-PostgreSQL environment.
|
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 |
For more information on scheduling, see Configure Automator.
Time-based Trigger database:
local trifactatimebasedtriggerservice trifactatimebasedtriggerservice md5 host trifactatimebasedtriggerservice trifactatimebasedtriggerservice 127.0.0.1/32 md5 host trifactatimebasedtriggerservice trifactatimebasedtriggerservice ::1/128 md5 |
For more information on scheduling, see Configure Automator.
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 |
Save the file.
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 |
CentOS/RHEL:
sudo service postgresql-9.6 start |
Ubuntu:
sudo service postgresql start |
MySQL:
Upgrading MySQL versions is not supported in this release.