EsharEditor / ambari-hue-service

Ambari stack service for easily installing and managing Hue on HDP cluster
Apache License 2.0
107 stars 68 forks source link

Getting the HUE address is problematic #31

Open whg517 opened 6 years ago

whg517 commented 6 years ago

ENV:

Error log

When I execute the installation command, the following error occurs:
 'cat /etc/yum.repos.d/HDP.repo | grep "baseurl" | awk -F '=' '{print $2"hue/hue-3.11.0.tgz"}' | xargs wget -O hue.tgz' returned 123. --2017-11-23 13:47:21--  http://192.168.80.5/mirrors/HDP-2.6.2.0-centos7/hue/hue-3.11.0.tgz
Connecting to 192.168.80.5:80... connected.
HTTP request sent, awaiting response... 404 Not Found

There should be no resources. You should update it.

pearj commented 6 years ago

I bumped into this too. I think it should be installed via rpm and not tgz.

tangleiNUAA commented 6 years ago

@kiven517 you should download hue source, and build it yourself.After that, package it adn put it to the repository.

tangleiNUAA commented 6 years ago

@pearj the rpm package is build by hortonworks, it is not the same with the opensource hue. You may try install the rpm and start the service, you will get the differences between them.

pearj commented 6 years ago

@tangleiNUAA What I don't understand is why it is using the yum HDP rpm repo to try and find a tgz (aka source file), I can't see how this could ever work for anybody?

tangleiNUAA commented 6 years ago

I also have the same questions.

OneCricketeer commented 6 years ago

@pearj @tangleiNUAA

the rpm package is build by hortonworks

As of HDP 2.6.0, Hue is deprecated. Hue will not be updated in the official HDP repos.

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.3/bk_release-notes/content/deprecated_items.html

why it is using the yum HDP rpm repo to try and find a tgz ... I can't see how this could ever work for anybody

A YUM repo is just a static file server. You can place any type of file there, really.

pearj commented 6 years ago

A YUM repo is just a static file server. You can place any type of file there, really.

@cricket007 That true, but it’s not correct to assume that you will find the hue tgz by using the baseurl of the HDP repo, especially if you’re using the hortonworks official repo as that will only contain rpms and not tgz.

OneCricketeer commented 6 years ago

@pearj I understand the issue, and I agree using the remote HDP repos is problematic

In my experience setting up HDP clusters, I almost always mirror the packages locally to reduce every machine reaching across the network to Hortonworks YUM repos.