2014-03-23-tutorial-live-demo-of-search-on-hadoop.md 4.6 KB


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:

  • http://gethue.tumblr.com/post/78012277574/tutorial-live-demo-of-search-on-hadoop tumblr_gethue_id:
  • 78012277574 sf_thumbnail_type:
  • none sf_thumbnail_link_type:
  • link_to_post sf_detail_type:
  • none sf_page_title:
  • 1 sf_page_title_style:
  • standard sf_no_breadcrumbs:
  • 1 sf_page_title_bg:
  • none sf_page_title_text_style:
  • light sf_background_image_size:
  • cover sf_social_sharing:
  • 1 sf_sidebar_config:
  • left-sidebar sf_left_sidebar:
  • Sidebar-2 sf_right_sidebar:
  • Sidebar-1 sf_caption_position:
  • caption-right slide_template:
  • default categories: ---

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:

Twitter

Logs

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!