How to make ES load plugin from another path than ES_HOME/plugins

Hi,
How can i make ES load plugins from other than ES_HOME/plugins. Is there a
programmatic way of doing this. My test infrastructure does not allow me to
use Maven/yml files.

What i have tried so far.

  1. Tried to set path.plugins, plugin.types, plugins. +
    PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true, "plugins." +
    PluginsService.ES_PLUGIN_PROPERTIES_FILE_KEY,
    "file:/home/kumarsub/Downloads/elasticsearch-analysis-icu-2.4.1.jar"

I have been trying different combinations of the above and to no avail.

I am sure there must be a way, it's just that i don't know :slight_smile:

Your help is very much appreciated.

Thanks,
Kumar Subramanian.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Just add the plugin as a dependency to your project and you are done.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr https://twitter.com/elasticsearchfr | @scrutmydocs https://twitter.com/scrutmydocs

Le 24 févr. 2015 à 20:04, Kumar S krskumar108@gmail.com a écrit :

Hi,
How can i make ES load plugins from other than ES_HOME/plugins. Is there a programmatic way of doing this. My test infrastructure does not allow me to use Maven/yml files.

What i have tried so far.

  1. Tried to set path.plugins, plugin.types, plugins. + PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true, "plugins." + PluginsService.ES_PLUGIN_PROPERTIES_FILE_KEY, "file:/home/kumarsub/Downloads/elasticsearch-analysis-icu-2.4.1.jar"

I have been trying different combinations of the above and to no avail.

I am sure there must be a way, it's just that i don't know :slight_smile:

Your help is very much appreciated.

Thanks,
Kumar Subramanian.

--
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/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com https://groups.google.com/d/msgid/elasticsearch/280d356b-acc7-405c-8883-e37cdb4b43db%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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/E864F489-50A2-48F3-A9DB-71A16662D4FD%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

You just need to set path.plugins. You can do this via the config file or
run ES from the CLI with -Des.path.plugins=$path

On 25 February 2015 at 06:04, Kumar S krskumar108@gmail.com wrote:

Hi,
How can i make ES load plugins from other than ES_HOME/plugins. Is there a
programmatic way of doing this. My test infrastructure does not allow me to
use Maven/yml files.

What i have tried so far.

  1. Tried to set path.plugins, plugin.types, plugins. +
    PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true, "plugins." +
    PluginsService.ES_PLUGIN_PROPERTIES_FILE_KEY,
    "file:/home/kumarsub/Downloads/elasticsearch-analysis-icu-2.4.1.jar"

I have been trying different combinations of the above and to no avail.

I am sure there must be a way, it's just that i don't know :slight_smile:

Your help is very much appreciated.

Thanks,
Kumar Subramanian.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com?utm_medium=email&utm_source=footer
.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9iBKgfz%3DSjao7jHsZMk8p%3Da3GUg5j_tBoGomis9GZPdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hi Mark, David,
Thanks for your response.

I tried the following

Settings.Builder settings = ImmutableSettings.builder()
.put("path.data", "build/private")
.put("index.store.type", "memory")
.put("index.number_of_replicas", 0)
.put("path.plugins", "/home/kumar/Downloads/"); //This path
contains the JAR file for elasticsearch-analysis-icu

NodeBuilder.nodeBuilder().local(true).settings(settings).node();

But to no avail...When i tried to use icu_collation in my filter, it just
throws an exception stating "filter not found"

Custom Analyzer [ducet_sort] failed to find filter under name
[icu_collation]]

Thanks,
Kumar Subramanian.

On Tuesday, February 24, 2015 at 12:10:04 PM UTC-8, Mark Walkom wrote:

You just need to set path.plugins. You can do this via the config file or
run ES from the CLI with -Des.path.plugins=$path

On 25 February 2015 at 06:04, Kumar S <krsku...@gmail.com <javascript:>>
wrote:

Hi,
How can i make ES load plugins from other than ES_HOME/plugins. Is there
a programmatic way of doing this. My test infrastructure does not allow me
to use Maven/yml files.

What i have tried so far.

  1. Tried to set path.plugins, plugin.types, plugins. +
    PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true, "plugins." +
    PluginsService.ES_PLUGIN_PROPERTIES_FILE_KEY,
    "file:/home/kumarsub/Downloads/elasticsearch-analysis-icu-2.4.1.jar"

I have been trying different combinations of the above and to no avail.

I am sure there must be a way, it's just that i don't know :slight_smile:

Your help is very much appreciated.

Thanks,
Kumar Subramanian.

--
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:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com?utm_medium=email&utm_source=footer
.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/710876d4-fff6-4553-a30b-4f2b96dc504f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1st the jar is not enough. There are other dependencies.
That's why I said that you should just add the library to your maven project.
Much easier in my opinion then trying to deal with paths.

That said, under /home/kumar/Downloads you should create a analysis-icu dir and put in it all JARS available within the plugin zip file.

David

Le 24 févr. 2015 à 22:25, Kumar S krskumar108@gmail.com a écrit :

Hi Mark, David,
Thanks for your response.

I tried the following

Settings.Builder settings = ImmutableSettings.builder()
.put("path.data", "build/private")
.put("index.store.type", "memory")
.put("index.number_of_replicas", 0)
.put("path.plugins", "/home/kumar/Downloads/"); //This path contains the JAR file for elasticsearch-analysis-icu

NodeBuilder.nodeBuilder().local(true).settings(settings).node();

But to no avail...When i tried to use icu_collation in my filter, it just throws an exception stating "filter not found"

Custom Analyzer [ducet_sort] failed to find filter under name [icu_collation]]

Thanks,
Kumar Subramanian.

