Commit Graph

8 Commits

Author SHA1 Message Date
Alexander Reelsen 343871fcf5 Allow bin/plugin to set -D JVM parameters
Currently the bin/plugin command did not allow one to set jvm parameters
for startup. Usually this parameters are not needed (no need to configure
heap sizes for such a short running process), but one could not set the
configuration path. And that one is important for plugins in order find
out, where the plugin directory is.

This is especially problematic when elasticsearch is installed as
debian/rpm package, because the configuration file is not placed in the
same directory structure the plugin shell script is put.

This pull request allows to call bin/plugin like this

bin/plugin -Des.default.config=/etc/elasticsearch/elasticsearch.yml -install mobz/elasticsearch-head

As a last small improvement, the PluginManager now outputs the directort
the plugin was installed to in order to avoid confusion.

Closes #3304
2013-08-02 09:19:57 +02:00
Scott MacVicar cf7ebfcebf Add $JAVA_OPTS to the plugin manager, useful for those who have proxies
Summary:
Facebook machines have on direct access to the internet. Need to tell java that we should use proxies.

Test Plan:
export JAVA_OPTS="-Dhttp.proxyHost=<ip> -Dhttp.proxyPort=8080"
2012-10-23 23:53:29 +02:00
Damien Hardy 5fa8dad4bf No need for plenty of RAM for plugin utility (RAM is often already taken by the elasticsearch service running beside) 2012-01-04 19:14:46 +02:00
Shay Banon 875d552e2c Broken plugin script, closes #1474. 2011-11-16 21:01:41 +02:00
Shay Banon e0acf13a12 don't use CLASSPATH in plugin, and simplify plugin.bat 2011-11-13 19:16:01 +02:00
kimchy b5d0e98a2b clean CDPATH on plugin script as well 2011-07-06 04:07:27 +03:00
Benoit Sigoure 50a475fd02 Startup script: fix shell quoting.
Paths should be quoted to avoid problems with spaces.
Arguments to the `case' command do not need to be quoted as it doesn't
undergo word splitting.
2011-04-22 10:31:01 +03:00
kimchy b0e1c58474 Add online plugin repository and a 'plugin' command to download them, closes #157 2010-05-03 10:49:50 +03:00