# How can I use elasticsearch-hadoop plugin? \[hadoop\]

**URL:** https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin-hadoop/12086
**Category:** Elasticsearch
**Created:** [May 23, 2013, 5:29am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin-hadoop/12086 "2013-05-23T05:29:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Hoony](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hoony](https://discuss.elastic.co/u/Hoony)
#### Post date: [May 23, 2013, 5:29am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin-hadoop/12086/1 "2013-05-23T05:29:23Z")

</div>

\*Hello Team,

I am a student and I am learning about elasticsearch now. I find a plugin  
called elasticsearch-hadoop in Github site and want to achieve a small demo  
program, but I have a trouble. I describe it as follows:\*

1. elasticsearch cluster:  
• one node with five shards  
• start it as service  
$ bin/service/elasticsearch start  
Starting Elasticsearch...  
ElasticSearch is already running.  
• install the head plugin and can see the message as follows

[https://lh6.googleusercontent.com/-TsKaPH-mU60/UZ2lWEfs1OI/AAAAAAAAABo/ZveQm8Pezo4/s1600/image1.jpg](https://lh6.googleusercontent.com/-TsKaPH-mU60/UZ2lWEfs1OI/AAAAAAAAABo/ZveQm8Pezo4/s1600/image1.jpg)

[https://lh6.googleusercontent.com/-TsKaPH-mU60/UZ2lWEfs1OI/AAAAAAAAABo/ZveQm8Pezo4/s1600/image1.jpg](https://lh6.googleusercontent.com/-TsKaPH-mU60/UZ2lWEfs1OI/AAAAAAAAABo/ZveQm8Pezo4/s1600/image1.jpg)

1. hadoop environment:  
• pseudo mode  
• configuration like this  
$ vim hdfs-site.xml

[https://lh3.googleusercontent.com/-vmqw1RU1whw/UZ2mF3W6KwI/AAAAAAAAAB4/TN\_AuOHKmhM/s1600/image3.jpg](https://lh3.googleusercontent.com/-vmqw1RU1whw/UZ2mF3W6KwI/AAAAAAAAAB4/TN_AuOHKmhM/s1600/image3.jpg)

```
$ vim mapred-site.xml

                

$ vim conf/core-site.xml

```

[https://lh3.googleusercontent.com/-zDo7o4SbasM/UZ2m0E4hqvI/AAAAAAAAACI/oCBZANHcqtg/s1600/image5.jpg](https://lh3.googleusercontent.com/-zDo7o4SbasM/UZ2m0E4hqvI/AAAAAAAAACI/oCBZANHcqtg/s1600/image5.jpg)

1. eclipse environment  
• Create map/reduce project

[https://lh5.googleusercontent.com/-QjXwjyjGknk/UZ2nSHjvuSI/AAAAAAAAACo/ulTZlCutgME/s1600/image6.jpg](https://lh5.googleusercontent.com/-QjXwjyjGknk/UZ2nSHjvuSI/AAAAAAAAACo/ulTZlCutgME/s1600/image6.jpg)

• add elasticsearch-hadoop plugin

• java code

[https://lh5.googleusercontent.com/-0b04R2lu0J8/UZ2n4kARMrI/AAAAAAAAADA/8zvCgk0\_nsw/s1600/image8.jpg](https://lh5.googleusercontent.com/-0b04R2lu0J8/UZ2n4kARMrI/AAAAAAAAADA/8zvCgk0_nsw/s1600/image8.jpg)

• error message

[https://lh5.googleusercontent.com/-2k3oPuIk-rc/UZ2oLmsdFZI/AAAAAAAAADI/hmql0XBGuqA/s1600/image9.jpg](https://lh5.googleusercontent.com/-2k3oPuIk-rc/UZ2oLmsdFZI/AAAAAAAAADI/hmql0XBGuqA/s1600/image9.jpg)

• full message which caused issue I think  
java.lang.IllegalStateException: [GET] on  
[twitter/tweet/\_search?routing=kimchy&search\_type=scan&scroll=10m&size=50preference=\_shards:0;\_only\_node:DxFg8q1XTkS5QGahzS4Vng]  
failed; server[[http://xxx.xxx.xxx.xxx:9200](http://xxx.xxx.xxx.xxx:9200)] returned  
[{"error":"SearchPhaseExecutionException[Failed to execute phase [initial],  
No indices / shards to search on, requested indices are  
[twitter]]","status":500}]

In the full message, why there are "&" in query string? I think it caused  
500 status return, so the error message occurs. I typed the URL into  
browser and returned same status(500).

[https://lh5.googleusercontent.com/-eSTXhklWXrQ/UZ2okeXywGI/AAAAAAAAADY/ud0ChyoYZfQ/s1600/image10.jpg](https://lh5.googleusercontent.com/-eSTXhklWXrQ/UZ2okeXywGI/AAAAAAAAADY/ud0ChyoYZfQ/s1600/image10.jpg)  
\*  
Which step is wrong? What need I do? I am very troubled about this... \*

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:35am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin-hadoop/12086/2 "2017-07-06T02:35:17Z")

</div>


