How to install a plugin for the elasticsearch kubernetes cluster

10/21/2015

I have a working kubernetes cluster with the elasticsearch up and running returning a 200. I am trying to install the HQ plugin. So i log into the node running the es-client, and attach to the docker container. When i execute the command

/ # /elasticsearch/bin/plugin  -install royrusso/elasticsearch-HQ

i am getting

Exception in thread "main" java.lang.IllegalArgumentException: Could not resolve placeholder 'DISCOVERY_SERVICE'

I am using the yaml files from here https://github.com/pires/kubernetes-elasticsearch-cluster with these modifications https://github.com/UKHomeOffice/docker-elasticsearch/blob/master/examples/kubernetes.md

Am i missing something?

Thanks in advance

-- winn j
elasticsearch
elasticsearch-plugin
kubernetes

1 Answer

10/21/2015

Attach to the container

docker exec -it 9f13966b1201 /bin/sh

Export the DISCOVERY_SERVICE

export DISCOVERY_SERVICE=${DISCOVERY_SERVICE:-elasticsearch-discovery}

Install the Plugin

/elasticsearch/bin/plugin  -install royrusso/elasticsearch-HQ

keep in mind this will not be persistent

-- winn j
Source: StackOverflow