I am trying to install the x_pack on elasticsearch i've followed every instructions in this guide
I set up the elasticsearch.yml file as it says , I restart elasticsearch and in one line I get this:
[2017-12-07T09:36:35,987][ERROR][o.e.x.m.c.i.IndexStatsCollector] [9njwqLj] collector [index-stats] failed to collect data
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:165) ~[elasticsearch-6.0.0.jar:6.0.0]
"it repeats the same mistake (at org.elasticsearch.something) until "
[2017-12-07T09:36:38,091][INFO ][o.e.l.LicenseService ] [9njwqLj] license [2b51a185-1182-4c86-a424-91ef909b99d9] mode [trial] - valid
[2017-12-07T09:36:38,129][INFO ][o.e.g.GatewayService ] [9njwqLj] recovered [7] indices into cluster_state
[2017-12-07T09:36:47,981][INFO ][o.e.c.m.MetaDataCreateIndexService] [9njwqLj] [.monitoring-es-6-2017.12.07] creating index, cause [auto(bulk api)], templates [.monitoring-es], shards [1]/[1], mappings [doc]
[2017-12-07T09:36:51,285][INFO ][o.e.c.r.a.AllocationService] [9njwqLj] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[my-index][3], [.kibana][0], [.monitoring-es-6-2017.12.07][0]] ...]).
[2017-12-07T09:37:51,523][INFO ][o.e.c.m.MetaDataCreateIndexService] [9njwqLj] [.watcher-history-6-2017.12.07] creating index, cause [auto(bulk api)], templates [.watch-history-6], shards [1]/[1], mappings [doc]
[2017-12-07T09:37:52,697][INFO ][o.e.c.m.MetaDataMappingService] [9njwqLj] [.watcher-history-6-2017.12.07/Hlt05ZPKQcqWWAXIJKJ9Xg] update_mapping [doc]
[2017-12-07T09:37:53,071][INFO ][o.e.c.m.MetaDataMappingService] [9njwqLj] [.watcher-history-6-2017.12.07/Hlt05ZPKQcqWWAXIJKJ9Xg] update_mapping [doc]
And it stop right there, So i continued to the next step , and execute this command:
\bin\x-pack>setup-passwords interactive
And i get this :
'"C:\Program Files\Elastic\Elasticsearch\6.0.0\bin\x-pack..\elasticsearch-env.bat"' is not recognized as an internal or external command, operable program or batch file.
In an other topic it says that the x-pach-env.bat was missing but I checked and it's there.
yes I am on windows , i have the same results "C:\Program Files\Elastic\Elasticsearch\6.0.0\bin\x-pack..\elasticsearch-env.bat"' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
So i install x-pack on elasticsearch and kibana with this command elasticsearch-plugin.bat install x-pack the same with kibana kibana-plugin.bat install x-pack
then i generate certificate certgen command i save it into the config directory
then i modified the elasticsearch.yml and add those line :
xpack.ssl.key: certs/${node.name}/${node.name}.key (path to my certificate)
xpack.ssl.certificate: certs/${node.name}/${node.name}.crt
xpack.ssl.certificate_authorities: certs/ca/ca.crt
xpack.security.transport.ssl.enabled: true
after that i restarted elasticsearch end execute the setup_passwords command
I can't manage to reproduce this issue locally. Can you give more details on it?
I tried with 6.0.1 and Windows Server 2012 and Windows 10, with both the MSI and the zip package.
Can you also make sure that elasticsearch-env.bat is present in the bin folder of Elasticsearch?
If you unzip Elasticsearch again in a new place and do the steps that I mentioned, does it work?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.