Upgrading Altus Director

By default, Altus Director 6.1 creates clusters with Cloudera Manager 6.1 and CDH 6.1. When you upgrade to Director 6.1, you can continue to manage existing clusters with Cloudera Manager and CDH parcels 5.7 and higher.

You can upgrade to Altus Director 6.1 only from Altus Director 6.0. To upgrade from Altus Director 2.x, you must first upgrade to Altus Director 6.0 and then upgrade from Altus Director 6.0 to Altus Director 6.1.

To upgrade to Altus Director 6.1, complete the following steps:
  1. Review the upgrade requirements.

    Altus Director 6.1 has different requirements than the previous version. Make sure that you understand the requirements before you start the upgrade process.

  2. Perform the tasks required for the upgrade.

    If your current Altus Director does not meet the Altus Director 6.1 requirements, the upgrade process will fail. For example, you cannot upgrade from an Altus Director version that is earlier than version 6.0. You must upgrade to Altus Director 6.0 before you start the upgrade to Altus Director 6.1.

  3. Upgrade to Altus Director 6.1.

    Follow the instructions for upgrading the Altus Director server and client on your operating system.

  4. Restore the settings to match the configuration of the previous version.

    If you customized the configuration of the Altus Director 6.0 instance, you can restore the configuration from your backup files and use the same configuration in Altus Director 6.1.

    Complete this step before you start the Altus Director 6.1 server.

  5. Restart the Altus Director 6.1 server.

Step 1: Review the Upgrade Requirements

Altus Director 6.1 has the following requirements:

You can upgrade to Altus Director 6.1 only from Altus Director 6.0.
You cannot upgrade to Altus Director 6.1 from any other Director version.
Altus Director 6.1 supports RHEL and CentOS versions 6.7, 6.8, 7.2, 7.4, and 7.5 for Cloudera Manager and clusters.

Altus Director 6.1 cannot create clusters on other versions of the operating systems. Likewise, Altus Director 6.1 does not work with existing Cloudera Manager and clusters that are running on other versions of the operating systems.

For the complete list of requirements for Altus Director, see Requirements and Supported Versions.

Step 2. Perform Tasks Required for the Upgrade

Complete all the necessary tasks to meet the upgrade requirements to ensure that you can successfully upgrade to Altus Director 6.1.

Before you upgrade to Altus Director 6.0, complete the following tasks:

Verify that you are upgrading from Altus Director 6.0.
Required.
You can upgrade to Altus Director 6.1 only from Altus Director 6.0. To upgrade from an Altus Director version that is earlier than version 6.0, you must first upgrade to version 6.0 before you can upgrade to Altus Director 6.1.

The Altus Director 6.1 upgrade will not start if it detects that the Altus Director instance your are upgrading is not version 6.0.

For more information about upgrading to Altus Director 6.0, see the Altus Director 6.0 upgrade documentation.

Verify that your Java version is version 8.
Required.
Altus Director 6.1 requires JDK version 8. It does not support other Java versions. You must upgrade to JDK version 8 before you can upgrade to Altus Director 6.1.

You can use Oracle JDK or OpenJDK with Altus Director 6.1.

For more information about Java installations, see the Oracle Java website.

For more information about OpenJDK, see the OpenJDK website.

Upgrade all Cloudera Manager instances that are older than version 5.7
Required.
Altus Director 6.1 supports Cloudera Manager version 5.7 or higher. Verify that all Director deployments are running Cloudera Manager version 5.7 or higher and upgrade any Cloudera Manager version 5.6 or earlier.

Altus Director 6.1 will not start if it detects a deployment running Cloudera Manager 5.6 or earlier.

Back up the Altus Director 6.0 properties file.
Recommended.
If you have modified the Director 6.0 application.properties file, back up the file before you start the upgrade.

The application.properties is located in the following directory: /etc/cloudera-director-server/

After the upgrade, you can use the settings in the backup file to set the same configuration in Altus Director 6.1.

Back up the configuration files for the Altus Director 6.0 plug-ins.
Recommended.
Altus Director includes configuration files that enable you to configure how the Altus Director plug-ins work. If you have modified the Altus Director 6.0 plug-in configuration files, back up the configuration files before you start the upgrade. After the upgrade, you can copy the plug-in configuration files from your backup and use the same configuration files for the Altus Director 6.1 plug-ins.

The Altus Director plug-in files are in the following directory: /var/lib/cloudera-director-plugins/

The directory contains a separate versioned subdirectory for each plug-in. Back up the directory for the plug-in where you modified the configuration file. Or, if you modified the configuration files for multiple plug-ins, back up the main /cloudera-director-plugins directory.

