stuck when execute sgadmin

I installed searchguard plugin into my elasticsearch cluster, which have some data.,but it stuck when excuting sgadmin.sh.

log:

Will connect to 0.0.0.0:9300 … done

Contacting elasticsearch cluster ‘test’ and wait for YELLOW clusterstate …

but when I install searchguard plugin into my elasticsearch cluster, which don’t have data,it works fine.

could u tell me how to install sg to es which have data?

···

Search Guard and Elasticsearch version:2.4.1

Java version :1.8

operating system version :centos7

sgconfig waits until the cluster state is GREEN.
Maybe you have set up a number of replica that is too large for the number of nodes in your cluster?
Check for curl 0:9200/_cat/health

my es setting:

number of nodes: 4 (2 nodes, 1 master, 1 client)

number of replica : 1

the largest index is about 2G

I excuted this comond curl 0:9200/_cat/health, but it returns searchguard not initualized…

I agree with u that the replica is too large for nodes and the status of es must be red, but how to resolve it?

在 2018年2月12日星期一 UTC+8下午3:21:47,Fabien Wernli写道:

···

sgconfig waits until the cluster state is GREEN.
Maybe you have set up a number of replica that is too large for the number of nodes in your cluster?
Check for curl 0:9200/_cat/health

Elasticsearch and Search Guard 2.4.1 is end of life (EOL).
Therefore we do not longer provide support, pls. upgrade to latest 5.6.x or 6.2.x

···

On Sunday, 11 February 2018 10:42:03 UTC+1, 7…0@…q.com wrote:

I installed searchguard plugin into my elasticsearch cluster, which have some data.,but it stuck when excuting sgadmin.sh.

log:

Will connect to 0.0.0.0:9300 … done

Contacting elasticsearch cluster ‘test’ and wait for YELLOW clusterstate …

but when I install searchguard plugin into my elasticsearch cluster, which don’t have data,it works fine.

could u tell me how to install sg to es which have data?


Search Guard and Elasticsearch version:2.4.1

Java version :1.8

operating system version :centos7