title: Search samples for a live demo of Search on Hadoop author: admin type: post date: 2014-03-23T05:00:00+00:00 url: /tutorial-live-demo-of-search-on-hadoop/ tumblr_gethue_permalink:
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:
Yelp
To install them, got to Hue on the /about/ page and on Step 2 click on 'Solr Search':
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:
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 $HUE_HOME
cd apps/search/examples/bin
Then create the Solr collections:
./create_collections.sh
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:
./post.sh
Same, if Solr is on a different machine, update the url:
URL=http://localhost:8983/solr
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!
{{< youtube ATldKiiJdqY >}}
As usual feel free to comment on the hue-user list or @gethue!