Upgrading HDP Manually
Also available as:
PDF
loading table of contents...

Configure and Start Hue

Before you can upgrade Hue, you must have first upgraded your HDP components to the latest version (in this case, 2.3.6). This section assumes that you have already upgraded your components for HDP 2.3.6. If you have not already completed these steps, return to Getting Ready to Upgrade and Upgrade 2.1 Components for instructions on how to upgrade your HDP components to 2.3.6.

[Note]Note

The su commands in this section use keywords to represent the Service user. For example, "hdfs" is used to represent the HDFS Service user. If you are using another name for your Service users, you will need to substitute your Service user name in each of the su commands.

For HDP-2.3.6, use the Hue version shipped with HDP-2.3.6. If you have a previous version of Hue, use the following steps to upgrade Hue.

  1. Migrate hue.ini setting from your old hue.ini configuration file to new hue.ini configuration file.

  2. If you are using the embedded SQLite database, remember to restore your database after upgrade.

    To restore the database from a backup, make sure the destination database is empty before copying (if necessary, rename or remove the current destination database), then copy your backup to the destination database. For example:

    su - hdfs
    cd /var/lib/hue
    mv desktop.db desktop.db.old 
    sqlite3 desktop.db < ~/hue_backup/desktop.bak
    exit
  3. Synchronize Database

    cd /usr/lib/hue
    source ./build/env/bin/activate
    hue syncdb
    deactivate
  4. Run the following script to pick up the new Hue version:

    bash /usr/lib/hue/tools/fill_versions.sh
  5. Run the following script to pick up the new Hue version:

    bash /usr/lib/hue/tools/fill_versions.sh
  6. Start Hue. As a root user, run the following command on the Hue Server:

    /etc/init.d/hue start