# How can I use elasticsearch-hadoop plugin?

**URL:** <https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066>\
**Category:** Elasticsearch\
**Created:** [May 22, 2013, 8:12am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066 "2013-05-22T08:12:51Z")\
**Posts on this page:** 8\
**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 22, 2013, 8:12am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066/1 "2013-05-22T08:12:51Z")

</div>

Hi all,  
This question may be too easy, but I am a new in elasticsearch. so.....  
I want to use elasticsearch-hadoop plugin, but it is not working. Here  
is my code.

public static void main(String[] args) throws Exception {  
Configuration configuration = new Configuration();  
String query = "twitter/tweet/\_search?routing=kimchy";

```
    configuration.set("es.resource", query);
    
    Job job = new Job(configuration);
    Path out = new Path(args[0]);

    job.setInputFormatClass(ESInputFormat.class);
    job.setOutputFormatClass(ESOutputFormat.class);
    job.setOutputKeyClass(Text.class);
    job.setOutputValueClass(MapWritable.class);

    job.waitForCompletion(true);

```

}

I just want to know how to use this plugin.............

--  
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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [May 23, 2013, 6:56pm UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066/2 "2013-05-23T18:56:02Z")

</div>

Hello Hoony,

I noticed you posted a few times without getting any responses. Not many  
people, including me, use the Hadoop plugin, so getting help might be  
difficult.

The one thing that sticks out from your example is that your search  
explicitly specifies that routing values (routing=kimchy). Can you retry  
your example without it?

--  
Ivan

On Wed, May 22, 2013 at 1:12 AM, Hoony [monkeyboywon@gmail.com](mailto:monkeyboywon@gmail.com) wrote:

> Hi all,  
> This question may be too easy, but I am a new in elasticsearch. so.....  
> I want to use elasticsearch-hadoop plugin, but it is not working. Here  
> is my code.
> 
> public static void main(String args) throws Exception {  
> Configuration configuration = new Configuration();  
> String query = "twitter/tweet/\_search?routing=kimchy";
> 
> ```
> configuration.set("es.resource", query);
> 
> Job job = new Job(configuration);
> Path out = new Path(args[0]);
> 
> job.setInputFormatClass(ESInputFormat.class);
> job.setOutputFormatClass(ESOutputFormat.class);
> job.setOutputKeyClass(Text.class);
> job.setOutputValueClass(MapWritable.class);
> 
> job.waitForCompletion(true);
> 
> ```
> 
> }
> 
> I just want to know how to use this plugin.............
> 
> --  
> 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).

