Reply
Expert Contributor
Posts: 64
Registered: ‎11-04-2016
Accepted Solution

Hue 4.3.0 - cdh6.1.0 complains about Solr without having Solr installed

[ Edited ]

Hi,

 

I have upgraded my CM/CDH to 6.1 and every time I login into Hue I receive this error:

 

Solr server could not be contacted properly: HTTPConnectionPool(host='localhost', port=8983): Max retries exceeded with url: /solr/admin/info/system?user.name=hue&doAs=mpanahi&wt=json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))

 

The problem is I have never had Solr installed nor configured inside Hue. The Solr is None in Hue inside CM and there is no such thing that refers to [search] or [dashboard] inside my hue_safety_valve.ini so I don't know why it tries to connect to something without me setting it up.

 

Does anyone have any idea why in the new Hue it tries to connect to Solr without being it installed or selected?

 

Many thanks,

 

Posts: 855
Kudos: 24
Solutions: 10
Registered: ‎05-27-2014

Re: Hue 4.3.0 - cdh6.1.0 complains about Solr without having Solr installed

Hi @maziyar,

 

Could you please let us know what was the previous CM/CDH version you upgraded from before 6.1 so we can try to replicate this issue in house?

Are the other applications working on current Hue UI for example Hive/Impala Query?

Please go to http://<your huehost>:<port>/hue/desktop/dump_config, then click dashboard and send us a screeshot. Also, from same page, look for search config and see if there is any.

Please also check hue.ini and hue_safety_valve_server.ini together with hue_safety_valve.ini to make sure.

 

Thanks and we look forward to your feedback,

Li 

 

 

Li Wang, Technical Resolution Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum

Highlighted
Expert Contributor
Posts: 64
Registered: ‎11-04-2016

Re: Hue 4.3.0 - cdh6.1.0 complains about Solr without having Solr installed

Hi @lwang,

 

My previous version was the latest CDH 5 (5.16.x) which it became compatible to upgrade to 6.1.

 

Yes, everything else is fine: HDFS browser, Hive editor, notebook, etc. I don't have Impala. I only see the error if I access Hue for the first time.

 

 

Screenshot 2019-01-09 15.28.56.pngScreenshot 2019-01-09 15.30.52.png

As you can see in search, there is a solr_url. Out of hue.ini and hue_safety_valve_server.ini together with hue_safety_valve.ini I only have "hue_safety_valve.ini" which is for notebook and there is nowhere that I mentioned anything about solr.

 

Many thanks.

Posts: 855
Kudos: 24
Solutions: 10
Registered: ‎05-27-2014

Re: Hue 4.3.0 - cdh6.1.0 complains about Solr without having Solr installed

Hi @maziyar,

 

Thanks for getting back with the previous CDH version. We will try to replicate the upgrade to see whether the issue is reproducible. Will report back with our findings.

 

Thanks,

Li

Li Wang, Technical Resolution Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum

Cloudera Employee
Posts: 5
Registered: ‎11-08-2016

Re: Hue 4.3.0 - cdh6.1.0 complains about Solr without having Solr installed

Hi @maziyar,

 

We tried in house upgrade cluster from CDH5.16 to CDH6.1 without Solr being installed. We can't reproduce the issue. Hue works as expected.

 

Your hue config lists the "solr_url: https://localhost:8983/" under "search" is a bit suspicious though. If Solr is not installed on the cluster, you should be able to see "search" in your app_blacklist in your hue.ini as following:

 

[desktop]
app_blacklist=search

 

It's not clear how your cluster ends up with this status. One suggestion can be adding "search" in the app_blacklist as above and restart Hue. It should be able to resolve your issue. 

 

Please let us know if it helps.

 

Thanks!

 

Weixia

Expert Contributor
Posts: 64
Registered: ‎11-04-2016

Re: Hue 4.3.0 - cdh6.1.0 complains about Solr without having Solr installed

Hello,
Yes, adding search to blacklist did resolve the issue. I still don't know where the solr_url is coming without ever installing it but the issue has been resolved.

Many thanks.