Page tree

 

Contents:


As needed, you can perform manual creation of users and individual databases used by the Trifacta® platform.

Tip: In most installation scenarios, manual database installs are not needed.

Pre-requisites

  1. The database server must be installed and available:
    1. See Install Databases for PostgreSQL.
    2. See Install Databases for MySQL.
  2. The databases must be initialized.

    NOTE: If you are using non-standard database names, users, passwords, port numbers, that information must be applied during installation and afterwards in the Trifacta platform configuration.

    For more information, see Configure the Databases.

Required special database permissions

If you are manually installing any of the following databases, special database permissions are required for the user performing the installation and access. When the Trifacta platform is initialized for the first time, a cross-migration of data is performed between these databases, which is required for successful installation and enablement of the related services. This cross-migration process requires special database privileges.

To execute the cross-migration, the database user for the following databases requires special privileges:

  • trifacta database
  • trifactaauthorizationservice database 

The privileges required for cross-migration depend on the database server on which these databases are being installed:

Database TypeRequired permissions for database user
PostgreSQLSUPERUSER
MySQLFILE

 

If the cross-migration is run as part of the normal install or upgrade script, then these permissions are already set for the above databases. If for some reason, you are manually installing or upgrading these databases, the above privileges must be applied.

After install or upgrade, the above privileges are not required for normal operations on these databases. These privileges must be re-applied if cross-migrations need to be performed in the future.

Manual DB Install for PostgreSQL

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.

    sudo su - postgres

    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:

    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.

    NOTE: The values in platform configuration must match the values that you use below. Below are the default values.

Trifacta database

CREATE ROLE trifacta LOGIN ENCRYPTED PASSWORD '<pwd_trifacta>';
CREATE DATABASE trifacta WITH OWNER trifacta;

Jobs database

CREATE ROLE trifactaactiviti WITH LOGIN ENCRYPTED PASSWORD '<pwd_trifactaactiviti>';
CREATE DATABASE "trifacta-activiti" WITH OWNER trifactaactiviti;

Scheduling database

CREATE ROLE trifactaschedulingservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactaschedulingservice>';
CREATE DATABASE trifactaschedulingservice WITH OWNER trifactaschedulingservice;

Time-based Trigger database

CREATE ROLE trifactatimebasedtriggerservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactatimebasedtriggerservice>';
CREATE DATABASE trifactatimebasedtriggerservice WITH OWNER trifactatimebasedtriggerservice;

Configuration Service database

CREATE ROLE trifactaconfigurationservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactaconfigurationservice>';
CREATE DATABASE trifactaconfigurationservice WITH OWNER trifactaconfigurationservice;

Artifact Storage Service database

CREATE ROLE trifactaartifactstorageservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactaartifactstorageservice>';
CREATE DATABASE trifactaartifactstorageservice WITH OWNER trifactaartifactstorageservice;

Job Metadata Service database

CREATE ROLE trifactajobmetadataservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactajobmetadataservice>';
CREATE DATABASE trifactajobmetadataservice WITH OWNER trifactajobmetadataservice;

Authorization Service database

CREATE ROLE trifactaauthorizationservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactaauthorizationservice>';
CREATE DATABASE trifactaauthorizationservice WITH OWNER trifactaauthorizationservice;

Orchestration Service database

CREATE ROLE trifactaorchestrationservice LOGIN ENCRYPTED PASSWORD '<pwd_trifactaorchestrationservice>';
CREATE DATABASE trifactaorchestrationservice WITH OWNER trifactaorchestrationservice;

Manual DB Install for MySQL

Use the following steps to manually initialize the databases required by the platform in MySQL.

Launch MySQL

Pre-requisites for MySQL:

  • The installing user must have write permissions to the directory from which the commands are executed.
  • The installing user must have sudo privileges.
  1. Login to MySQL as the root user. When prompted, enter the password for root user:

    mysql -u root -p
  2. Execute the following commands using the root user.

    NOTE: The values in platform configuration must match the values that you use below. Below are the default values.

Trifacta database

Create USER 'trifacta' IDENTIFIED BY '<pwd_trifacta>';
CREATE DATABASE trifacta;
Grant all on trifacta.* to trifacta;

Jobs database

Create USER 'trifactaactiviti' IDENTIFIED BY '<pwd_trifactaactiviti>';
CREATE DATABASE trifactaactiviti;
Grant all on trifactaactiviti.* to trifactaactiviti;

Scheduling database

Create USER 'trifactaschedulingservice' IDENTIFIED BY '<pwd_trifactaschedulingservice>';
CREATE DATABASE trifactaschedulingservice;
Grant all on trifactaschedulingservice.* to trifactaschedulingservice;

Time-based Trigger database

Create USER 'trifactatimebasedtriggerservice' IDENTIFIED BY '<pwd_trifactatimebasedtriggerservice>';
CREATE DATABASE trifactatimebasedtriggerservice;
Grant all on trifactatimebasedtriggerservice.* to trifactatimebasedtriggerservice;

Configuration Service database

Create USER 'trifactaconfigurationservice' IDENTIFIED BY '<pwd_trifactaconfigurationservice>';
CREATE DATABASE trifactaconfigurationservice;
Grant all on trifactaconfigurationservice.* to trifactaconfigurationservice;

Artifact Storage Service database

Create USER 'trifactaartifactstorageservice' IDENTIFIED BY '<pwd_trifactaartifactstorageservice>';
CREATE DATABASE trifactaartifactstorageservice;
Grant all on trifactaartifactstorageservice.* to trifactaartifactstorageservice;

Job Metadata Service database

Create USER 'trifactajobmetadataservice' IDENTIFIED BY '<pwd_trifactajobmetadataservice>';
CREATE DATABASE trifactajobmetadataservice;
Grant all on trifactajobmetadataservice.* to trifactajobmetadataservice;

Authorization Service database

Create USER 'trifactaauthorizationservice' IDENTIFIED BY '<pwd_trifactaauthorizationservice>';
CREATE DATABASE trifactaauthorizationservice;
Grant all on trifactaauthorizationservice.* to trifactaauthorizationservice;

Orchestration Service database

Create USER 'trifactaorchestrationservice' IDENTIFIED BY '<pwd_trifactaorchestrationservice>';
CREATE DATABASE trifactaorchestrationservice;
Grant all on trifactaorchestrationservice.* to trifactaorchestrationservice;

This page has no comments.