1.app应用程序包准备
[esadmin@oracle1 esapp]$ mkdir -p esapp9204 /esdb/eslog/eslog9204
[esadmin@oracle1 esapp]$ scp -r esapp9201/* esapp9204/ */
[esadmin@oracle1 esapp]$ ll
total 0
drwxrwxr-x 9 esadmin esadmin 180 Jun 27 10:55 esapp9201
drwxrwxr-x 9 esadmin esadmin 180 Jun 27 10:55 esapp9202
drwxrwxr-x 9 esadmin esadmin 180 Jun 27 10:55 esapp9203
drwxrwxr-x 9 esadmin esadmin 180 Jun 27 14:59 esapp9204
2.修改ES启动配置文件
--协调节点配置文件
cd /esdb/esapp/esapp9204/config
vi elasticsearch.yml
3.jvm配置
vi jvm.options
[esadmin@oracle1 esapp9204]$ pwd
/esdb/esapp/esapp9204
[esadmin@oracle1 esapp9204]$ cat elasticsearch-env
4.启动ES4;
/esdb/esapp/esapp9204/bin/elasticsearch
[2024-06-27T15:06:57,727][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [esdb-node-4] Active license is now [BASIC]; Security is disabled
[2024-06-27T15:06:57,843][INFO ][o.e.h.AbstractHttpServerTransport] [esdb-node-4] publish_address {192.168.1.7:9204}, bound_addresses {192.168.1.7:9204}
[2024-06-27T15:06:57,844][INFO ][o.e.n.Node ] [esdb-node-4] started
--检查节点信息
[esadmin@oracle1 ~]$ curl '192.168.1.7:9201/_cat/nodes?v'
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
192.168.1.7 53 98 8 0.47 0.55 0.30 dilmt * esdb-node-1
192.168.1.7 57 98 8 0.47 0.55 0.30 dilmt - esdb-node-2
192.168.1.7 44 98 8 0.47 0.55 0.30 il - esdb-node-4
192.168.1.7 66 98 8 0.47 0.55 0.30 dilmt - esdb-node-3
esdb-node-4 是协调节点:il:是协调节点。
5.检查集群状态
[esadmin@oracle1 ~]$ curl http://192.168.1.7:9203/_cat/health?pretty -H 'Content-Type: application/json'
1719472181 07:09:41 escluster1 green 4 3 41 19 0 0 0 0 - 100.0%