Issue installing plugin - Could not resolve placeholder 'WRAPPER_HOSTNAME'

Running 0.19.3. The machine has connectivity to the outside world and I get
this with any plugin, here's an example error:

sudo bin/plugin -install jprante/elasticsearch-analysis-hunspell/1.1.1
Exception in thread "main" java.lang.IllegalArgumentException: Could not
resolve placeholder 'WRAPPER_HOSTNAME'
at
org.elasticsearch.common.property.PropertyPlaceholder.parseStringValue(PropertyPlaceholder.java:143)
at
org.elasticsearch.common.property.PropertyPlaceholder.replacePlaceholders(PropertyPlaceholder.java:103)
at
org.elasticsearch.common.settings.ImmutableSettings$Builder.replacePropertyPlaceholders(ImmutableSettings.java:698)
at
org.elasticsearch.node.internal.InternalSettingsPerparer.prepareSettings(InternalSettingsPerparer.java:79)
at
org.elasticsearch.plugins.PluginManager.main(PluginManager.java:251)

Any ideas?

Thanks!
Paul

--

It looks like elasticsearch.yml contains a placeholder that looks like
this: ${WRAPPER_HOSTNAME}. There also an environment
variable WRAPPER_HOSTNAME that is getting set somewhere in your
elasticsearch startup script. During normal startup the placeholder is
replaced with the value of the environment variable. But when you use
plugin utility this variabile is not set, so the plugin utility tries to
read elasticsearch.yml fails to resolve the placeholder and bails out.

On Friday, November 9, 2012 6:27:19 PM UTC-5, ppearcy wrote:

Running 0.19.3. The machine has connectivity to the outside world and I
get this with any plugin, here's an example error:

sudo bin/plugin -install jprante/elasticsearch-analysis-hunspell/1.1.1
Exception in thread "main" java.lang.IllegalArgumentException: Could not
resolve placeholder 'WRAPPER_HOSTNAME'
at
org.elasticsearch.common.property.PropertyPlaceholder.parseStringValue(PropertyPlaceholder.java:143)
at
org.elasticsearch.common.property.PropertyPlaceholder.replacePlaceholders(PropertyPlaceholder.java:103)
at
org.elasticsearch.common.settings.ImmutableSettings$Builder.replacePropertyPlaceholders(ImmutableSettings.java:698)
at
org.elasticsearch.node.internal.InternalSettingsPerparer.prepareSettings(InternalSettingsPerparer.java:79)
at
org.elasticsearch.plugins.PluginManager.main(PluginManager.java:251)

Any ideas?

Thanks!
Paul

--

Thanks!

Switching that to HOSTNAME in the elasticsearch.yml seems to have done the
trick.

On Friday, November 9, 2012 8:17:13 PM UTC-7, Igor Motov wrote:

It looks like elasticsearch.yml contains a placeholder that looks like
this: ${WRAPPER_HOSTNAME}. There also an environment
variable WRAPPER_HOSTNAME that is getting set somewhere in your
elasticsearch startup script. During normal startup the placeholder is
replaced with the value of the environment variable. But when you use
plugin utility this variabile is not set, so the plugin utility tries to
read elasticsearch.yml fails to resolve the placeholder and bails out.

On Friday, November 9, 2012 6:27:19 PM UTC-5, ppearcy wrote:

Running 0.19.3. The machine has connectivity to the outside world and I
get this with any plugin, here's an example error:

sudo bin/plugin -install jprante/elasticsearch-analysis-hunspell/1.1.1
Exception in thread "main" java.lang.IllegalArgumentException: Could not
resolve placeholder 'WRAPPER_HOSTNAME'
at
org.elasticsearch.common.property.PropertyPlaceholder.parseStringValue(PropertyPlaceholder.java:143)
at
org.elasticsearch.common.property.PropertyPlaceholder.replacePlaceholders(PropertyPlaceholder.java:103)
at
org.elasticsearch.common.settings.ImmutableSettings$Builder.replacePropertyPlaceholders(ImmutableSettings.java:698)
at
org.elasticsearch.node.internal.InternalSettingsPerparer.prepareSettings(InternalSettingsPerparer.java:79)
at
org.elasticsearch.plugins.PluginManager.main(PluginManager.java:251)

Any ideas?

Thanks!
Paul

--