Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin install script not honouring JAVA_OPTS anymore #16790

Closed
schlitzered opened this issue Feb 24, 2016 · 1 comment

Comments

Projects
None yet
4 participants
@schlitzered
Copy link

commented Feb 24, 2016

Elasticsearch version: 2.2.0.1 (yum repo)

JVM version: openjdk version "1.8.0_71"

OS version: CentOS 7.2

Description of the problem including expected versus actual behavior:

The elasticsearch plugin install script is not honouring the JAVA_OPTS environment variables anymore. this is needed to provide a http proxy for puppet runs.

Steps to reproduce:

  1. export JAVA="-Dhttp.proxyHost=contentproxy.example.com -Dhttp.proxyPort=3128 -Dhttps.proxyHost=contentproxy.example.com -Dhttps.proxyPort=3128"
  2. /usr/share/elasticsearch/bin/plugin install lmenezes/elasticsearch-kopf
  3. -> timeout

please change the last line of the plugin script from:

eval "$JAVA"  -client -Delasticsearch -Des.path.home="\"$ES_HOME\"" $properties -cp "\"$ES_HOME/lib/*\"" org.elasticsearch.plugins.PluginManagerCliParser $arg

to

eval "$JAVA" $JAVA_OPTS -client -Delasticsearch -Des.path.home="\"$ES_HOME\"" $properties -cp "\"$ES_HOME/lib/*\"" org.elasticsearch.plugins.PluginManagerCliParser $arg
@jasontedor

This comment has been minimized.

Copy link
Member

commented Mar 15, 2016

Relates #17121. We will support ES_JAVA_OPTS for this script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.