Complete the following steps after you upgrade Hue with or without the Installer:
mapr-hue-base
package:
apt-get remove mapr-hue-base
hue.ini file into the latest version of the file:
/opt/mapr/hue/hue-<version>/desktop/conf/hue.ini
use_new_editor
property in the hue.ini file to false. For
example:[desktop]
...
# Choose whether to show the new SQL editor.
use_new_editor=false
apt-get install sqlite3
cd /opt/mapr/hue/hue-<new_version>/desktop
mv desktop.db desktop.db.old
sqlite3 desktop.db < ~/dump-hue-<old_version>-sqlite.bak
sqlite3 desktop.db
DELETE FROM django_content_type;
source /opt/mapr/hue/hue-<new_version>/bin/activate
hue migrate --run-syncdb --fake-initial
deactivate
For example, run the following commands to update the database schema to make it compatible with Hue 4.3+:
source /opt/mapr/hue/hue-4.3.0/bin/activate
hue migrate --run-syncdb --fake-initial
deactivatesource /opt/mapr/hue/hue-<new_version>/bin/activate
hue syncdb --noinput
hue migrate --merge
deactivate
For example, run the following commands to update the database schema to make it compatible with Hue 4.2:
source /opt/mapr/hue/hue-4.2.0/bin/activate
hue syncdb --noinput
hue migrate --merge
deactivate
source /opt/mapr/hue/hue-<new_version>/bin/activate hue loaddata --ignorenonexistent ~/dump-hue-<old_version>.json deactivate
rm /opt/mapr/hadoop/hadoop-0.20*/lib/hue-plugins-*.jar
cp /opt/mapr/hue/hue-<version>/desktop/libs/hadoop/java-lib/hue-plugins-*.jar /opt/mapr/hadoop/hadoop-0.20*/lib/
cp /opt/mapr/hue/hue-3.10.0/desktop/libs/hadoop/java-lib/hue-plugins-*.jar /opt/mapr/hadoop/hadoop-0.20*/lib/maprcli node services -jobtracker restart -nodes <ip_addresses>
configure.sh -R:
/opt/mapr/server/configure.sh -R
If you do not complete this step, Hue may fail to start and the Control System may still display references to the Hue version that you upgraded from.
maprcli node services -name hue -action restart -nodes <ip_address>