# Usecase for Elasticsearch for Hadoop

**URL:** https://discuss.elastic.co/t/usecase-for-elasticsearch-for-hadoop/19902
**Category:** Elasticsearch
**Created:** [September 22, 2014, 1:05am UTC](https://discuss.elastic.co/t/usecase-for-elasticsearch-for-hadoop/19902 "2014-09-22T01:05:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nelson\_Jeppesen](https://avatars.discourse-cdn.com/v4/letter/n/6de8d8/32.png) [@Nelson\_Jeppesen](https://discuss.elastic.co/u/Nelson_Jeppesen)
#### Post date: [September 22, 2014, 1:05am UTC](https://discuss.elastic.co/t/usecase-for-elasticsearch-for-hadoop/19902/1 "2014-09-22T01:05:02Z")

</div>

I'm trying to understand where `Elasticsearch for Hadoop` fits in the big  
data landscape and why someone would use it.

1. If you wan't all the data in Haddop searchable, doesn't that mean  
everything needs all the data duplicated in Elasticsearch (via `es-hadoop`)?

2. Can you push all data from Elasticsearch into Hadoop whit es-hadoop,  
instead of the reverse?

Here's my idea:  
Short-term (1 week) real-time searchable (kibana) data is kept in  
Elasticsearch  
Long-term (1 year+) high-latency searchable (hbase,pig et al.) data  
kept in Hadoop

At a high level, does this make sense?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/73c55fe9-08ae-4c74-93be-98107aff4954%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/73c55fe9-08ae-4c74-93be-98107aff4954%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)
#### Post date: [September 22, 2014, 6:14am UTC](https://discuss.elastic.co/t/usecase-for-elasticsearch-for-hadoop/19902/2 "2014-09-22T06:14:11Z")

</div>

Typically one would use es-hadoop if they are already Hadoop users. As for your questions:

1. Yes and no. To search data one has to index but not necessarily store the data. For convenience so that the data is  
returned along with the results, let's assume the worst case scenario where data is stored as well. However one would  
have to do so as well even use a pure Hadoop implementation - letting aside the fact that one would have to write the  
search algos using Map/Reduce which is not at all easy (think Geolocation) - all the intermediate steps and keys (think  
shuffling, key/output values) between input and output, would be saved to disk which results in data being duplicated on  
_each_ job.

Elasticseach aside, for data to be useable, searchable, indexed, etc... there needs to be some metadata - this is either  
packed with the data or created along the way. Since you mentioned HBase and Pig, take a look at their requirements.

1. Yes, es-hadoop is bidirectional so one can stream data in ES to from HDFS for example or stream data from ES to HDFS.  
However while ES can be used as a store, it's much more valuable if you use it for its search/insight capabilities hence  
why typically one would read search results from ES not just raw data.

If you haven't seen it so far, I recommend the latest webinar [1] which features es-hadoop and provides a complete  
picture of what es-hadooop is.

Cheers,

[1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/webinars/elasticsearch-and-apache-hadoop/)

On 9/22/14 4:05 AM, Nelson Jeppesen wrote:

> I'm trying to understand where `Elasticsearch for Hadoop` fits in the big data landscape and why someone would use it.
> 
> 1. If you wan't all the data in Haddop searchable, doesn't that mean everything needs all the data duplicated in  
> Elasticsearch (via `es-hadoop`)?
> 
> 2. Can you push all data from Elasticsearch into Hadoop whit es-hadoop, instead of the reverse?
> 
> Here's my idea:  
> Short-term (1 week) real-time searchable (kibana) data is kept in Elasticsearch  
> Long-term (1 year+) high-latency searchable (hbase,pig et al.) data kept in Hadoop
> 
> At a high level, does this make sense?
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/73c55fe9-08ae-4c74-93be-98107aff4954%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/73c55fe9-08ae-4c74-93be-98107aff4954%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/73c55fe9-08ae-4c74-93be-98107aff4954%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/73c55fe9-08ae-4c74-93be-98107aff4954%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Costin

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/541FBE33.6010709%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/541FBE33.6010709%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 1:00am UTC](https://discuss.elastic.co/t/usecase-for-elasticsearch-for-hadoop/19902/3 "2017-07-06T01:00:46Z")

</div>