On Tuesday, February 24, 2015 at 12:10:04 PM UTC-8, Mark Walkom wrote:
You just need to set path.plugins. You can do this via the config file or run ES from the CLI with -Des.path.plugins=$path

On 25 February 2015 at 06:04, Kumar S krsku...@gmail.com wrote:
Hi,
How can i make ES load plugins from other than ES_HOME/plugins. Is there a programmatic way of doing this. My test infrastructure does not allow me to use Maven/yml files.

What i have tried so far.

  1. Tried to set path.plugins, plugin.types, plugins. + PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true, "plugins." + PluginsService.ES_PLUGIN_PROPERTIES_FILE_KEY, "file:/home/kumarsub/Downloads/elasticsearch-analysis-icu-2.4.1.jar"

I have been trying different combinations of the above and to no avail.

I am sure there must be a way, it's just that i don't know :slight_smile:

Your help is very much appreciated.

Thanks,
Kumar Subramanian.

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/280d356b-acc7-405c-8883-e37cdb4b43db%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/710876d4-fff6-4553-a30b-4f2b96dc504f%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/A7F5F272-89E3-4645-8D97-12AD3BC5A149%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

One more thing,
I cannot add the files as dependency explicitly as my Test infrastructure
does not allow that. What i can do is to add the files to a lib directory
in my project and when building (custom build scripts by my company) i can
specify it to copy it over to a particular build directory. Then i would
like ES to load it from that directory. (That's why i asked the question)

On Tuesday, February 24, 2015 at 1:25:44 PM UTC-8, Kumar S wrote:

Hi Mark, David,
Thanks for your response.

I tried the following

Settings.Builder settings = ImmutableSettings.builder()
.put("path.data", "build/private")
.put("index.store.type", "memory")
.put("index.number_of_replicas", 0)
.put("path.plugins", "/home/kumar/Downloads/"); //This
path contains the JAR file for elasticsearch-analysis-icu

NodeBuilder.nodeBuilder().local(true).settings(settings).node();

But to no avail...When i tried to use icu_collation in my filter, it just
throws an exception stating "filter not found"

Custom Analyzer [ducet_sort] failed to find filter under name
[icu_collation]]

Thanks,
Kumar Subramanian.

On Tuesday, February 24, 2015 at 12:10:04 PM UTC-8, Mark Walkom wrote:

You just need to set path.plugins. You can do this via the config file or
run ES from the CLI with -Des.path.plugins=$path

On 25 February 2015 at 06:04, Kumar S krsku...@gmail.com wrote:

Hi,
How can i make ES load plugins from other than ES_HOME/plugins. Is there
a programmatic way of doing this. My test infrastructure does not allow me
to use Maven/yml files.

What i have tried so far.

  1. Tried to set path.plugins, plugin.types, plugins. +
    PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true, "plugins." +
    PluginsService.ES_PLUGIN_PROPERTIES_FILE_KEY,
    "file:/home/kumarsub/Downloads/elasticsearch-analysis-icu-2.4.1.jar"

I have been trying different combinations of the above and to no avail.

I am sure there must be a way, it's just that i don't know :slight_smile:

Your help is very much appreciated.

Thanks,
Kumar Subramanian.

--
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/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com?utm_medium=email&utm_source=footer
.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/cb64361b-e728-4f13-bfac-d12e33ecd7f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks, That works!

On Tuesday, February 24, 2015 at 1:39:04 PM UTC-8, David Pilato wrote:

1st the jar is not enough. There are other dependencies.
That's why I said that you should just add the library to your maven
project.
Much easier in my opinion then trying to deal with paths.

That said, under /home/kumar/Downloads you should create a analysis-icu
dir and put in it all JARS available within the plugin zip file.

David

Le 24 févr. 2015 à 22:25, Kumar S <krsku...@gmail.com <javascript:>> a
écrit :

Hi Mark, David,
Thanks for your response.

I tried the following

Settings.Builder settings = ImmutableSettings.builder()
.put("path.data", "build/private")
.put("index.store.type", "memory")
.put("index.number_of_replicas", 0)
.put("path.plugins", "/home/kumar/Downloads/"); //This
path contains the JAR file for elasticsearch-analysis-icu

NodeBuilder.nodeBuilder().local(true).settings(settings).node();

But to no avail...When i tried to use icu_collation in my filter, it just
throws an exception stating "filter not found"

Custom Analyzer [ducet_sort] failed to find filter under name
[icu_collation]]

Thanks,
Kumar Subramanian.

On Tuesday, February 24, 2015 at 12:10:04 PM UTC-8, Mark Walkom wrote:

You just need to set path.plugins. You can do this via the config file or
run ES from the CLI with -Des.path.plugins=$path

On 25 February 2015 at 06:04, Kumar S krsku...@gmail.com wrote:

Hi,
How can i make ES load plugins from other than ES_HOME/plugins. Is there
a programmatic way of doing this. My test infrastructure does not allow me
to use Maven/yml files.

What i have tried so far.

  1. Tried to set path.plugins, plugin.types, plugins. +
    PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true, "plugins." +
    PluginsService.ES_PLUGIN_PROPERTIES_FILE_KEY,
    "file:/home/kumarsub/Downloads/elasticsearch-analysis-icu-2.4.1.jar"

I have been trying different combinations of the above and to no avail.

I am sure there must be a way, it's just that i don't know :slight_smile:

Your help is very much appreciated.

Thanks,
Kumar Subramanian.

--
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/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/280d356b-acc7-405c-8883-e37cdb4b43db%40googlegroups.com?utm_medium=email&utm_source=footer
.
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/710876d4-fff6-4553-a30b-4f2b96dc504f%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/710876d4-fff6-4553-a30b-4f2b96dc504f%40googlegroups.com?utm_medium=email&utm_source=footer
.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6fb8536f-ba68-40db-b4e1-293265b696e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.