【2019-05-08 追記・修正】
Elastic Stack 7.0がリリースされていますね。アップデート早いなぁ。とりあえず Elasticsearchからインストール。手順は、今までと変わらず。
PGP Key設定、リポジトリ設定(7.x系)してパッケージマネージャ(yum)でインストール。
elasticsearch.ymlの設定をして起動したところ以下のエラー、Warningが発生していました。
[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster. initial_master_nodes] must be configured
とか
[WARN ][o.e.c.c.ClusterFormationFailureHelper] [sves0002] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [localhost, 192.168.11.64] to bootstrap a cluster: have discovered []; discovery will continue using [127.0.0.1:9300] from hosts providers and [{sves0002}{D4CxR6-wTwKqjygfdrrDOYsX-AA}{0omhieAVTVCuE3iafjxjAw}{192.168.11.64}{192.168.11.64:9300}{ml.machine_memory=1927475200, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
必須設定項目が増えましたかね。
# # --------------------------------- Discovery ---------------------------------- # # Pass an initial list of hosts to perform discovery when this node is started: # The default list of hosts is ["127.0.0.1", "[::1]"] # #discovery.seed_hosts: ["host1", "host2"] # # Bootstrap the cluster using an initial set of master-eligible nodes: # #cluster.initial_master_nodes: ["node-1", "node-2"] # # For more information, consult the discovery and cluster formation module documentation. #
discovery.seed_hosts、cluster.initial_master_nodes の設定は必須?とりあえず以下の設定に書き変えて無事起動できました。
# # --------------------------------- Discovery ---------------------------------- # # Pass an initial list of hosts to perform discovery when this node is started: # The default list of hosts is ["127.0.0.1", "[::1]"] # discovery.seed_hosts: ["192.168.11.64"] # # Bootstrap the cluster using an initial set of master-eligible nodes: # cluster.initial_master_nodes: ["192.168.11.64"] # # For more information, consult the discovery and cluster formation module documentation. #
シングルノードの場合でも設定が必須なのか・・・・?
いじょ。