Back up the Altus Director 6.0 database that stores state information.
Recommended.
The Altus Director 6.1 upgrade overwrites the state information in the Altus Director database. Back up the database before you start the upgrade process. If the upgrade fails and you decide to revert back to the previous version, you can restore the data.
By default, Altus Director stores state information in the embedded H2 database named state.h2.db in the following directory: /var/lib/cloudera-director-server/. If you are using the default database, back up the state.h2.db file.
If you are using a MySQL database to store the Altus Director state, use MySQL backup procedures to back up the Altus Director database. The following example shows how to back up a MySQL database using the mysqldump utility:
mysqldump --all-databases --single-transaction --user=root --password > backup.sql
For more information on using mysqldump, see the MySQL documentation.

Step 3. Upgrade to Altus Director 6.1

The upgrade procedure differs based on the operating system where the current Altus Director is installed.

RHEL and CentOS

  1. Stop the Altus Director server service by running the following command:
    sudo service cloudera-director-server stop

    Before you proceed, verify that the Altus Director instance that you are upgrading meets all upgrade requirements. See Step 1: Review the Upgrade Requirements.

  2. Download the Altus Director cloudera-director.repo file for Altus Director 6.1.

    The cloudera-director.repo file is the YUM repository configuration file for Altus Director. The base URL in the latest cloudera-director.repo file points to the Altus Director 6.1 repository.

    Run the following commands to download the latest Altus Director cloudera-director.repo file :

    RHEL and CentOS 7.x:
    cd /etc/yum.repos.d/
    sudo wget "https://username:password@archive.cloudera.com/p/director6/6.1.0/redhat7/cloudera-director.repo"
    RHEL and CentOS 6.x:
    cd /etc/yum.repos.d/
    sudo wget "https://username:password@archive.cloudera.com/p/director6/6.1.0/redhat6/cloudera-director.repo"
  3. Run the following commands to upgrade the Altus Director server and client:
    sudo yum clean all
    sudo yum update cloudera-director-server cloudera-director-client
    

    The Altus Director upgrade installs all required plug-in packages.

    After the Altus Director server and client upgrade completes, rerun the service manager in the operating system.

  4. Run the following command to re-execute the systemd manager:
    sudo systemctl daemon-reexec

Ubuntu

  1. Stop the Altus Director server service by running the following command:
    sudo service cloudera-director-server stop

    Before you proceed, verify that the Altus Director instance that you are upgrading meets all upgrade requirements. See Step 1: Review the Upgrade Requirements.

  2. Download the Altus Director cloudera-director.list file for Altus Director 6.1.

    The cloudera-director.list file is the repository configuration file for Altus Director. The base URL in the latest cloudera-director.list file points to the Altus Director 6.1 repository.

    Run the following commands to download the latest Altus Director cloudera-director.list file :

    Ubuntu 14.04
    cd /etc/apt/sources.list.d/
    sudo curl -L "http://username:password@archive.cloudera.com/p/director6/6.1/ubuntu1404/cloudera-director.list" -O
    Ubuntu 16.04:
    cd /etc/apt/sources.list.d/
    sudo curl -L "http://username:password@archive.cloudera.com/p/director6/6.1/ubuntu1604/cloudera-director.list" -O
  3. Run the following commands to upgrade the Altus Director server and client:
    sudo apt-get clean
    sudo apt-get update 
    sudo apt-get dist-upgrade 
    sudo apt-get install cloudera-director-server cloudera-director-client

    The Altus Director upgrade installs all required plug-in packages.

Step 4. Restore the Configuration

If you want Altus Director 6.1 to have the same configuration as the previous version, restore the configuration settings from the backup files. Do not restart the Altus Director 6.1 server until you have updated the configuration files.

Complete the following tasks:
Restore the Altus Director configuration.
If you modified the application.properties file in the previous version, you can use the same configuration in Altus Director 6.1. Restore the configuration from the backup file.
Restore the plug-in configuration files.
If you modified the configuration files for any of the Altus Director plug-ins in the previous version, restore the configuration files to the Altus Director 6.1 plug-in directory before you restart the Altus Director 6.1 server.

The Altus Director plug-in files are in the following directory: /var/lib/cloudera-director-plugins/

The directory contains a separate versioned subdirectory for each plug-in. Although the version suffix in the subdirectory names changes for every version, the plug-in directory structure and plug-in configuration file names in Altus Director 6.1 is the same as in previous versions.

You can copy the plug-in configuration files from your backup and overwrite the corresponding configuration files in the Altus Director 6.0 plug-in directory.

Step 5. Restart Director

To start Altus Director 6.1, run the following command:
sudo service cloudera-director-server start

The command to start Altus Director is the same in RHEL, CentOS, and Ubuntu.