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

Configure and Start Hue

[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.4.7, use the Hue version shipped with HDP 2.3.4.7. If you have a previous version of Hue, use the following steps to upgrade Hue.

Complete one of the following:

  • SQLite

    1. Copy the hue.ini settings from your old hue.ini configuration file to new hue.ini configuration file.

    2. 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 - hue
      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
      hue migrate
      deactivate
    4. Start Hue. As a root user, run the following command on the Hue Server:

      /etc/init.d/hue start

  • MySQL

    1. Copy the hue.ini settings from your old hue.ini configuration file to new hue.ini configuration file.

    2. Start Hue. As a root user, run the following command on the Hue Server:

      /etc/init.d/hue start