Post-Upgrade Steps for Hue
After you upgrade HttpFS with the MapR Installer, perform the following steps.
About this task
Procedure
-
For upgrades to Hue 3.8.1, kill the old Hue processes.
-
Update the hue.ini (/opt/mapr/hue/hue-<latest version>/desktop/conf/hue.ini)
file with the following:
-
If Hue is configured to use the SQLite database, perform the following
steps:
-
Upload the JSON dump file to the Hue database:
- For MySQL, PostgreSQL, or
Oracle:
cd /opt/mapr/hue/hue-<new_version>/build/env/bin/source
/opt/mapr/hue/hue-<new_version>/build/env/bin/activate
./hue loaddata dump-hue-<old_version>.json
- For
SQLite:
cd /opt/mapr/hue/hue-<new_version>/desktop
mv desktop.db desktop.db.old
sqlite3 desktop.db < ~/dump-hue-<old_version>-sqlite.bak
For example, run the following commands to upload the Hue 3.8.1 JSON dump file for MySQL into the Hue 3.9.0 installation directory:cd /opt/mapr/hue/hue-3.9.0/build/env/bin/source
/opt/mapr/hue/hue-3.9.0/build/env/bin/activate
./hue loaddata dump-hue-3.8.1.json
- For MySQL, PostgreSQL, or
Oracle:
-
Update the old database schema so that it is compatible with the new upgraded
version:
source /opt/mapr/hue/hue-<new_version>/build/env/bin/activate
/opt/mapr/hue/hue-<new_version>/build/env/bin/hue syncdb --noinput
/opt/mapr/hue/hue-<new_version>/build/env/bin/hue migrate --merge
For example, run the following commands to update the database schema so that it is compatible with Hue 3.9.0:source /opt/mapr/hue/hue-3.9.0/build/env/bin/activate
/opt/mapr/hue/hue-3.9.0/build/env/bin/hue syncdb --noinput
/opt/mapr/hue/hue-3.9.0/build/env/bin/hue migrate --merge
-
If you are using Hadoop MRv1, complete the following steps to establish
communication between Hue and the JobTracker processes:
-
Restart the Hue service:
maprcli node services -name hue -action restart -nodes <ip_address>