Reply
Expert Contributor
Posts: 93
Registered: ‎09-17-2014

Solr in HUE not working

I am trying to download solr examples from HUE administrator:-

 

It gives an error like this :-

 

Could not create instance directory. Check if [indexer] solr_zk_ensemble is correct in Hue config and look at the Solr error logs for more info

 

Error logs does not give any error.

 

Cloudera Employee
Posts: 98
Registered: ‎07-31-2013

Re: Solr in HUE not working

Hey,

Couple of questions:

1. What version of CDH are you running?
2. If you go to "/desktop/dump_config" and go to "Configuration
Sections and Variables" and click on "indexer", is the value
"solr_zk_ensemble" correct? If you are not sure, install the Solr gateway
on a node if not already installed and then
review /etc/solr/conf/solr-env.sh and see what the value is there.
3. Try the following safety valve in Hue->Configuration->Hue
Server->Advanced->Hue Server Advanced Configuration Snippet (Safety Valve)
for hue_safety_valve_server.ini:

[indexer]
core_instance_dir=/opt/cloudera/parcels/CDH/lib/hue/desktop/libs/indexer/src/data/collections

solr_zk_ensemble=
config_template_path=/opt/cloudera/parcels/CDH/lib/hue/desktop/libs/indexer/src/data/solrconfigs


Restart Hue and try again.

4. On the solr gateway node above, try running "solrctl collection --list"
and see if that command works. Also run "solrctl instancedir --list".