1. GBDS Update

1.1. Introduction

This document will describe how to update GBDS and its database.

A GBDS new release will contain a .rpm file with the new build and may contain a .sql file if any changes to the relational database are made. Whether the environment does not have GBDS installed, follow the steps described in GBDS 4 Installation with Ansible.

1.2. Initial Update Steps

To update any GBDS service, it is needed to stop all Ambari services and GBDS applications. After doing it, the user may continue the update procedure.

1.3. Updating GBDS

To update the GBDS version, execute the following steps:

  1. Download the .rpm file of the latest build.

  2. Run the rpm update command in all nodes as root.

    rpm -Uvh gbscluster-<version>.rpm --nodeps
    

Warning

The rpm may overwrite the configuration file. It is recommended to create a backup file before updating GBDS. Note that some parameters may need to be reconfigured in the new configuration file.

1.4. Updating Relational Database

To update the GBDS Relational Database, execute the following steps:

  1. Download the .sql file of the latest build.

  2. On the MySQL server node only, execute the command:

    mysql -u root -p -h localhost < /path-to-file/upgrade-rdb-<version>.sql
    

See also

GBDS Relational Database descriptions can be found at Relational Database Documentation.

1.5. Final Update Steps

After all procedures done, it is needed to restart the stopped services. To do so, restart all Ambari services and GBDS Applications.