Support Questions

Find answers, ask questions, and share your expertise

Connecting to Solrcloud from Hue

avatar
Explorer

We like to connect to SolrCloud from Hue. 

 

By putting this configuration

 

[search]

# URL of the Solr Server

solr_url=http://SOLR_HOST:8983/solr

 

we could connect to the host and can see the shards of the indexes living in that host. 

 

But we want to connect to ZooKeeper coordination service ensemble  and we want to get the shards of all the indexes from every host in Solrcloud.

 

Hue is started as a service through Cloudera Manager. But our SolrCloud is running outside Cloudera Manager cluster in another set of nodes. Can you please how do I point to zookeeper ensemble?

 

Thanks. 

 

 

 

 

2 ACCEPTED SOLUTIONS

avatar
Super Guru
Ha I see, I just repro-ed it!

There is a problem about how we list the collections that does not seem to
work with upstream Solr.

We are fixing this in this jira: https://issues.cloudera.org/browse/HUE-2961

In your code if you replace the collection function by the content of
collection2 it should work:
https://github.com/cloudera/hue/blob/master/desktop/libs/libsolr/src/libsolr/api.py#L433

Romain

View solution in original post

avatar
Super Guru
Yes, with the correct indentation!

And the last thing would be to remove the

'.key()'

of

https://github.com/cloudera/hue/blob/master/apps/search/src/search/search_controller.py#L121

and it should work (I just tested it on upstream Solr 5.3)

Romain

View solution in original post

12 REPLIES 12

avatar
Super Guru
It is there, look for the correct file path:
https://github.com/cloudera/hue/blob/cdh5.4.1-release/apps/search/src/search/search_controller.py#L1...

And FYI no need to compile, just editing and restarting Hue is enough

Romain

avatar
Explorer

Yes, it is there. It is working. Thank you so much Romain! 

avatar
Super Guru