This section describes how to upgrade in-use instances of the Trifacta® databases for a working deployment of the Trifacta platform.
When you upgrade to a new release of the platform, the underlying databases and their structures are automatically migrated to the new format. However, the database releases are not touched.
In this example, Postgres 9.3 is upgraded to Postgres 9.6.
- The installing user must have write permissions to the directory from which the commands are executed.
- The installing user must have sudo privileges.
- Verify that you know the host and port number for each database.
Before you begin, please verify that you have a valid backup of each Trifacta database. See Backup and Recovery.
Acquire Distribution and Port Information
Before you begin, you must:
- Acquire the port information for the current database. Typically, this value is
- Acquire the latest distribution for the database software.
For more information, see Install the Databases.
Upgrade for PostgreSQL
This procedure describes the process for upgrading the PostgreSQL version in use by the Trifacta databases. This procedure assumes the following:
- Source version: PostgreSQL 9.3
- Upgrade version: PostgreSQL 9.6
- All current databases are co-located with the software on the Trifacta node.
- Some downtime of the databases during the upgrade process is ok.
Before You Begin
- If you haven't already, please back up each database and all PostgreSQL configuration files. See Backup and Recovery.
- Login to the node where the databases are hosted.
Upgrade for CentOS/RHEL
- Install the upgraded version. Below, PostgreSQL 9.6 is installed.
For CentOS 6.x:
For CentOS 7.x:
For Red Hat Enterprise Linux 6.x:
For Red Hat Enterprise Linux 7.x:
Create a new data directory for the new database version:
For CentOS 7.x:
For CentOS 6.x, RHEL 6.x:
For RHEL 7.x:
Use the following commands to verify that the upgrade is possible:
If all is well, you should see a
Clusters are compatiblemessage.
- Stop the old version of the database service as the root user:
- Run the upgrade as the
Upgrade for Ubuntu
For Ubuntu 14.04 (Trusty)
Stop the platform:
Install the upgraded version. Below, PostgreSQL 9.6 is installed.
Upgrade the PostgreSQL 9.3 version to PostgreSQL 9.6, using the newly installed version:NOTE: Below, some values are too long for a single line. Single lines that overflow to additional lines are marked with a
\. The backslash should not be included if the line is used as input.
Remove the old version of PostgreSQL (9.3):
Review the PostgreSQL configuration file, and make any changes as necessary:
- To apply this configuration change, login as an administrator to the Trifacta node. Then, edit
trifacta-conf.json. Some of these settings may not be available through the Admin Settings Page. For more information, see Platform Configuration Methods.
- Replace all instances of the PostgreSQL port number for the earlier version and replace with the desired port number for the upgrade version.
- By default, PostgreSQL 9.3 uses
- By default, PostgreSQL 9.6 uses
- Make the above changes and save the file.
Restart PostgreSQL and the platform:
- Verify that you can load datasets and run jobs. See Verify Operations.
For Ubuntu 16.04 (Xenial)
For more information on upgrading PostgreSQL on Ubuntu 16.04 (Xenial), please contact Trifacta Support.
Transfer settings from the configuration files for your old database version to the new one. Please review the old and new versions of these files:
NOTE: It is risky to perform a straight copy of these configuration files. Settings may change. New ones may be introduced. Setting values specific to to the installation may be overwritten in a copy. Please retain a backup of both versions of each file before migrating settings.
Path to PostgreSQL 9.3 file Path to PostgreSQL 9.6 file
- Start the service:
When the service restarts, you can check the cluster status using the following script:
After you have completed the database installation, you must review the port number of the newly installed database, which may have changed between versions of the database software. That new port number must be applied through the Trifacta software. For more information, see Change Database Port.
- If all is well, restart the platform. See Start and Stop the Platform.
Verify and Cleanup
- Verify operations on all four database:
If all of the above tests pass, you can use the following script to delete the old PostgreSQL version and its data directory:
- Restart the Trifacta platform. See Start and Stop the Platform.
Upgrade for MySQL
Upgrading the databases for MySQL is not supported in this release. Please start with a clean install of the databases on MySQL.
This page has no comments.