|
|
elasticsearch8版本安装详细步骤,单节点,多节点,冷热温集群部署、IK分词器安装、简单生产安全模式配置- v8 m" G U5 s7 I: X
* ]7 e4 }$ v4 A5 j7 s: W" J1、设置虚拟内存6 [. U- L2 Z) i( b* B$ ^
sysctl -w vm.max_map_count=2621448 ]: l. E! n Y8 G
echo "vm.max_map_count=262144" >> /etc/sysctl.conf,, L) H0 k- }4 V! q6 l
echo "vm.max_map_count = 262144" >> /etc/sysctl.conf. e- j$ u9 e1 W& ]0 ^, P8 `% t
/ ]2 r4 A* }9 Z& N& T7 ^/ p3 ?
0 r9 o2 r L7 l1 G$ }
加入:vm.max_map_count=2621449 b% x7 u( k& @5 P3 @
使配置生效:sysctl -p
: |3 `" s# r9 B9 d; e' U$ l6 N9 }, G, \7 j
2、设置文件打开数:
9 D, j A9 E3 R' K5 Ecat >>/etc/security/limits.conf<<EOF* w; B1 n# @/ ?2 I5 Y+ p1 J: A- i
* soft nofile 65535
) j% K- K; o1 z; ~ * hard nofile 65535
+ F) L- f! U/ U% X7 G * soft nproc 65535
; d( ^# W& X# I8 E( C * hard nproc 65535. J6 ?: Q2 j- _; q
EOF. K/ E+ s5 F: X; K" J3 d/ W' b9 f
4 D& D+ X p } ]$ K) ?
& \3 }2 z/ _" P, ]' }* p' H- N设置pam配置:% H* Y% @' i0 C& E# ^
echo "session required pam_limits.so" >> /etc/pam.d/login$ z W6 k8 v; R/ ?3 x
' \& q" g" T' A8 n! a6 f
9 O% M7 y! y9 t9 ]3、禁用swap交换分区' c& F. d7 _/ x& Z$ S5 }' z
swapoff -a #临时禁用
, K: ^# B, p3 y! \; Q2 d l, Wvi /etc/fstab #永久禁用- m- R: W; s; n; _( ^9 T
找到swap这一行前面使用#符号禁用掉
p1 | W/ v1 ?0 \/ w# u) w9 r# t( @- ?4 j. @3 q$ L
4、设置TCP重传超时
$ D/ ~8 U) S1 C3 jsysctl -w net.ipv4.tcp_retries2=5% R: H S3 P; K5 t/ a+ @# E4 X
编辑配置文件:echo "net.ipv4.tcp_retries2 = 5" >> /etc/sysctl.conf
) l- g. }9 U, G, F: H2 {. c7 _# v1 \% Y6 o! @0 u2 o% N
5、创建一个用户
0 I$ u2 @6 V" c6 `useradd es
& u' P Q- u* F
& `. W2 r8 p ^1 z; D+ {0 E0 H6、创建安装目录0 k! r0 V9 o- d _: q
mkdir /data/elasticsearch/2 Z0 ~0 k5 L( [5 g; J! w$ x3 J
mkdir /data/elasticsearch/elastic-cluster1
& X3 Y/ L* u4 y# b4 N7 f
# j% m3 }+ {! ~% @% l4 b6 cmkdir /data/elasticsearch/elastic-cluster25 D* }( S. S7 Q9 {6 @7 Y+ f; t: |9 m2 n
% j8 E5 u$ V/ } D
- y$ M0 }2 N/ Q! U) h( p. i# x, G) w# x
[root@it-elassearch ~]# ls -p /data/elasticsearch4 V( U @& N) ?5 j5 g# [
elastic-cluster1/ elastic-cluster2/- m0 Z1 N y3 a/ k$ O+ r0 S" A
* r& O6 ?5 n- A
5 J' B7 C0 y( b+ j, V7 n
f% |) y% G2 k# ~! n7、下载官网安装包
5 j( M+ Q0 a: l官网下载地址,选择对应版本的elasticsearch和kibana:https://www.elastic.co/cn/downloads/past-releases#elasticsearch8 R4 S3 D: z- |( U1 z$ t) U
https://www.elastic.co/cn/downloads/past-releases#elasticsearch
: u c& r/ n' _* f+ _
& B6 l( }% B7 i/ t/ T. @9 v) Y7 s4 O8 ~0 u3 ?9 v
7.1 解压:我的安装包下载到了/root/目录下,解压到/elasticsearch/elastic-cluster1/目录下
$ O3 G8 `* m4 e6 W
b2 R7 n+ {% r0 D. \! Q/ q+ | O2 Z; N. C. g. q" s1 k
[root@it-elassearch-2 ~]# ls" A0 h6 G/ Z, k9 H
elasticsearch-8.15.0-linux-x86_64.tar.gz qemu-guest-agent-1.5.3-ksyun.x86_64.rpm sudo-1.9.5-3.el7.x86_64.rpm
5 y% n- r7 o8 R: y, m# {- TYou have new mail in /var/spool/mail/root* V0 y: o9 [( e8 u
4 G; b$ I; t# ^5 y" A3 K
' N, E, T b& a* p
[root@it-elassearch ~]# tar -zxvf elasticsearch-8.15.0-linux-x86_64.tar.gz -C /data/elasticsearch/elastic-cluster1/: g0 o( s, `+ G* E4 j- `
/ w0 l, P' Z8 s- n3 L* ]$ }
# V/ W; N) `/ g1 w2 [
[root@it-elassearch-1 ~]# tar -zxvf elasticsearch-8.15.0-linux-x86_64.tar.gz
) q4 J1 N9 m- x......
8 e2 ^* H1 r5 h! A# a: I
- T5 W" M+ K! }elasticsearch-8.15.0/modules/analysis-common/analysis-common-8.15.0.jar
: Q" \9 r$ T" Melasticsearch-8.15.0/modules/aggregations/
- g' M) v5 ^$ f7 }% _5 @elasticsearch-8.15.0/modules/aggregations/plugin-descriptor.properties
* k( L$ q+ z5 a& Nelasticsearch-8.15.0/modules/aggregations/aggregations-8.15.0.jar) Q* S6 \0 u+ P$ F
elasticsearch-8.15.0/config/jvm.options.d/
6 Z, C+ g7 W2 F8 s+ l3 Z( \elasticsearch-8.15.0/plugins/) l( f- X3 ^$ d: k' `" I( G( D
elasticsearch-8.15.0/logs/
) e& D( Q4 o6 E: v% h8 w" Y3 A( B/ M/ ~
" B: [; I# Y8 T* ~, V. ]进入对应目录下:cd /elasticsearch/elastic-cluster16 {& x! K9 j0 C* s. K& P- q* v7 t
6 t( p( \" e, Q& d% h配置es参数文件:
/ S* j; c) X! b- ]: |" E" l2 \3 X+ f% R
节点一配置:
: J+ [5 c4 o- E7 P#vim elasticsearch-8.15.0/config/elasticsearch.yml3 s4 B0 V( Y* L; @
, E4 R# [0 \- D8 F1 }2 f. j- hcluster.name: essearch0 e% W. c$ N- N6 ~# J
node.name: it-elassearch
+ e+ V& i7 i1 Y* P) z! ~path.data: /data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/data# s1 e" S, F. ?6 L
path.logs: /data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/logs
& U: u2 @2 S0 T# x N. S5 P" xnetwork.host: 0.0.0.0. c4 E0 c( U) m" P G5 ]; `- \* @
http.port: 9200
4 h* n- w6 b/ Fdiscovery.seed_hosts: ["172.24.110.125", "172.24.110.126"]
1 a) h$ \4 x+ X# q# R2 jcluster.initial_master_nodes: ["it-elassearch", "it-elassearch-2"]6 _6 `9 o J7 Q& S, D
#node.master: true' H2 l8 U* N& G( ?) M
#node.data: true2 A* \4 J/ }) ?! \7 |
$ p3 s( ^0 _; J0 T" w! i$ q
xpack.security.transport.ssl.enabled: false
. K+ L8 U# Z6 k" M: ]3 Hxpack.security.enabled: false
! K- u' b k8 w' u1 h. b% ]$ b# Z1 w' f5 u; l
节点二配置
3 U( g! ?) P' X3 Y4 Q4 k#vim elasticsearch-8.15.0/config/elasticsearch.yml
0 j0 ^1 W/ L! {: v3 j+ f
; j# \2 j9 d6 ocluster.name: essearch* _. n" p4 ~" N5 e8 t( S. s
node.name: it-elassearch-2) E8 T4 H% \* G- h& [
path.data: /data/elasticsearch/elastic-cluster2/elasticsearch-8.15.0/data
- [" A' [9 \) [path.logs: /data/elasticsearch/elastic-cluster2/elasticsearch-8.15.0/logs
5 l" u. x$ ~0 M7 R Rnetwork.host: 0.0.0.01 W* c; E6 _. f9 I) r- ?% ]7 `
http.port: 9200
0 H. P: p- k+ Jdiscovery.seed_hosts: ["172.24.110.125", "172.24.110.126"]
- y0 e f# m2 C5 ncluster.initial_master_nodes: ["it-elassearch", "it-elassearch-2"]
% I. {1 g. u( R, Y; X/ K#node.master: true
8 Y6 u9 E: j+ T#node.data: true+ w; Q! j* S4 {- S/ z4 _
, i$ l, v9 j6 K/ ?/ H, [
xpack.security.transport.ssl.enabled: false1 q) c A/ F ^/ ~6 u) n
xpack.security.enabled: false( ^" [' w9 I/ X; C0 Y
( G" F4 F) T* z6 J+ [; F0 [' xJVM堆内存大小设置8 N+ `+ l5 {" C9 i- L! |* K7 f5 H
设置内存大小:( i$ T7 H8 F3 v
9 q/ ?0 W- r0 Z2 E/ c' N+ w$ J$ T) h4 l
2 `# o3 Y5 I* F9 y. o# X$ \2 ?- G
vim elasticsearch-8.15.0/config/jvm.options
; q- _7 Y8 y& t" Y6 @) z1 s
% _' m4 u- D- J8 O7 `! q9 r. m% G* z" m. J7 e
-Xms4g
7 ~. k6 \1 h+ C4 }-Xmx4g
2 e- r! F& D; f2 q2 J- s) U) s" j1 J. J) U' }
( s- X4 @; i; h实际业务线上环境,建议所有Elasticsearch节点都是独立节点,不要部署其他程序、其他后台进程,以提高性能。如果内存足够大,比如:128GB、256GB,单节点是浪费,建议通过虚拟化方式切分开。
' V8 ~4 B* N2 X; x4 `
& n+ U0 }& j) W, M; }# k$ k1 ]/ u, W9 Y6 ~
& k3 v( Q a7 h解释:
0 H: g5 N4 { U4 Q0 o6 Q+ L+ _4 K; ]9 p+ B) I. r
目录结构' a8 U9 S a( V7 c1 k9 X2 H: @& |6 \
Type Description Default Location Setting
; N; m3 T' v# L5 O7 b# f: Rhome Elasticsearch 主目录或 $ES_HOME Directory created by unpacking the archive
) |" C. F7 q i' _bin 二进制脚本,包括用于启动节点的 elasticsearch 和用于安装插件的 elasticsearch-plugin $ES_HOME/bin
# @( I; v" s( z+ D% D- }& U2 t; ?conf 配置文件,包括但不限于elasticsearch.yml $ES_HOME/config ES_PATH_CONF
* U0 `1 w5 v; e% K- P; Q* S8 bconf 为传输层和 HTTP 层生成 TLS 密钥和证书 $ES_HOME/config/certs
0 d' A' S5 _* Cdata 节点上分配的每个索引/分片的数据文件的位置 $ES_HOME/data path.data
4 b0 E/ q& ` Jlogs 日志文件位置 $ES_HOME/logs path.logs6 Y! f! r8 K/ _7 P
plugins 插件文件位置。每个插件将包含在一个子目录中 $ES_HOME/plugins , I' l/ o& s1 E$ ?0 k7 ?' F
repo 共享文件系统存储库位置。可以容纳多个位置。文件系统存储库可以放置在此处指定的任何目录的任何子目录中 Not configured path.repo
9 q5 N2 i" b& @/ [: t$ M) r# M
/ ^" ]# q* w( A7 m' [8 K. V解释:. A" Y: D; G3 A- m9 V0 X
3 J8 G4 C0 j$ m$ V/ i+ p% L
集群名称设置:cluster.name:, k7 D. C: @* r# k7 X
节点名称:node.name:+ I8 S3 B& V. L# @
网络主机设置:network.host:: _' a$ J$ w& L4 g! K& F
发现形成集群:discovery.seed_hosts:# r5 @# [- H/ ]3 n0 o
选举主节点master资格的节点:cluster.initial_master_nodes:8 n. s5 r% c# L8 O9 h5 H
设置集群间通信端口:transport.port:
3 f/ o" f5 Q7 o3 t5 }设置数据存放位置:path.data:
: u8 @9 ]. S2 p# @( ]2 {设置日志存放位置:path.logs:
2 v4 i& u' P7 Z4 S# k5 m3 w
( g Y) t2 I8 c1 g! i5 a' k8 M其他y
+ S( e# B: N. M4 N( e4 T3 J; }; u) _
cluster.name: CollectorDBCluster
, c9 M) Q( e4 q( `/ @2 \path.data:/data/elasticsearch/data
+ `9 v( Q! W/ j1 Y/ D* |path.logs: /data/cusc-logs! `: I2 L9 g7 p6 d: ?$ R
network.host: 10.153.61.71
& {, W0 ~) L2 s0 K& g4 Ghttp.pち中o砗rt: 9200' |" G# V( y3 V- o9 z
node.name:node-1* l% t. Z( P; |) z- w* H
cluster.initial master nodes: ["node-1”1$ X+ C# f" j' t) G
各配置项含义:
R/ O4 U* s- ~; y! u" scluster.name 集群名称,各节点配成相同的集群名称。; h7 h' ?) B. z
node.name 节点名称,各节点配置不同。" v. w& G' V6 i4 w: l1 @' n
node.master 指示某个节点是否符合成为主节点的条件。
4 p8 C, t2 j0 K+ A' j+ H( n$ }* Y) unode.data 指示节点是否为数据节点。数据节点包含并管理索引的一部分,
+ X$ \2 \' S0 y; x4 n' spath.data 数据存储目录。
! h( v1 k) [ p/ y. b+ Fpath.logs 日志存储目录。" L, b) \% y! o6 X* y) Z
bootstrap.memory lock 内存锁定,是否禁用交换. y- `; n; ]& k- y: {) B
bootstrap.system call filter 系统调用过滤器。
; X( R; e% m# V' O* gnetwork.host 绑定节点IP。- T7 @/ s1 i0 ]! L0 h$ x
http.port 端囗。: Q d- o" K" T
1 n; d+ j! R8 U9 K1 k
- d1 F: F+ s* _& e
+ Z6 c/ F' X+ u( A g[root@it-elassearch-2 ~]# tar -zxvf elasticsearch-8.15.0-linux-x86_64.tar.gz -C /data/elasticsearch/elastic-cluster2/
7 `0 Q" F0 L9 c( v/ d
3 ]6 M6 v/ c- ~ c- M. J5 G: q2 y3 e$ \3 g$ P
' S6 g( E2 v& ]
启动集群:' I# A3 i/ m) [( h* y
7 S. v x! N- e1 I" S+ e, v前提:设置好系统配置和JVM堆内存
/ u7 D; j8 f. b+ z9 K% Y) ]4 ~
创建elastic的数据和日志存放目录,如果是测试环境无所谓,如果是生成环境一定要单独设置数据和日志存放的路径,因为ES可能因为升级或其它原因把原有的数据清理或丢失等因素
- `- _& n- t C5 w5 K
1 k" g( L1 z, U A( ~9 A |3 H
: y3 n" B9 `- N b6 _5 q/ \
4 s! f% K0 u3 k$ p' x/ Z! ` mkdir /data/elasticsearch/elastic-cluster2/elasticsearch-8.15.0/data
) U8 ~% k; @) C! A' W6 z8 B* `& Lmkdir /data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/data( [% x+ G$ m; P. I2 p2 I2 b
! E6 ]* V* X, M s9 Z( A3 z7 L
; v, a1 C$ y/ a" T' ?% p配置文件属组权限,并启动) o( \6 Y; y L- V& X2 S5 d/ b8 C
[root@it-elassearch elasticsearch]# chown -R es:es elastic-cluster1/
7 X; Y1 ~+ J& a3 }& o7 P[root@it-elassearch-2 elasticsearch]# chown -R es:es elastic-cluster2/7 C. Z$ b3 V' L! j
0 j3 W9 d7 k0 [# X1 M5 f$ i
% g+ M% @/ ]4 r) v' Z
, e+ [8 q0 Y+ C; X }如果添加鉴权配置请按照此处配置,不配置即可略过:( ~5 j! w- `3 t" R
- f$ H! x5 m% y
+ G' H- N+ s% B8 Q8 t% Y生成密匙:1 a+ L% o F$ H9 j$ l
[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-certutil ca
4 k6 `# B( t* w; t7 }" K1 [1 X BThis tool assists you in the generation of X.509 certificates and certificate! d" [! N) c5 Y& \0 o9 e/ K
signing requests for use with SSL/TLS in the Elastic stack.
% _ z1 c7 `2 S9 h
1 v% i$ p$ z: `+ k8 A
8 R- z2 `3 s6 j4 L3 e. F, MThe 'ca' mode generates a new 'certificate authority'
, B; ?: b( \( c) uThis will create a new X.509 certificate and private key that can be used
( P# g$ b+ ~* f# k. L' zto sign certificate when running in 'cert' mode.
/ ^; E5 ~* I3 B8 G' _7 t, Q3 ?$ X& K
* o- \$ @# ]2 t& G) P! m% x9 W, D# e, o9 w
Use the 'ca-dn' option if you wish to configure the 'distinguished name'
; I1 R% G3 @; F( V4 Hof the certificate authority
$ X$ _1 u* d& f, M: c2 T# S( l
3 s" z. n. b: z; |, Q
/ y* Q+ n, g- O6 qBy default the 'ca' mode produces a single PKCS#12 output file which holds:+ Z+ y* q& P' [2 v) a
* The CA certificate2 f3 `5 i9 T2 r4 c5 P V
* The CA's private key
* ~ u2 `. w6 H3 j7 t/ \) H
5 p! ^0 o% q# [& Q' F, y$ l, H) D
If you elect to generate PEM format certificates (the -pem option), then the output will
# M9 B) l5 t9 t; Vbe a zip file containing individual files for the CA certificate and private key2 _, m9 @& W5 E! i8 _
1 V# @& _. M0 x5 l X
+ g$ }& o( a, q, G* f" X1 r
Please enter the desired output file [elastic-stack-ca.p12]: ' u" u! c. F: g8 X) ^1 L+ V2 p
Enter password for elastic-stack-ca.p12 : ! s) u1 ^, h3 u$ K: b' l
8 t: x. ^2 u, d7 Q% p$ |
% C7 _: `' O* L* A' C" f! F4 z1 Y7 q- g ?
% l' d h9 w" ^
! Q$ ^0 a* S# L a% t- N/ ^
[es@it-elassearch-2 elasticsearch-8.15.0]$ ./bin/elasticsearch-certutil ca5 F' I) m) f* _; M, Q N+ B
This tool assists you in the generation of X.509 certificates and certificate
! l; ]( U: q. T1 p) Y* s* n* p/ ?signing requests for use with SSL/TLS in the Elastic stack.1 C) ?3 O3 R- X9 {$ j
4 H3 M+ Q& \% U+ l. o5 b R$ i. @$ C7 ~
& }6 Z+ F) v: e2 i& ?+ NThe 'ca' mode generates a new 'certificate authority'4 Z/ N0 \" {0 Q, o3 l
This will create a new X.509 certificate and private key that can be used
- H4 R& m5 ^3 a5 A6 Cto sign certificate when running in 'cert' mode.
; m$ S5 B/ x3 W, |/ {6 D6 e6 e' n* H" }0 A0 W5 E- C0 J
K' h0 E# f; s8 n1 m6 UUse the 'ca-dn' option if you wish to configure the 'distinguished name'
* ]1 y! k& }4 l. |8 g' Lof the certificate authority
0 o! |: V' C4 O' Y
. O7 p3 [$ Q; |* i6 }
9 D1 Y u% E- w* B7 oBy default the 'ca' mode produces a single PKCS#12 output file which holds:7 c; Z9 `, F9 Y# X+ Y
* The CA certificate
. U5 a/ ~9 R3 F7 Q- t * The CA's private key9 [1 Z+ u3 C1 [$ L2 m! q
$ @2 ?7 X2 i% K9 G3 x1 X" y6 v( N8 N) t9 Q6 E
If you elect to generate PEM format certificates (the -pem option), then the output will
# V2 n6 a) i. \; _8 Ibe a zip file containing individual files for the CA certificate and private key
% |4 v4 D. F0 L* \% o& l ?3 { e1 _3 C, b6 E+ P4 O
% O0 p3 V% _" w) L% `, WPlease enter the desired output file [elastic-stack-ca.p12]: ?2 ?$ j5 Z7 {, |+ S; P' K# x
Enter password for elastic-stack-ca.p12 :
$ }6 M( s+ ?- O" o
9 J u4 h' b! m: V7 C3 P
5 o* o' c4 I: h. U0 c! u* X; N
9 I. f; B2 c% s/ u @5 f( f
6 M9 r3 \6 C. d: a2 N1 w
6 y. p4 Y. B/ V* ^' }3 M" i' D3 B2 Y' u; |* n0 l" ?
5 X/ B+ A, b. T! k: U- q
' n$ X! b+ {4 [/ k5 w5 [5 s! t+ ^/ q! [5 o
8 F" @5 T5 R2 C$ l z, Z4 H mkdir -p ./config/certificates/. S$ x% N4 U& K8 R7 g9 n
9 @& u) |2 R& u( {9 A) ~
; Y! w8 R5 ?, N2 ]+ E+ C
3 k7 L5 Z* m8 |# h7 V* m- c' z9 t6 I) o. H5 h
http.cors.enabled: true% s% C0 b6 j) c, E. t
http.cors.allow-origin: "*"0 v5 Q) ~2 J$ j: v7 n9 u0 e; O
http.cors.allow-headers: Authorization,X-Requested-With,Content-Type,Content-Length
# D4 g' x: K( E0 _5 s+ m; Y0 {: S
~ }% X# p4 `3 d5 e% |$ V# U: p, E7 G/ B
xpack.security.enabled: true
- Y2 l7 b! s! Zxpack.security.authc.accept_default_password: true
+ |' E9 u4 ]! P9 v7 T# l. ~7 T: Q# dxpack.security.transport.ssl.enabled: true, ], N% ?0 Q. X7 Q9 \! \
xpack.security.transport.ssl.verification_mode: certificate3 _2 t# p9 B; ~5 h
xpack.security.transport.ssl.keystore.path: /config/certificates/elastic-certificates.p12
7 x& q5 n9 A* i7 Z0 ~/ B. ]xpack.security.transport.ssl.truststore.path: /config/certificates/elastic-certificates.p12
, Y3 b% b7 t& h5 m' I. [8 c+ x
8 ^" }9 I' U2 Y5 @" s4 B" s# p \7 ^
+ D8 F2 k3 `' B" o) d. r& }; B/ J
, a+ B. L' c0 G" P0 r
" a, F) I! M7 h; _4 M: x( p- P* G2 U9 z" o
% R8 _, [, z- Y, P* ?6 v/ H
加权一样需要切换到es账号:# v" V) W% N) X
6 q! A) l; s1 h' |. n在各个节点上添加密码:
" f5 { @$ m; G; B3 g1 g- [& x' t* B, E$ Z# @2 D# v' Q
[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password ' Y% X1 e" I8 V; v
[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password 4 g5 b; w5 a: {4 V v
Enter value for xpack.security.transport.ssl.keystore.secure_password: ! Q, d/ r3 V" Y A
) ?: X* M. l5 ~9 ?& F/ B" [' d, z; e6 D& G$ [
[es@it-elassearch-2 elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password
0 X( Z0 f2 p# x+ b+ L, PEnter value for xpack.security.transport.ssl.keystore.secure_password:
: y' U8 }7 h' t2 N/ i3 f2 k输入密码:第一次输入密码" ?6 X9 Q+ L' f$ E, w0 X( ?/ L% e$ I
! Q8 ?% I$ x: c/ f, J
[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password
7 E9 C* e. ]' p( ZEnter value for xpack.security.transport.ssl.truststore.secure_password:
$ j, M) Z6 N9 r3 \- C! G- [; w2 c3 O; Q, F
[es@it-elassearch-2 elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password8 v7 y/ U$ H. F6 q; O0 l
Enter value for xpack.security.transport.ssl.truststore.secure_password:
$ |/ C4 P: J" L
% R& |9 ?( m' n7 v. z2 v
* `: }, o( `: x6 K. u6 u; G输入密码: 第二次输入上面的密码:+ E! F+ }* }2 |/ M, g) t
) t6 q& O5 i5 S* T7 \1 O
! U. m9 G- M0 A- t创建文件夹: mkdir -p certificates/$ { Y% o( ^9 d- T& u
7 `( b. q) p; e' F, E
0 o8 y8 Z$ G9 Q/ j z6 X( F; y9 e o7 F, b9 n. s h- p0 `
接下来和没有做鉴权的一样,逐个启动集群:+ V% J5 J) }# f3 z& a* ?0 Y: }
/ t9 H9 Q* a( k& Z5 t2 K. K% t9 k1 [/ e5 K6 [. y
, W) ]$ ]. `! {切换到其它用户,root用户不能启动ES:su es
& K0 q* u+ a# I! o$ y: H" D9 E! J! V0 p3 V
4 d: M! T; K2 m$ C/ v5 \4 y6 T8 n/ q* w q7 p/ l+ O# g
bin/elasticsearch -d
$ \8 I2 ?$ k& v0 N8 B6 V4 |' F[es@it-elassearch elasticsearch-8.15.0]$ bin/elasticsearch -d
* p* q( O6 }# p7 N ]9 ^0 B
9 s4 u+ X# G: o, m4 ?) c2 L7 W" [; [; k( `6 ^& H7 a: f: ^( Y
[es@it-elassearch elasticsearch-8.15.0]$ bin/elasticsearch -d7 H$ q9 e5 N2 O2 A# t5 C
Oct 24, 2024 5:33:34 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>* q% L# z; I6 h( o2 }& r
WARNING: COMPAT locale provider will be removed in a future release
C- a8 L- q8 J% z6 W[2024-10-24T17:33:40,246][INFO ][o.e.n.NativeAccess ] [it-elassearch] Using native vector library; to disable start with -Dorg.elasticsearch.nativeaccess.enableVectorLibrary=false
8 i; j6 w5 @6 U[2024-10-24T17:33:40,727][INFO ][o.e.n.NativeAccess ] [it-elassearch] Using [jdk] native provider and native methods for [Linux]; }# {7 ~' G- g
[2024-10-24T17:33:41,119][INFO ][o.a.l.i.v.PanamaVectorizationProvider] [it-elassearch] Java vector incubator API enabled; uses preferredBitSize=128; floating-point vectors only
7 z6 K' Y {7 l[2024-10-24T17:33:42,185][INFO ][o.e.n.Node ] [it-elassearch] version[8.15.0], pid[8520], build[tar/1a77947f34deddb41af25e6f0ddb8e830159c179/2024-08-05T10:05:34.233336849Z], OS[Linux/3.10.0-1160.24.1.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/22.0.1/22.0.1+8-16]+ X: `* \7 b1 V a* r6 h
[2024-10-24T17:33:42,186][INFO ][o.e.n.Node ] [it-elassearch] JVM home [/data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/jdk], using bundled JDK [true]
8 g9 w4 s# C# e) g2 d% Y( i[2024-10-24T17:33:42,186][INFO ][o.e.n.Node ] [it-elassearch] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=org.elasticsearch.preallocate, --enable-native-access=org.elasticsearch.nativeaccess,org.apache.lucene.core, -XX:ReplayDataFile=logs/replay_pid%p.log, -Djava.library.path=/data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/lib/platform/linux-x64:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, -Djna.library.path=/data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/lib/platform/linux-x64:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, -Des.distribution.type=tar, -XX:+UnlockDiagnosticVMOptions, -XX:G1NumCollectionsKeepPinned=10000000, -Xms4g, -Xmx4g, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-18180478638333286490, --add-modules=jdk.incubator.vector, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,level,pid,tags:filecount=32,filesize=64m, -XX:MaxDirectMemorySize=2147483648, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, --module-path=/data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server], o1 Q7 j0 V2 f+ w+ r9 D
[2024-10-24T17:33:42,187][INFO ][o.e.n.Node ] [it-elassearch] Default Locale [en_US]0 C7 J+ r$ ]5 A* [
[2024-10-24T17:33:46,616][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-url]2 p2 y9 J" E5 e0 ?/ Y
[2024-10-24T17:33:46,616][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [rest-root]% Q; k4 w/ ~/ g) f
[2024-10-24T17:33:46,616][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-core]
3 v& M- I. E$ t$ H0 q8 a- Y& P1 U[2024-10-24T17:33:46,617][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-redact], U# J# A: a9 Z% T6 ]1 S
[2024-10-24T17:33:46,617][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-user-agent]3 \' W# m( x* G, H; d4 e0 L0 a
[2024-10-24T17:33:46,617][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-async-search]5 M# g6 z7 @2 y7 k/ e8 @( [
[2024-10-24T17:33:46,618][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-monitoring]
; N' A! J* B- s; m# ^0 {1 S5 y[2024-10-24T17:33:46,618][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-s3]
; I$ ~$ P* ^# R1 Z[2024-10-24T17:33:46,618][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-esql-core]$ d4 X. X( J9 {
[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-analytics]* Y! ]! d, F0 |/ z
[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ent-search]% r4 ~3 Y. u2 H9 a9 B8 ^
[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-autoscaling]$ y4 Q2 P) \1 W/ y% x
[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [lang-painless] p( J! ^$ N3 X- e% T
[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ml]- }( v* B3 q- e$ ?
[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [legacy-geo]
+ e: W$ U7 {8 g7 P! J[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [lang-mustache]
( h" l/ g# w' K; ]* j0 j2 i, ~[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ql]$ ~8 G' M" ~6 e9 }( o4 s. S
[2024-10-24T17:33:46,621][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [rank-rrf] g% Q! _% n/ H/ c4 y
[2024-10-24T17:33:46,621][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [analysis-common]
) n, @& I2 h# b' `' k[2024-10-24T17:33:46,621][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [health-shards-availability]7 j; ~! \. X6 Q$ F* |
[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [transport-netty4]# n" e- [* e9 |! T/ v' N
[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [aggregations]
( M/ r/ j: I) _) h$ X7 U. W[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-common]- E$ u @, C4 g* r7 {5 S
[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-identity-provider]
% w" l" P+ f% _" A) [$ _[2024-10-24T17:33:46,623][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [frozen-indices]( C% ?5 Q, I, M+ w0 ?
[2024-10-24T17:33:46,623][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-text-structure]
. N W' S% r0 S4 W2 \' Q4 p ]% F[2024-10-24T17:33:46,623][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-shutdown]
& D1 b" v8 E& I( q" X+ k" }& U- {[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [snapshot-repo-test-kit]
) ?9 b2 C& k9 h; Q3 U% H5 o! _7 ?[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ml-package-loader]
/ |4 m- }2 g' U9 {: r[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [kibana]
/ K& O j3 b' b9 X2 t[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [constant-keyword]
7 L2 @ g( u' L3 g$ l2 T[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-logstash]0 [) m* C! g+ |1 c7 I& ~0 J$ ~
[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-graph]5 ~" R1 s) k% o; ^
[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ccr]
3 a7 \: {& [6 `$ J: M- X[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-esql]& v3 v7 Y5 @+ ]) N
[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [parent-join]
& |* k% K! b5 p* y[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [counted-keyword]4 I! _" R: p" K Q3 _: X# J
[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-enrich]
, a T8 }2 z, q; H: [[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repositories-metering-api]+ ?" n% X/ d( v, h6 X& ]$ B. P
[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [transform]% |; L9 J$ S, }2 H) h8 \: `
[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-azure]
7 g' `1 |$ X) e8 J[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-gcs]
* s& J4 r1 m9 r2 Y! [, K ^! p[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [spatial]/ w$ p: Y4 _/ n* R6 H3 e( D) O
[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [mapper-version]. Y( r5 M7 }8 o& p- O: R8 C
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [mapper-extras]1 I& ^. y* M7 A2 p/ n9 `7 K
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [apm]( u; G4 B2 a% k' Z( @& t# x
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-rollup]6 U% j9 C% {4 _( I' q
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [percolator]
o2 w: U4 }7 P; E1 m" z[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-stack]( U# {; Y# S( l5 n
[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [data-streams]9 Q/ X1 S+ ^# A' w5 @" v" F
[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [reindex]
5 D) k% x! k, J* p[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [rank-eval]
6 T+ n' F- o6 K" N4 v# V I) s[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-security]- R5 J+ L7 L6 E( Y# ]
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [blob-cache]9 i4 Z' Z6 e; f, H& Q" ?
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [searchable-snapshots]7 I N0 t! S6 T! k
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-slm]0 x8 a6 {! U/ u
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-geoip-enterprise-downloader]
% J# P: ?! h+ s* c' ~9 f: f3 W3 Z[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [snapshot-based-recoveries]
1 _' L- b0 \9 v0 N( G4 U3 I( u2 i[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-watcher]
7 v q# B( C8 z: j[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [old-lucene-versions], [. d# s, T. W
[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ilm]7 N& R8 \. p: q$ }' c
[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-voting-only-node]
1 \7 n) B8 h. u[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-inference]- y) ^% {6 P2 |# `' B. i
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-deprecation]. V# u1 M. ?3 i- r
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-fleet]! g9 c" {6 m/ G7 i3 V o8 O
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-profiling]# D. E' j3 `8 o6 ?4 ^
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-aggregate-metric]
0 {, h& @$ T5 N$ B0 A* G! W. H[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-downsample]5 U: ^/ q1 x: a( O P; J3 C% C
[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-geoip]" i7 f: }8 }4 M1 V5 _
[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-write-load-forecaster] t1 |* d5 P" }3 ^* ^* }8 r
[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [search-business-rules]
/ v4 A- t" [: u0 D9 M- T7 z$ F3 b+ [[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [wildcard]
- E+ q0 v: U# f+ v9 q' i2 b2 R[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-attachment]; @8 |0 R8 x5 C! H( O1 g, R
[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-apm-data]& A+ ?* G2 u& p" t* {
[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-sql]
: Y2 O& s# \" F; ^7 g h9 d+ k[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [unsigned-long]
) q8 ~( _6 c. C9 w: z[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-async]
. r* V& y& z/ T5 \3 q4 R$ R[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [runtime-fields-common]
o7 C% r! c' P[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [vector-tile]
7 v( f- `- v6 `; q Y* a6 l[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [lang-expression]( b2 F6 P. U. V i
[2024-10-24T17:33:46,636][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-eql]6 V7 B9 I5 y! P7 b* _, z
[2024-10-24T17:33:48,162][INFO ][o.e.e.NodeEnvironment ] [it-elassearch] using [1] data paths, mounts [[/data (/dev/vdb)]], net usable_space [498.6gb], net total_space [499.7gb], types [xfs]
* E/ L' P8 G/ T* ?3 j- W# U1 i[2024-10-24T17:33:48,162][INFO ][o.e.e.NodeEnvironment ] [it-elassearch] heap size [4gb], compressed ordinary object pointers [true]
1 X& x0 X$ d# n) w. D" ^( @: X[2024-10-24T17:33:48,227][INFO ][o.e.n.Node ] [it-elassearch] node name [it-elassearch], node ID [1TZ7_AjMQBm4NUw73Dr9eQ], cluster name [essearch], roles [ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest, data_frozen]
# d$ f5 w$ d; S' Q" X% f[2024-10-24T17:33:53,605][INFO ][o.e.i.r.RecoverySettings ] [it-elassearch] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]6 `1 j @6 K4 {6 e8 H
[2024-10-24T17:33:53,836][INFO ][o.e.f.FeatureService ] [it-elassearch] Registered local node features [data_stream.auto_sharding, data_stream.lifecycle.global_retention, data_stream.rollover.lazy, desired_node.version_deprecated, esql.agg_values, esql.async_query, esql.base64_decode_encode, esql.casting_operator, esql.counter_types, esql.disable_nullable_opts, esql.from_options, esql.metadata_fields, esql.metrics_counter_fields, esql.mv_ordering_sorted_ascending, esql.mv_sort, esql.spatial_points_from_source, esql.spatial_shapes, esql.st_centroid_agg, esql.st_contains_within, esql.st_disjoint, esql.st_intersects, esql.st_x_y, esql.string_literal_auto_casting, esql.string_literal_auto_casting_extended, esql.timespan_abbreviations, features_supported, file_settings, geoip.downloader.database.configuration, health.dsl.info, health.extended_repository_indicator, knn_retriever_supported, license-trial-independent-version, mapper.index_sorting_on_nested, mapper.keyword_dimension_ignore_above, mapper.pass_through_priority, mapper.range.null_values_off_by_one_fix, mapper.source.synthetic_source_fallback, mapper.track_ignored_source, mapper.vectors.bit_vectors, mapper.vectors.int4_quantization, rest.capabilities_action, retrievers_supported, rrf_retriever_supported, script.hamming, search.vectors.k_param_supported, security.migration_framework, security.roles_metadata_flattened, standard_retriever_supported, stats.include_disk_thresholds, text_similarity_reranker_retriever_supported, unified_highlighter_matched_fields, usage.data_tiers.precalculate_stats]
* c! D+ Q$ `- o3 c0 A7 l[2024-10-24T17:33:54,117][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [it-elassearch] [controller/8543] [Main.cc@123] controller (64 bit): Version 8.15.0 (Build 64f00009177815) Copyright (c) 2024 Elasticsearch BV3 d5 Z5 h/ l% {6 N' j! p: v
[2024-10-24T17:33:54,499][INFO ][o.e.t.a.APM ] [it-elassearch] Sending apm metrics is disabled
, S5 w+ L2 N. x/ i[2024-10-24T17:33:54,500][INFO ][o.e.t.a.APM ] [it-elassearch] Sending apm tracing is disabled) C, ]8 C: ~3 n# g7 P
[2024-10-24T17:33:54,544][INFO ][o.e.x.s.Security ] [it-elassearch] Security is disabled
4 H# O2 N# f7 n9 C) ^[2024-10-24T17:33:54,846][INFO ][o.e.x.w.Watcher ] [it-elassearch] Watcher initialized components at 2024-10-24T09:33:54.846Z
- ~- u; v$ N6 r: Q% n[2024-10-24T17:33:54,936][INFO ][o.e.x.p.ProfilingPlugin ] [it-elassearch] Profiling is enabled* W" J, [( h9 w) t
[2024-10-24T17:33:54,957][INFO ][o.e.x.p.ProfilingPlugin ] [it-elassearch] profiling index templates will not be installed or reinstalled
! J$ A0 z; b* q) y0 a[2024-10-24T17:33:54,964][INFO ][o.e.x.a.APMPlugin ] [it-elassearch] APM ingest plugin is enabled# F) ?3 E5 w2 g h
[2024-10-24T17:33:55,002][INFO ][o.e.x.a.APMIndexTemplateRegistry] [it-elassearch] APM index template registry is enabled$ y1 b4 f! [; E" U0 t. y% X) L
[2024-10-24T17:33:55,537][INFO ][o.e.t.n.NettyAllocator ] [it-elassearch] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=4mb}]5 \/ I$ X5 x) j' L4 A) Z
[2024-10-24T17:33:55,633][INFO ][o.e.d.DiscoveryModule ] [it-elassearch] using discovery type [multi-node] and seed hosts providers [settings]
' I( p; l6 m' b0 h[2024-10-24T17:33:57,137][INFO ][o.e.n.Node ] [it-elassearch] initialized! q3 M( k! P: f8 w* x$ F5 S
[2024-10-24T17:33:57,138][INFO ][o.e.n.Node ] [it-elassearch] starting ...% W0 ~. ?% ~9 c2 |' B; U1 f
[2024-10-24T17:33:57,190][INFO ][o.e.x.s.c.f.PersistentCache] [it-elassearch] persistent cache index loaded
7 a4 c! R5 D( T6 I) e[2024-10-24T17:33:57,191][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [it-elassearch] deprecation component started+ f" _0 `. h& p3 X3 M
[2024-10-24T17:33:57,334][INFO ][o.e.t.TransportService ] [it-elassearch] publish_address {172.24.110.125:9300}, bound_addresses {[::]:9300}& N- T( I: k1 |2 f$ b
[2024-10-24T17:33:57,569][INFO ][o.e.b.BootstrapChecks ] [it-elassearch] bound or publishing to a non-loopback address, enforcing bootstrap checks
$ d3 k& b% ]+ F& w% v! R i[2024-10-24T17:33:57,574][INFO ][o.e.c.c.ClusterBootstrapService] [it-elassearch] this node has not joined a bootstrapped cluster yet; [cluster.initial_master_nodes] is set to [it-elassearch, it-elassearch-2]
( u! @: H' V. u[2024-10-24T17:34:07,588][WARN ][o.e.c.c.ClusterFormationFailureHelper] [it-elassearch] master not discovered yet, this node has not previously joined a bootstrapped cluster, and this node must discover master-eligible nodes [it-elassearch, it-elassearch-2] to bootstrap a cluster: have discovered [{it-elassearch}{1TZ7_AjMQBm4NUw73Dr9eQ}{wrEeokvZTM-NfqrlNd_FSQ}{it-elassearch}{172.24.110.125}{172.24.110.125:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}]; discovery will continue using [172.24.110.126:9300] from hosts providers and [{it-elassearch}{1TZ7_AjMQBm4NUw73Dr9eQ}{wrEeokvZTM-NfqrlNd_FSQ}{it-elassearch}{172.24.110.125}{172.24.110.125:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}] from last-known cluster state; node term 0, last-accepted version 0 in term 0; for troubleshooting guidance, see https://www.elastic.co/guide/en/ ... roubleshooting.html
1 z& F$ O; ?. z" T' W[2024-10-24T17:34:17,591][WARN ][o.e.c.c.ClusterFormationFailureHelper] [it-elassearch] master not discovered yet, this node has not previously joined a bootstrapped cluster, and this node must discover master-eligible nodes [it-elassearch, it-elassearch-2] to bootstrap a cluster: have discovered [{it-elassearch}{1TZ7_AjMQBm4NUw73Dr9eQ}{wrEeokvZTM-NfqrlNd_FSQ}{it-elassearch}{172.24.110.125}{172.24.110.125:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}]; discovery will continue using [172.24.110.126:9300] from hosts providers and [{it-elassearch}{1TZ7_AjMQBm4NUw73Dr9eQ}{wrEeokvZTM-NfqrlNd_FSQ}{it-elassearch}{172.24.110.125}{172.24.110.125:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}] from last-known cluster state; node term 0, last-accepted version 0 in term 0; for troubleshooting guidance, see https://www.elastic.co/guide/en/ ... roubleshooting.html' k' j9 z" Y! Y, R# x
[2024-10-24T17:34:27,590][WARN ][o.e.n.Node ] [it-elassearch] timed out while waiting for initial discovery state - timeout: 30s
/ y8 q# G; c) q1 m) m9 j( @[2024-10-24T17:34:27,594][WARN ][o.e.c.c.ClusterFormationFailureHelper] [it-elassearch] master not discovered yet, this node has not previously joined a bootstrapped cluster, and this node must discover master-eligible nodes [it-elassearch, it-elassearch-2] to bootstrap a cluster: have discovered [{it-elassearch}{1TZ7_AjMQBm4NUw73Dr9eQ}{wrEeokvZTM-NfqrlNd_FSQ}{it-elassearch}{172.24.110.125}{172.24.110.125:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}]; discovery will continue using [172.24.110.126:9300] from hosts providers and [{it-elassearch}{1TZ7_AjMQBm4NUw73Dr9eQ}{wrEeokvZTM-NfqrlNd_FSQ}{it-elassearch}{172.24.110.125}{172.24.110.125:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}] from last-known cluster state; node term 0, last-accepted version 0 in term 0; for troubleshooting guidance, see https://www.elastic.co/guide/en/ ... roubleshooting.html' ]' ~3 [# f, c2 m8 \1 W- W) q" \
[2024-10-24T17:34:27,609][INFO ][o.e.h.AbstractHttpServerTransport] [it-elassearch] publish_address {172.24.110.125:9200}, bound_addresses {[::]:9200}
- D) S* [8 H$ L4 R; r6 t* f0 m7 q. T1 _' U[2024-10-24T17:34:27,637][INFO ][o.e.n.Node ] [it-elassearch] started {it-elassearch}{1TZ7_AjMQBm4NUw73Dr9eQ}{wrEeokvZTM-NfqrlNd_FSQ}{it-elassearch}{172.24.110.125}{172.24.110.125:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}{ml.max_jvm_size=4294967296, ml.config_version=12.0.0, xpack.installed=true, transform.config_version=10.0.0, ml.machine_memory=8200949760, ml.allocated_processors=4, ml.allocated_processors_double=4.0}
9 `% q: j; Y$ L6 r. U[es@it-elassearch elasticsearch-8.15.0]$ netstat -ntlp ' ~* a l( k" i' }" Y7 I7 O; R8 J, j4 @0 C
(Not all processes could be identified, non-owned process info
5 h' ]1 \. n# |3 {( y9 v will not be shown, you would have to be root to see it all.)
2 A6 {& u3 U5 C ~ B, jActive Internet connections (only servers): W! c3 c# U# K; v
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
# t* T0 e% {% A" `& n, G; btcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
& i, L* W, `- h6 p( Stcp 0 0 0.0.0.0:60028 0.0.0.0:* LISTEN -
3 }5 @2 a' y9 _; ltcp6 0 0 :::9300 :::* LISTEN 8520/java
) f! A9 r# H `. ztcp6 0 0 ::1:25 :::* LISTEN -
$ V/ X, N, P9 V5 i+ {/ [: M. dtcp6 0 0 :::60028 :::* LISTEN -
2 c; r' h; H/ ]6 v5 c7 L7 L' Itcp6 0 0 :::9200 :::* LISTEN 8520/java
1 \* k% U+ E5 F8 C/ {3 B3 u1 n- h1 X8 q: d: z7 X1 k7 {6 h, ^
: v2 B0 |9 R! m5 e7 I+ T! L8 i' G9 g" P i1 D
6 p% Q5 m0 }0 O- i1 E+ f8 g" m8 n. E+ X
: Z1 X3 e: R' S# U0 g% M: f
, ]4 d/ E# U6 D8 I" k3 X1 n" ?. B8 X+ `7 z. A
|
|