# Issue installing plugin - Could not resolve placeholder 'WRAPPER\_HOSTNAME'

**URL:** <https://discuss.elastic.co/t/issue-installing-plugin-could-not-resolve-placeholder-wrapper-hostname/9657>\
**Category:** Elasticsearch\
**Created:** [November 9, 2012, 11:27pm UTC](https://discuss.elastic.co/t/issue-installing-plugin-could-not-resolve-placeholder-wrapper-hostname/9657 "2012-11-09T23:27:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [November 9, 2012, 11:27pm UTC](https://discuss.elastic.co/t/issue-installing-plugin-could-not-resolve-placeholder-wrapper-hostname/9657/1 "2012-11-09T23:27:18Z")

</div>

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

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 10, 2012, 3:17am UTC](https://discuss.elastic.co/t/issue-installing-plugin-could-not-resolve-placeholder-wrapper-hostname/9657/2 "2012-11-10T03:17:13Z")

</div>

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

--

---

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [November 12, 2012, 3:33pm UTC](https://discuss.elastic.co/t/issue-installing-plugin-could-not-resolve-placeholder-wrapper-hostname/9657/3 "2012-11-12T15:33:58Z")

</div>

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

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:04am UTC](https://discuss.elastic.co/t/issue-installing-plugin-could-not-resolve-placeholder-wrapper-hostname/9657/4 "2017-07-06T03:04:44Z")

</div>