--  
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:** ![Hoony](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hoony](https://discuss.elastic.co/u/Hoony)\
**Post date:** [May 28, 2013, 1:49am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066/3 "2013-05-28T01:49:17Z")

</div>

Thank you for your response 🙂

Do you mean run my example like here?

public static void main(String args) throws Exception {  
Configuration configuration = new Configuration();  
String query = "twitter/tweet/\_search?"; \<======== String query  
= "twitter/tweet/\_search?"

```
    configuration.set("es.resource", query);
    
    Job job = new Job(configuration);
    Path out = new Path(args[0]);

    job.setInputFormatClass(ESInputFormat.class);
    job.setOutputFormatClass(ESOutputFormat.class);
    job.setOutputKeyClass(Text.class);
    job.setOutputValueClass(MapWritable.class);

    job.waitForCompletion(true);

```

}

It appear the same result. The 500 status was returned. And here is a more  
detail description about my issue.  
[https://groups.google.com/forum/?fromgroups#!topic/elasticsearch/RfnT5kst8Gc](https://groups.google.com/forum/?fromgroups#!topic/elasticsearch/RfnT5kst8Gc)

在 2013年5月24日星期五UTC+9上午3时56分02秒，Ivan Brusic写道：

> Hello Hoony,
> 
> I noticed you posted a few times without getting any responses. Not many  
> people, including me, use the Hadoop plugin, so getting help might be  
> difficult.
> 
> The one thing that sticks out from your example is that your search  
> explicitly specifies that routing values (routing=kimchy). Can you retry  
> your example without it?
> 
> --  
> Ivan
> 
> On Wed, May 22, 2013 at 1:12 AM, Hoony \<[monkey...@gmail.com](mailto:monkey...@gmail.com) \<javascript:\>\>wrote:
> 
> > Hi all,  
> > This question may be too easy, but I am a new in elasticsearch. so.....  
> > I want to use elasticsearch-hadoop plugin, but it is not working. Here  
> > is my code.
> > 
> > public static void main(String args) throws Exception {  
> > Configuration configuration = new Configuration();  
> > String query = "twitter/tweet/\_search?routing=kimchy";
> > 
> > ```
> > configuration.set("es.resource", query);
> >     
> > Job job = new Job(configuration);
> > Path out = new Path(args[0]);
> > 
> > job.setInputFormatClass(ESInputFormat.class);
> > job.setOutputFormatClass(ESOutputFormat.class);
> > job.setOutputKeyClass(Text.class);
> > job.setOutputValueClass(MapWritable.class);
> > 
> > job.waitForCompletion(true);
> > 
> > ```
> > 
> > }
> > 
> > I just want to know how to use this plugin.............
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:** ![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:** [May 28, 2013, 3:48am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066/4 "2013-05-28T03:48:06Z")

</div>

Hi,

Sorry I didn't pick on this thread earlier - it must have slipped under my radar.  
Make sure you're using Elasticsearch 0.90 (see the readme) or higher - the integration uses specific features added in  
0.90 and doesn't work on lower versions.

Let me know if you have any issues.

P.S. To simplify the initial deployment use a locally configured Hadoop so everything runs within the same JVM and you  
don't have classpath issues. If you want to use a remote VM/cluster then make sure you add elasticsearch-hadoop jar to  
you job classpath.

Cheers,

On 28/05/2013 4:49 AM, Hoony wrote:

> Thank you for your response 🙂
> 
> Do you mean run my example like here?
> 
> public static void main(String args) throws Exception {  
> Configuration configuration = new Configuration();  
> String query = "twitter/tweet/\_search?"; \<======== String query = "twitter/tweet/\_search?"
> 
> ```
> configuration.set("es.resource", query);
> 
> Job job = new Job(configuration);
> Path out = new Path(args[0]);
> 
> job.setInputFormatClass(ESInputFormat.class);
> job.setOutputFormatClass(ESOutputFormat.class);
> job.setOutputKeyClass(Text.class);
> job.setOutputValueClass(MapWritable.class);
> 
> job.waitForCompletion(true);
> 
> ```
> 
> }
> 
> It appear the same result. The 500 status was returned. And here is a more detail description about my issue.  
> [Redirecting to Google Groups](https://groups.google.com/forum/?fromgroups#!topic/elasticsearch/RfnT5kst8Gc)
> 
> 在 2013年5月24日星期五UTC+9上午3时56分02秒，Ivan Brusic写道：
> 
> ```
> Hello Hoony,
> 
> I noticed you posted a few times without getting any responses. Not many people, including me, use the Hadoop
> plugin, so getting help might be difficult.
> 
> The one thing that sticks out from your example is that your search explicitly specifies that routing values
> (routing=kimchy). Can you retry your example without it?
> 
> --
> Ivan
> 
> On Wed, May 22, 2013 at 1:12 AM, Hoony <monkey...@gmail.com <javascript:>> wrote:
> 
> Hi all,
> This question may be too easy, but I am a new in elasticsearch. so.....
> I want to use elasticsearch-hadoop plugin, but it is not working. Here is my code.
> 
> public static void main(String[] args) throws Exception {
> Configuration configuration = new Configuration();
> String query = "twitter/tweet/_search?routing=kimchy";
> 
> configuration.set("es.resource", query);
> 
> Job job = new Job(configuration);
> Path out = new Path(args[0]);
> 
> job.setInputFormatClass(ESInputFormat.class);
> job.setOutputFormatClass(ESOutputFormat.class);
> job.setOutputKeyClass(Text.class);
> job.setOutputValueClass(MapWritable.class);
> 
> job.waitForCompletion(true);
> }
> 
> I just want to know how to use this plugin.............
> 
> --
> 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
> elasticsearc...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out <https://groups.google.com/groups/opt_out>.
> 
> ```
> 
> --  
> 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).

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

---

<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 28, 2013, 5:22am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066/5 "2013-05-28T05:22:55Z")

</div>

Thank you for your reply 🙂

I checked elasticsearch version which I used, and it is version 9.0.  
All test environment is in localhost. Would you mind look at the web page  
which I describe more detail? ----  
[https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/how$20to$20use$20elasticsearch-hadoop/elasticsearch/RfnT5kst8Gc/wkV7iF\_Kve8J](https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/how$20to$20use$20elasticsearch-hadoop/elasticsearch/RfnT5kst8Gc/wkV7iF_Kve8J)  
[https://lh6.googleusercontent.com/-hPlX2xSV9Jg/UaQ9gQSoYnI/AAAAAAAAADw/HYnhLmQtwUg/s1600/list.gif](https://lh6.googleusercontent.com/-hPlX2xSV9Jg/UaQ9gQSoYnI/AAAAAAAAADw/HYnhLmQtwUg/s1600/list.gif)

在 2013年5月28日星期二UTC+9下午12时48分06秒，Costin Leau写道：

> Hi,

> Sorry I didn't pick on this thread earlier - it must have slipped under my  
> radar.  
> Make sure you're using Elasticsearch 0.90 (see the readme) or higher - the  
> integration uses specific features added in  
> 0.90 and doesn't work on lower versions.
> 
> Let me know if you have any issues.
> 
> P.S. To simplify the initial deployment use a locally configured Hadoop so  
> everything runs within the same JVM and you  
> don't have classpath issues. If you want to use a remote VM/cluster then  
> make sure you add elasticsearch-hadoop jar to  
> you job classpath.
> 
> Cheers,
> 
> On 28/05/2013 4:49 AM, Hoony wrote:
> 
> > Thank you for your response 🙂
> > 
> > Do you mean run my example like here?
> > 
> > public static void main(String args) throws Exception {  
> > Configuration configuration = new Configuration();  
> > String query = "twitter/tweet/\_search?"; \<======== String query =  
> > "twitter/tweet/\_search?"
> > 
> > ```
> > configuration.set("es.resource", query); 
> > 
> > Job job = new Job(configuration); 
> > Path out = new Path(args[0]); 
> > 
> > job.setInputFormatClass(ESInputFormat.class); 
> > job.setOutputFormatClass(ESOutputFormat.class); 
> > job.setOutputKeyClass(Text.class); 
> > job.setOutputValueClass(MapWritable.class); 
> > 
> > job.waitForCompletion(true); 
> > 
> > ```
> > 
> > }
> > 
> > It appear the same result. The 500 status was returned. And here is a  
> > more detail description about my issue.
> 
> [Redirecting to Google Groups](https://groups.google.com/forum/?fromgroups#!topic/elasticsearch/RfnT5kst8Gc)
> 
> > 在 2013年5月24日星期五UTC+9上午3时56分02秒，Ivan Brusic写道：
> > 
> > ```
> > Hello Hoony, 
> > 
> > I noticed you posted a few times without getting any responses. Not 
> > 
> > ```
> 
> many people, including me, use the Hadoop
> 
> > ```
> > plugin, so getting help might be difficult. 
> > 
> > The one thing that sticks out from your example is that your search 
> > 
> > ```
> 
> explicitly specifies that routing values
> 
> > ```
> > (routing=kimchy). Can you retry your example without it? 
> > 
> > -- 
> > Ivan 
> > 
> > On Wed, May 22, 2013 at 1:12 AM, Hoony <monkey...@gmail.com<javascript:>> wrote: 
> > 
> > Hi all, 
> > This question may be too easy, but I am a new in 
> > 
> > ```
> 
> elasticsearch. so.....
> 
> > ```
> > I want to use elasticsearch-hadoop plugin, but it is not 
> > 
> > ```
> 
> working. Here is my code.
> 
> > ```
> > public static void main(String[] args) throws Exception { 
> > Configuration configuration = new Configuration(); 
> > String query = "twitter/tweet/_search?routing=kimchy"; 
> > 
> > configuration.set("es.resource", query); 
> > 
> > Job job = new Job(configuration); 
> > Path out = new Path(args[0]); 
> > 
> > job.setInputFormatClass(ESInputFormat.class); 
> > job.setOutputFormatClass(ESOutputFormat.class); 
> > job.setOutputKeyClass(Text.class); 
> > job.setOutputValueClass(MapWritable.class); 
> > 
> > job.waitForCompletion(true); 
> > } 
> > 
> > I just want to know how to use this plugin............. 
> > 
> > -- 
> > 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
> 
> > ```
> > elasticsearc...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/groups/opt_out<
> > 
> > ```
> 
> [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)\>.
> 
> > --  
> > 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  
> > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 29, 2013, 8:46am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066/6 "2013-05-29T08:46:52Z")

</div>

Thank you for your reply 🙂

I checked elasticsearch version which I used, and it is version 9.0.  
All test environment is in localhost. Would you mind look at the web page  
which I describe more detail? ----  
[https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/how$20to$20use$20elasticsearch-hadoop/elasticsearch/RfnT5kst8Gc/wkV7iF\_Kve8J](https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/how$20to$20use$20elasticsearch-hadoop/elasticsearch/RfnT5kst8Gc/wkV7iF_Kve8J)  
[https://lh6.googleusercontent.com/-hPlX2xSV9Jg/UaQ9gQSoYnI/AAAAAAAAADw/HYnhLmQtwUg/s1600/list.gif](https://lh6.googleusercontent.com/-hPlX2xSV9Jg/UaQ9gQSoYnI/AAAAAAAAADw/HYnhLmQtwUg/s1600/list.gif)

在 2013年5月28日星期二UTC+9下午12时48分06秒，Costin Leau写道：

> Hi,
> 
> Sorry I didn't pick on this thread earlier - it must have slipped under my  
> radar.  
> Make sure you're using Elasticsearch 0.90 (see the readme) or higher - the  
> integration uses specific features added in  
> 0.90 and doesn't work on lower versions.
> 
> Let me know if you have any issues.
> 
> P.S. To simplify the initial deployment use a locally configured Hadoop so  
> everything runs within the same JVM and you  
> don't have classpath issues. If you want to use a remote VM/cluster then  
> make sure you add elasticsearch-hadoop jar to  
> you job classpath.
> 
> Cheers,
> 
> On 28/05/2013 4:49 AM, Hoony wrote:
> 
> > Thank you for your response 🙂
> > 
> > Do you mean run my example like here?
> > 
> > public static void main(String args) throws Exception {  
> > Configuration configuration = new Configuration();  
> > String query = "twitter/tweet/\_search?"; \<======== String query =  
> > "twitter/tweet/\_search?"
> > 
> > ```
> > configuration.set("es.resource", query); 
> > 
> > Job job = new Job(configuration); 
> > Path out = new Path(args[0]); 
> > 
> > job.setInputFormatClass(ESInputFormat.class); 
> > job.setOutputFormatClass(ESOutputFormat.class); 
> > job.setOutputKeyClass(Text.class); 
> > job.setOutputValueClass(MapWritable.class); 
> > 
> > job.waitForCompletion(true); 
> > 
> > ```
> > 
> > }
> > 
> > It appear the same result. The 500 status was returned. And here is a  
> > more detail description about my issue.
> 
> [Redirecting to Google Groups](https://groups.google.com/forum/?fromgroups#!topic/elasticsearch/RfnT5kst8Gc)
> 
> > 在 2013年5月24日星期五UTC+9上午3时56分02秒，Ivan Brusic写道：
> > 
> > ```
> > Hello Hoony, 
> > 
> > I noticed you posted a few times without getting any responses. Not 
> > 
> > ```
> 
> many people, including me, use the Hadoop
> 
> > ```
> > plugin, so getting help might be difficult. 
> > 
> > The one thing that sticks out from your example is that your search 
> > 
> > ```
> 
> explicitly specifies that routing values
> 
> > ```
> > (routing=kimchy). Can you retry your example without it? 
> > 
> > -- 
> > Ivan 
> > 
> > On Wed, May 22, 2013 at 1:12 AM, Hoony <monkey...@gmail.com<javascript:>> wrote: 
> > 
> > Hi all, 
> > This question may be too easy, but I am a new in 
> > 
> > ```
> 
> elasticsearch. so.....
> 
> > ```
> > I want to use elasticsearch-hadoop plugin, but it is not 
> > 
> > ```
> 
> working. Here is my code.
> 
> > ```
> > public static void main(String[] args) throws Exception { 
> > Configuration configuration = new Configuration(); 
> > String query = "twitter/tweet/_search?routing=kimchy"; 
> > 
> > configuration.set("es.resource", query); 
> > 
> > Job job = new Job(configuration); 
> > Path out = new Path(args[0]); 
> > 
> > job.setInputFormatClass(ESInputFormat.class); 
> > job.setOutputFormatClass(ESOutputFormat.class); 
> > job.setOutputKeyClass(Text.class); 
> > job.setOutputValueClass(MapWritable.class); 
> > 
> > job.waitForCompletion(true); 
> > } 
> > 
> > I just want to know how to use this plugin............. 
> > 
> > -- 
> > 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
> 
> > ```
> > elasticsearc...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/groups/opt_out<
> > 
> > ```
> 
> [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)\>.
> 
> > --  
> > 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  
> > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [May 29, 2013, 11:26am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066/7 "2013-05-29T11:26:55Z")

</div>

Your query is incorrect - don't use routing (we don't support it yet and we  
might even forbid it since the runtime already does 'routing' creating  
multiple Hadoop splits per available shards).  
Start with a basic query such as : "twitter/tweet/search?q=\*" and take it  
from there.

Currently the parsing is of the query string does not cover all the cases  
but will be addressed in the near future.

Hth,

On Wed, May 29, 2013 at 10:46 AM, Hoony [monkeyboywon@gmail.com](mailto:monkeyboywon@gmail.com) wrote:

> Thank you for your reply 🙂
> 
> I checked elasticsearch version which I used, and it is version 9.0.  
> All test environment is in localhost. Would you mind look at the web page  
> which I describe more detail? ---- [https://groups.google.com/](https://groups.google.com/)\*\*  
> forum/?fromgroups#!searchin/ **elasticsearch/how$20to$20use$**  
> 20elasticsearch-hadoop/\*\*elasticsearch/RfnT5kst8Gc/\*\*wkV7iF\_Kve8J[https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/how$20to$20use$20elasticsearch-hadoop/elasticsearch/RfnT5kst8Gc/wkV7iF\_Kve8J](https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/how$20to$20use$20elasticsearch-hadoop/elasticsearch/RfnT5kst8Gc/wkV7iF_Kve8J)
> 
> [https://lh6.googleusercontent.com/-hPlX2xSV9Jg/UaQ9gQSoYnI/AAAAAAAAADw/HYnhLmQtwUg/s1600/list.gif](https://lh6.googleusercontent.com/-hPlX2xSV9Jg/UaQ9gQSoYnI/AAAAAAAAADw/HYnhLmQtwUg/s1600/list.gif)
> 
> 在 2013年5月28日星期二UTC+9下午12时48分06秒，Costin Leau写道：
> 
> > Hi,
> > 
> > Sorry I didn't pick on this thread earlier - it must have slipped under  
> > my radar.  
> > Make sure you're using Elasticsearch 0.90 (see the readme) or higher -  
> > the integration uses specific features added in  
> > 0.90 and doesn't work on lower versions.
> > 
> > Let me know if you have any issues.
> > 
> > P.S. To simplify the initial deployment use a locally configured Hadoop  
> > so everything runs within the same JVM and you  
> > don't have classpath issues. If you want to use a remote VM/cluster then  
> > make sure you add elasticsearch-hadoop jar to  
> > you job classpath.
> > 
> > Cheers,
> > 
> > On 28/05/2013 4:49 AM, Hoony wrote:
> > 
> > > Thank you for your response 🙂
> > > 
> > > Do you mean run my example like here?
> > > 
> > > public static void main(String args) throws Exception {  
> > > Configuration configuration = new Configuration();  
> > > String query = "twitter/tweet/\_search?"; \<======== String query =  
> > > "twitter/tweet/\_search?"
> > > 
> > > ```
> > > configuration.set("es.**resource", query);
> > > 
> > > Job job = new Job(configuration);
> > > Path out = new Path(args[0]);
> > > 
> > > job.setInputFormatClass(**ESInputFormat.class);
> > > job.setOutputFormatClass(**ESOutputFormat.class);
> > > job.setOutputKeyClass(Text.**class);
> > > job.setOutputValueClass(**MapWritable.class);
> > > 
> > > job.waitForCompletion(true);
> > > 
> > > ```
> > > 
> > > }
> > > 
> > > It appear the same result. The 500 status was returned. And here is a  
> > > more detail description about my issue.  
> > > [https://groups.google.com/\*\*forum/?fromgroups#!topic/](https://groups.google.com/**forum/?fromgroups#!topic/)\*\*  
> > > elasticsearch/RfnT5kst8Gc[https://groups.google.com/forum/?fromgroups#!topic/elasticsearch/RfnT5kst8Gc](https://groups.google.com/forum/?fromgroups#!topic/elasticsearch/RfnT5kst8Gc)
> > > 
> > > 在 2013年5月24日星期五UTC+9上午3时56分02秒，\*\*Ivan Brusic写道：
> > > 
> > > ```
> > > Hello Hoony,
> > > 
> > > I noticed you posted a few times without getting any responses. Not
> > > 
> > > ```
> > 
> > many people, including me, use the Hadoop
> > 
> > > ```
> > > plugin, so getting help might be difficult.
> > > 
> > > The one thing that sticks out from your example is that your search
> > > 
> > > ```
> > 
> > explicitly specifies that routing values
> > 
> > > ```
> > > (routing=kimchy). Can you retry your example without it?
> > > 
> > > --
> > > Ivan
> > > 
> > > On Wed, May 22, 2013 at 1:12 AM, Hoony <monkey...@gmail.com<javascript:>> wrote:
> > > 
> > > Hi all,
> > > This question may be too easy, but I am a new in
> > > 
> > > ```
> > 
> > elasticsearch. so.....
> > 
> > > ```
> > > I want to use elasticsearch-hadoop plugin, but it is not
> > > 
> > > ```
> > 
> > working. Here is my code.
> > 
> > > ```
> > > public static void main(String[] args) throws Exception {
> > > Configuration configuration = new Configuration();
> > > String query = "twitter/tweet/_search?**routing=kimchy";
> > > 
> > > ```
> > 
> > > ```
> > > configuration.set("es.**resource", query);
> > > 
> > > Job job = new Job(configuration);
> > > Path out = new Path(args[0]);
> > > 
> > > job.setInputFormatClass(**ESInputFormat.class);
> > > job.setOutputFormatClass(**ESOutputFormat.class);
> > > job.setOutputKeyClass(Text.**class);
> > > job.setOutputValueClass(**MapWritable.class);
> > > 
> > > job.waitForCompletion(true);
> > > }
> > > 
> > > I just want to know how to use this plugin.............
> > > 
> > > --
> > > 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
> > 
> > > ```
> > > elasticsearc...@googlegroups.**com <javascript:>.
> > > For more options, visit https://groups.google.com/**
> > > 
> > > ```
> > 
> > groups/opt\_out [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out) \<  
> > [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)\>.
> > 
> > > --  
> > > 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  
> > > elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).  
> > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > > 
> > 
> > --  
> > 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).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:34am UTC](https://discuss.elastic.co/t/how-can-i-use-elasticsearch-hadoop-plugin/12066/8 "2017-07-06T02:34:09Z")

</div>


