Re: Debug Rest Plugin

2015-03-31 Thread María Carolina Bessega Lodi
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 *
> @dadoonet  | @elasticsearchfr 
>  | @scrutmydocs 
> 
>
>
>
>
>  
> Le 31 mars 2015 à 18:10, María Carolina Bessega Lodi  > 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 .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com
>  
> 
> .
> For more options, visit 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/bb8687b3-4d83-47e4-93b3-505b0074eb98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Debug Rest Plugin

2015-03-31 Thread David Pilato
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
@dadoonet  | @elasticsearchfr 
 | @scrutmydocs 






> Le 31 mars 2015 à 18:10, María Carolina Bessega Lodi  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+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com
>  
> .
> For more options, visit 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/98B7E3C1-DE1F-48AB-AA85-2E3CD3C95CA7%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


Debug Rest Plugin

2015-03-31 Thread María Carolina Bessega Lodi
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/0dd66199-336b-4d6d-ad25-68e67fa2f30c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.