Support Questions

Find answers, ask questions, and share your expertise

Hue does not show components and versions on Web UI after upgrade. Below is the snapshot.

avatar

533-screen-shot-2015-11-20-at-121900-pm.png

1 ACCEPTED SOLUTION

avatar

It looks like, Hue could not bring up the new version.. Here is the script for pick up the versions.

/usr/lib/hue/tools/ fill_versions.sh

Please note that the script is only checked once, so the wrong information will not be updated automatically.

Here is the workaround. Go to /usr/lib/hue/ Move VERSIONS to VERSIONS.org then restart hue service.

service hue stop

cd /usr/lib/hue

mv VERSIONS VERSIONS.org

service hue start

Then, you can see the following message..

[root@sandbox hue]# service hue start
 Detecting versions of components...
 HUE_VERSION=2.6.1-3150
 HDP=2.2.8
 Hadoop=2.6.0
 Pig=0.14.0
 Hive-Hcatalog=0.14.0
 Oozie=4.1.0
 Ambari-server=2.1-377
 HBase=0.98.4
 Knox=0.5.0
 Storm=0.9.3
 Falcon=0.6.0
 Starting hue: [ OK ] 

Once, done you will see correct Hue UI.

539-screen-shot-2015-11-20-at-70201-pm.png

View solution in original post

5 REPLIES 5

avatar
Master Mentor

@Pardeep You have to share hue logs. I have experienced the same behavior few times and best shot is to go through all the config checks and make sure that nothing is missing.

Click "Check for misconfiguration"

avatar

"Check for misconfiguration" did not show any error. It was all OK. Wrote the solution below.

avatar

It looks like, Hue could not bring up the new version.. Here is the script for pick up the versions.

/usr/lib/hue/tools/ fill_versions.sh

Please note that the script is only checked once, so the wrong information will not be updated automatically.

Here is the workaround. Go to /usr/lib/hue/ Move VERSIONS to VERSIONS.org then restart hue service.

service hue stop

cd /usr/lib/hue

mv VERSIONS VERSIONS.org

service hue start

Then, you can see the following message..

[root@sandbox hue]# service hue start
 Detecting versions of components...
 HUE_VERSION=2.6.1-3150
 HDP=2.2.8
 Hadoop=2.6.0
 Pig=0.14.0
 Hive-Hcatalog=0.14.0
 Oozie=4.1.0
 Ambari-server=2.1-377
 HBase=0.98.4
 Knox=0.5.0
 Storm=0.9.3
 Falcon=0.6.0
 Starting hue: [ OK ] 

Once, done you will see correct Hue UI.

539-screen-shot-2015-11-20-at-70201-pm.png

avatar
Contributor

Run the following commands:

cd /usr/lib/hue/tools

chmod 755 fill_versions.sh

vi fill_versions.sh

Comment out this line grep "^#FIXME" ${hue_dir}/VERSIONS &>/dev/null || exit

Save the file and restart Hue.

The versions will now look correct from what is installed via the repository Now fill_versions.sh will run when Hue starts populating the correct version everytime.

There is also an issue with rolling upgrades and this because Hue does a rpm and greps the first line for the hadoop version. I modified my fill_versions.sh script to use 'hadoop version' and then awk the result.

avatar
Explorer

@Pardeep

It's been a while of the post.

I have been facing the same issue after I upgraded my hortonworks sandbox to HDP2.5. I tried the "mv VERSIONS VERSIONS.org" and restarted the hue but didn't work. I get the below when I restart

8667-screen-shot-2016-10-19-at-121349-pm.png

My HUE shows up below when re-started

8668-screen-shot-2016-10-19-at-121730-pm.png

Any help on this is greatly appreciated. Thanks!