Upgrading from an Earlier PXF Release
If you have installed a PXF rpm or deb package and have configured and are using PXF in your current Apache Cloudberry installation, you must perform some upgrade actions when you install a new version of PXF.
The PXF upgrade procedure has three steps. You perform one pre-install procedure, the install itself, and then a post-install procedure:
- Step 1: Perform the PXF Pre-Upgrade Actions
- Step 2: Install the New PXF
- Step 3: Complete the PXF Upgrade
Step 1: Perform the PXF Pre-Upgrade Actions
Perform this procedure before you upgrade to a new version of PXF:
-
Log in to the Apache Cloudberry coordinator host. For example:
$ ssh gpadmin@<coordinator> -
Identify and note the version of PXF currently running in your Apache Cloudberry cluster:
gpadmin@coordinator$ pxf version -
Stop PXF on each Apache Cloudberry host as described in Stopping PXF:
gpadmin@coordinator$ pxf cluster stop -
(Optional, Recommended) Back up the PXF user configuration files in
$PXF_BASE. For example, ifPXF_BASE=/usr/local/cloudberry-pxf:gpadmin@coordinator$ cp -avi /usr/local/cloudberry-pxf pxf_base.bak
Step 2: Install the New PXF
Install the new version of PXF, and identify and note the new PXF version number.
Step 3: Complete the PXF Upgrade
After you install the new version of PXF, perform the following procedure:
-
Log in to the Apache Cloudberry coordinator host. For example:
$ ssh gpadmin@<coordinator> -
Register the new version of the
pxfextension files with Apache Cloudberry (see pxf cluster register).$GPHOMEmust be set when you run this command:gpadmin@coordinator$ pxf cluster register -
Update the
pxfextension in every Apache Cloudberry database in which you are using PXF. A database superuser or the database owner must run this SQL command in thepsqlsubsystem or in an SQL script:ALTER EXTENSION pxf UPDATE; -
Review the CHANGELOG for the release you are upgrading to. If a release introduces new configuration properties or changes default behavior, update the affected
pxf-site.xml,pxf-application.properties, or related files in$PXF_BASEaccordingly. -
Synchronize the PXF configuration from the coordinator host to the standby coordinator host and each Apache Cloudberry segment host. For example:
gpadmin@coordinator$ pxf cluster sync -
Start PXF on each Apache Cloudberry host as described in Starting PXF:
gpadmin@coordinator$ pxf cluster start