# Debug Rest Plugin

**URL:** <https://discuss.elastic.co/t/debug-rest-plugin/23015>\
**Category:** Elasticsearch\
**Created:** [March 31, 2015, 4:10pm UTC](https://discuss.elastic.co/t/debug-rest-plugin/23015 "2015-03-31T16:10:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maria\_Carolina\_Besse](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@Maria\_Carolina\_Besse](https://discuss.elastic.co/u/Maria_Carolina_Besse)\
**Post date:** [March 31, 2015, 4:10pm UTC](https://discuss.elastic.co/t/debug-rest-plugin/23015/1 "2015-03-31T16:10:24Z")

</div>

Hi

I created a plugin, I'm able to create the zip, install it in my cluster,  
etc.  
My problem comes if I want to debug from Eclipse having access to the  
current data in my cluster.  
To do that the easiest way should be make the "debug node" part of my  
cluster.

When I run the java application in Eclipse it launches a new elasticsearch  
node but it uses the generic cluster name "elasticsearch", as my cluster  
have a different name the discovery functionality is not activated.

Is there a way to specify elasticsearch config parameters (i.e. the  
parameter you usually add in elasticsearch.yml) when you debug the java app  
in your ide?

Thanks!!

--  
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/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 31, 2015, 4:13pm UTC](https://discuss.elastic.co/t/debug-rest-plugin/23015/2 "2015-03-31T16:13:05Z")

</div>

When I want to debug a plugin, I often run the org.elasticsearch.bootstrap.Bootstrap class.  
And I pass something like

-Des.foreground=true -Des.http.cors.enabled=true -Dhttp.cors.allow-origin=/.\*/ -Dhttp.cors.allow-credentials=true -Des.path.conf=/path/to/your/config/dir/

/path/to/your/config/dir/ contains logging.yml and elasticsearch.yml

HTH

--  
David Pilato - Developer | Evangelist

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co/)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 31 mars 2015 à 18:10, María Carolina Bessega Lodi [cbessega@gmail.com](mailto:cbessega@gmail.com) a écrit :
> 
> Hi
> 
> I created a plugin, I'm able to create the zip, install it in my cluster, etc.  
> My problem comes if I want to debug from Eclipse having access to the current data in my cluster.  
> To do that the easiest way should be make the "debug node" part of my cluster.
> 
> When I run the java application in Eclipse it launches a new elasticsearch node but it uses the generic cluster name "elasticsearch", as my cluster have a different name the discovery functionality is not activated.
> 
> Is there a way to specify elasticsearch config parameters (i.e. the parameter you usually add in elasticsearch.yml) when you debug the java app in your ide?
> 
> Thanks!!
> 
> --  
> 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/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/98B7E3C1-DE1F-48AB-AA85-2E3CD3C95CA7%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/98B7E3C1-DE1F-48AB-AA85-2E3CD3C95CA7%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Maria\_Carolina\_Besse](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@Maria\_Carolina\_Besse](https://discuss.elastic.co/u/Maria_Carolina_Besse)\
**Post date:** [March 31, 2015, 5:36pm UTC](https://discuss.elastic.co/t/debug-rest-plugin/23015/3 "2015-03-31T17:36:57Z")

</div>

Thank you David! It worked 🙂

El martes, 31 de marzo de 2015, 12:13:23 (UTC-4), David Pilato escribió:

> When I want to debug a plugin, I often run the  
> org.elasticsearch.bootstrap.Bootstrap class.  
> And I pass something like
> 
> -Des.foreground=true -Des.http.cors.enabled=true  
> -Dhttp.cors.allow-origin=/.\*/ -Dhttp.cors.allow-credentials=true  
> -Des.path.conf=/path/to/your/config/dir/
> 
> /path/to/your/config/dir/ contains logging.yml and elasticsearch.yml
> 
> HTH
> 
> --  
> _David Pilato_ - Developer | Evangelist  
> _[elastic.co](http://elastic.co) [http://elastic.co](http://elastic.co)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 31 mars 2015 à 18:10, María Carolina Bessega Lodi \<[cbes...@gmail.com](mailto:cbes...@gmail.com)  
> \<javascript:\>\> a écrit :
> 
> Hi
> 
> I created a plugin, I'm able to create the zip, install it in my cluster,  
> etc.  
> My problem comes if I want to debug from Eclipse having access to the  
> current data in my cluster.  
> To do that the easiest way should be make the "debug node" part of my  
> cluster.
> 
> When I run the java application in Eclipse it launches a new elasticsearch  
> node but it uses the generic cluster name "elasticsearch", as my cluster  
> have a different name the discovery functionality is not activated.
> 
> Is there a way to specify elasticsearch config parameters (i.e. the  
> parameter you usually add in elasticsearch.yml) when you debug the java app  
> in your ide?
> 
> Thanks!!
> 
> --  
> 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:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/bb8687b3-4d83-47e4-93b3-505b0074eb98%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bb8687b3-4d83-47e4-93b3-505b0074eb98%40googlegroups.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, 12:22am UTC](https://discuss.elastic.co/t/debug-rest-plugin/23015/4 "2017-07-06T00:22:40Z")

</div>


