Search samples for a live demo of Search on Hadoop

Search samples for a live demo of Search on Hadoop

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
Screenshot from 2014-04-09 08:06:26

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

Yelp

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 $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!

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

8 Comments

  1. Felipe 4 months ago

    Hi,

    I am get a error when i try to import a sample:

    “duplicate key value violates unique constraint “auth_user_username_key” DETAIL: Key (username)=(hue) already exists.”.

    Could you help me? I am using a HUE 3.10 in Cloudera 5.8.

    Thanks

    • Author
      Hue Team 4 months ago

      We fixed a bunch of issues in Hue 3.11 and CDH 5.9. Would you want to share the json document that you are importing that way we can validate this?

Leave a reply

Your email address will not be published. Required fields are marked *

*