添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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'
org.elasticsearch.common.property.PropertyPlaceholder.parseStringValue(PropertyPlaceholder.java:143)
org.elasticsearch.common.property.PropertyPlaceholder.replacePlaceholders(PropertyPlaceholder.java:103)
org.elasticsearch.common.settings.ImmutableSettings$Builder.replacePropertyPlaceholders(ImmutableSettings.java:698)
org.elasticsearch.node.internal.InternalSettingsPerparer.prepareSettings(InternalSettingsPerparer.java:79)
org.elasticsearch.plugins.PluginManager.main(PluginManager.java:251)

Any ideas?

Thanks!

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'
org.elasticsearch.common.property.PropertyPlaceholder.parseStringValue(PropertyPlaceholder.java:143)
org.elasticsearch.common.property.PropertyPlaceholder.replacePlaceholders(PropertyPlaceholder.java:103)
org.elasticsearch.common.settings.ImmutableSettings$Builder.replacePropertyPlaceholders(ImmutableSettings.java:698)
org.elasticsearch.node.internal.InternalSettingsPerparer.prepareSettings(InternalSettingsPerparer.java:79)
org.elasticsearch.plugins.PluginManager.main(PluginManager.java:251)

Any ideas?

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'
org.elasticsearch.common.property.PropertyPlaceholder.parseStringValue(PropertyPlaceholder.java:143)
org.elasticsearch.common.property.PropertyPlaceholder.replacePlaceholders(PropertyPlaceholder.java:103)
org.elasticsearch.common.settings.ImmutableSettings$Builder.replacePropertyPlaceholders(ImmutableSettings.java:698)
org.elasticsearch.node.internal.InternalSettingsPerparer.prepareSettings(InternalSettingsPerparer.java:79)
org.elasticsearch.plugins.PluginManager.main(PluginManager.java:251)

Any ideas?

Thanks!