Search samples for a live demo of Search on Hadoop

Published on 23 March 2014 in Querying - 2 minutes read - Last modified on 04 February 2020

Edit: This post is deprecated since Hue 3.6, clicking on the install button is the only thing to do now!

Hue comes up with a series of examples (for Hive/Impala, HBase…) to help you get started with Hadoop. Recently, some demo Collection/Indexes were added for the Search Application:

Screenshot from 2014-04-09 08:06:26

Screenshot from 2014-04-09 08:06:35


Screenshot from 2014-04-09 08:06:30

To install them,  got to Hue on the /about/ page and on Step 2 click on ‘Solr Search’:

Screenshot from 2014-04-09 08:32:20

This will install the search templates in Hue. To make the demo work by default, Hue is using a predefined Solr response. Hue displays a warning in this case as the page is not updated when typing a query:

Screenshot from 2014-03-10 16:13:06

The next step is to create the indexed into Solr. First, make sure that Solr has been setup and initialized correctly.

In order to query a live dataset, you need to index some data. Go on the Hue machine:


cd apps/search/examples/bin

Then create the Solr collections:


In case Solr is not on the same machine, add this parameter in the script:

-solr http://localhost:8983/solr

Then index some example data with:


Same, if Solr is on a different machine, update the url:


And that’s it! The above warning message will disappear and you will be able to query Solr indexes in live!

Then go create your own Search!

As usual feel free to comment on the hue-user list or @gethue!

comments powered by Disqus

More recent stories

23 June 2020
Monitoring Hue activity with Grafana Dashboards
Read More
22 June 2020
Automated checks for JavaScript modules compatible licenses and non absolute paths with Continuous Integration
Read More
19 May 2020
How to grant Ranger permissions for a new user on a Secure Cluster
Read More