|
|
elasticsearch8版本安装详细步骤,单节点,多节点,冷热温集群部署、IK分词器安装、简单生产安全模式配置
1 X- s* I* y; ]0 w2 U; o$ S0 B3 ?* I- A& Z
1、设置虚拟内存
+ @' L& w: a$ y1 k. S8 Gsysctl -w vm.max_map_count=262144
, I' D: A$ t7 Fecho "vm.max_map_count=262144" >> /etc/sysctl.conf,
) a5 e3 |. v S% j) zecho "vm.max_map_count = 262144" >> /etc/sysctl.conf6 q( p `# n% ~" L6 ~- n5 E! [
0 g" O) b) ]% B# I" Q/ J* q6 {* e! P0 Y% Q' Z% p
加入:vm.max_map_count=262144
4 z7 _" k) c9 a! S- p( o4 }使配置生效:sysctl -p8 G* J" Y, ~, z9 H
# A' O b3 K9 S0 I% ?
2、设置文件打开数:5 \2 A4 z/ W* W+ g
cat >>/etc/security/limits.conf<<EOF; V" Z; G% R3 }% g7 u" J0 @; Q2 K
* soft nofile 655358 C" q+ O! i+ L6 e) i9 D; y
* hard nofile 65535
9 @' u x5 G; q- a! v( R. { * soft nproc 65535# l6 z* d# y. a0 X
* hard nproc 65535
% @8 R6 h: `) e, x4 E EOF
6 \* F8 B, w6 V) L* r1 |$ m( e
6 ~# y9 L& e7 A) W w0 W1 s
! h- Q) l. P. N" x' s) L设置pam配置:
3 N6 g! U6 L# e xecho "session required pam_limits.so" >> /etc/pam.d/login A+ D6 w* p2 u5 z
* ?# g- [+ \+ P8 m; `4 V* x; G: J
* k( e. z% {: x! W* `; N7 V6 _' S3、禁用swap交换分区; C4 n2 d" R; K& B6 b V: e
swapoff -a #临时禁用+ y8 K0 q$ y/ |- L
vi /etc/fstab #永久禁用& u; V- _7 g' v! I! J+ R- v
找到swap这一行前面使用#符号禁用掉* J+ X/ S" h3 l
3 T- ~# ?1 _6 H3 f. P7 s8 _: {% o$ S
4、设置TCP重传超时
* g3 H7 g- }- N" L1 qsysctl -w net.ipv4.tcp_retries2=5, B/ k6 e* o/ ]7 ?% c: U
编辑配置文件:echo "net.ipv4.tcp_retries2 = 5" >> /etc/sysctl.conf
3 o: w2 w. q6 p p1 _! E/ g) m. l2 }% |# N3 z5 }+ r
5、创建一个用户7 r- H# \; |- R9 _: C+ @1 O. |
useradd es# r# f! q2 V1 }
: Q* D2 |9 I: m3 J: W( J! P2 }$ p5 ^9 E
6、创建安装目录
: t+ C( m. O$ t3 M6 |# V+ O- Kmkdir /data/elasticsearch/; [% X; D$ _7 {
mkdir /data/elasticsearch/elastic-cluster1
4 N8 C( @8 H8 X1 ~$ r: G9 z, l% G* Z- D. F
mkdir /data/elasticsearch/elastic-cluster2% V+ c, ^/ l, f! b6 Y3 x8 A4 [
! q+ {% |* ~7 c5 ~4 Q! L6 J; B2 {" [6 m |6 z* f
+ W+ h& `8 F0 B, W6 c
[root@it-elassearch ~]# ls -p /data/elasticsearch2 G. r& L. T- r# s
elastic-cluster1/ elastic-cluster2/: G8 G; ?! J/ n
3 Y0 \' y. M% p& _ ?) Q+ c, H, }0 ?4 \
, Y8 x5 X* D% K) q. ? ]8 E% m3 @
7、下载官网安装包
$ a3 [0 ?7 x3 W9 H. X0 R官网下载地址,选择对应版本的elasticsearch和kibana:https://www.elastic.co/cn/downloads/past-releases#elasticsearch
1 S. A' R# j! K, h2 w4 ahttps://www.elastic.co/cn/downloads/past-releases#elasticsearch+ C- c5 s2 \, X4 F" k
, h7 W$ W1 v: l9 y: [# \
) V3 l, u3 F- W7 k7 k" |% c7.1 解压:我的安装包下载到了/root/目录下,解压到/elasticsearch/elastic-cluster1/目录下+ n8 K% j6 }5 n5 X& D8 a7 G2 r. f
8 A1 y( n9 x+ I; k$ L8 j" J
& a% |( e }! A[root@it-elassearch-2 ~]# ls3 b% M) ~6 N* I4 {6 Z$ x. I6 r$ O
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
& A6 E3 D1 x5 t% P; Q$ dYou have new mail in /var/spool/mail/root
& r4 ^' L" C: ?& G7 L9 [, s
' H: S- W: y+ B! d" D- R% [. S5 h0 H: D- J2 V- X
[root@it-elassearch ~]# tar -zxvf elasticsearch-8.15.0-linux-x86_64.tar.gz -C /data/elasticsearch/elastic-cluster1/, _: _8 g1 g7 {
+ X9 c" X( r8 t, y2 g- A
+ f6 \+ p$ F, ]9 i) J7 w[root@it-elassearch-1 ~]# tar -zxvf elasticsearch-8.15.0-linux-x86_64.tar.gz 7 O1 t9 j6 i0 G5 O& e* V
......
7 l' X" Q# M8 [! @- W( f' a# b# [, _( _/ d$ ~9 B
elasticsearch-8.15.0/modules/analysis-common/analysis-common-8.15.0.jar) G! [/ {; @$ R! F
elasticsearch-8.15.0/modules/aggregations/
- Q, R1 k) Y9 H# Q: |6 a: `- Nelasticsearch-8.15.0/modules/aggregations/plugin-descriptor.properties
0 {) }( y" O: k. @( K( Z( velasticsearch-8.15.0/modules/aggregations/aggregations-8.15.0.jar
: U- A+ C3 L4 L9 X {* l, Nelasticsearch-8.15.0/config/jvm.options.d/& U- J! x9 C: e0 I0 F3 w
elasticsearch-8.15.0/plugins/; u$ o: R0 x+ Q- k! t5 e7 [2 ]
elasticsearch-8.15.0/logs/
: \( V j$ _) W- E. o% y. a2 m. F+ ^5 J) A% a4 o# q- |/ P; D
) J$ O9 C }% E0 Q7 C: M' F进入对应目录下:cd /elasticsearch/elastic-cluster1
0 y) C- d% I4 \% E' p; `* N' u! o% `1 v( S V$ W
配置es参数文件:% u( {% w y5 _4 E2 Y' |
! C: w( N- J3 ^# l& E) q9 v节点一配置:
3 T; A6 b# |3 ?7 c; x1 y/ F#vim elasticsearch-8.15.0/config/elasticsearch.yml
L& s! F: c0 J. @8 j- v6 x
* }; a4 ?. c9 X1 R$ a) ycluster.name: essearch
, K8 i7 i: S' _5 ]4 s/ Vnode.name: it-elassearch
) [1 C( J/ L8 x2 Hpath.data: /data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/data. Q( w+ q- V% N# C2 d
path.logs: /data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/logs
! h' O1 b$ H3 A; _. }% c2 x" U2 g9 S1 ]network.host: 0.0.0.0 ?( d: ^3 r! V S0 ^' L% `
http.port: 9200" m5 I N6 ~+ U) A: \- a9 Y
discovery.seed_hosts: ["172.24.110.125", "172.24.110.126"]
, d2 J2 G. T+ e+ y' }cluster.initial_master_nodes: ["it-elassearch", "it-elassearch-2"]
6 O; H/ X/ T% |3 g8 C+ \+ i2 M( e#node.master: true
' V( E* p1 v0 ` u; Z, T#node.data: true
7 C& T! \% _+ o7 S& k& ?3 y
" }- }2 H! {3 ]; J2 `xpack.security.transport.ssl.enabled: false) `5 q: X+ P9 n* p/ z
xpack.security.enabled: false. D2 S. z H1 N9 O1 h4 L! h3 T
& ^, R: J; m3 F3 q. Q' \8 b节点二配置
. X/ m: a# k7 H#vim elasticsearch-8.15.0/config/elasticsearch.yml
4 C8 z3 v% Y9 b: V) Q6 v2 g# N$ H8 H( ?% }0 h
cluster.name: essearch, d$ a" Z# H9 f! j3 e
node.name: it-elassearch-2
/ F, h. ?( A3 U- r) K4 vpath.data: /data/elasticsearch/elastic-cluster2/elasticsearch-8.15.0/data
/ \" ^* I/ |. I/ I( \path.logs: /data/elasticsearch/elastic-cluster2/elasticsearch-8.15.0/logs; ~; ?$ e5 L1 E
network.host: 0.0.0.0
+ t- `5 u, {$ i! e$ |9 K% ]* `http.port: 9200
' }" G' U* n! B8 m3 ^4 T% ydiscovery.seed_hosts: ["172.24.110.125", "172.24.110.126"]
4 C G) m' d. n0 F; ~* n% Jcluster.initial_master_nodes: ["it-elassearch", "it-elassearch-2"]* {1 N1 ]0 I# J7 d w0 i" q# u( d
#node.master: true
9 O1 y. b# B4 ~7 t1 | |: D8 F#node.data: true: w+ Z3 U% I% j
3 G3 C& B4 x$ ^$ B. r3 yxpack.security.transport.ssl.enabled: false5 L3 ~% w5 j k* W& z" ]8 F
xpack.security.enabled: false
# J( Z3 \6 S0 Z1 N8 b9 m% M# j5 ^4 j4 T2 G
JVM堆内存大小设置 ]6 n6 N F$ P r# z
设置内存大小:6 R6 }3 k! S( R8 d' k
% W6 l% R% j* l: |2 }
; Q4 R1 T% f9 n0 Z3 d0 P! L/ n4 Y) s: ?: R( b
vim elasticsearch-8.15.0/config/jvm.options
/ y2 ~: i/ a v- e! K1 V4 V; K2 @! k- K
+ Z& V9 J9 \! I l7 N-Xms4g
7 d8 S( [9 E' ? K-Xmx4g6 H d; L# P" U' ]3 {% ^
: X% C4 E3 X; e
# D* K L* e. p( n3 W
实际业务线上环境,建议所有Elasticsearch节点都是独立节点,不要部署其他程序、其他后台进程,以提高性能。如果内存足够大,比如:128GB、256GB,单节点是浪费,建议通过虚拟化方式切分开。" Q5 b- |! M$ d% r: k1 s
6 c/ l6 b! F5 w
+ a# V& v) q, i- C+ R) X' e: {1 ^
8 q& B! R# ?( J解释:
+ J% @5 V; V- o8 [
+ y9 G2 |& {, b, d$ p' M( G+ V目录结构
; J7 M$ p* i/ J) C0 Y: nType Description Default Location Setting
1 C. I! P, [2 Z [0 q2 `home Elasticsearch 主目录或 $ES_HOME Directory created by unpacking the archive $ m( |8 H4 D& ^" S9 H3 K- Y- o0 |
bin 二进制脚本,包括用于启动节点的 elasticsearch 和用于安装插件的 elasticsearch-plugin $ES_HOME/bin . P( _9 e9 g: X. ?# ^
conf 配置文件,包括但不限于elasticsearch.yml $ES_HOME/config ES_PATH_CONF
4 ~2 n* W% m- {( n6 E, L: Econf 为传输层和 HTTP 层生成 TLS 密钥和证书 $ES_HOME/config/certs ' ~; z, @, h* A4 l5 K
data 节点上分配的每个索引/分片的数据文件的位置 $ES_HOME/data path.data
3 A: A- W5 ^0 C. z) Jlogs 日志文件位置 $ES_HOME/logs path.logs
3 _! i0 u, t" d3 }plugins 插件文件位置。每个插件将包含在一个子目录中 $ES_HOME/plugins % u! |7 P( K. O: J6 L) o* a
repo 共享文件系统存储库位置。可以容纳多个位置。文件系统存储库可以放置在此处指定的任何目录的任何子目录中 Not configured path.repo
6 B; w$ n4 g! S( j# U! k5 C6 c
$ _: i( k D7 y& c0 }* ~& Z解释:
0 A" [2 E+ r. A M. M5 S) C2 L/ _+ c; C+ m8 F# ?
集群名称设置:cluster.name:' A; P6 I) E+ M
节点名称:node.name:8 `% {! ]$ B) J: a$ B; g" @$ R
网络主机设置:network.host:
/ T2 D) W; R5 N/ B发现形成集群:discovery.seed_hosts:
) ?8 ]. a6 _0 }! G选举主节点master资格的节点:cluster.initial_master_nodes:
5 e: H7 a' I( Q$ R. X; h设置集群间通信端口:transport.port:! G3 m& W2 W. }6 E2 p0 d- o
设置数据存放位置:path.data:
3 c4 A0 r6 M- A设置日志存放位置:path.logs:
; y/ i! o% R- ^& S- t$ `
- e/ r& H) f0 f9 ^. N- D+ ~! r- L其他y3 r6 y2 s+ M" N0 x" A& [2 l
3 I% s" x4 z, u% G, m6 O _% Zcluster.name: CollectorDBCluster, C) |6 c: d' F' |8 ~& f
path.data:/data/elasticsearch/data( i$ ?8 c3 J; P! ^! O+ B7 P& d
path.logs: /data/cusc-logs! g) X6 C2 M1 Q# d5 ^
network.host: 10.153.61.71
+ r) D8 a* w" W( Chttp.pち中o砗rt: 9200
7 i) K2 ^! X0 ~4 ~ f) enode.name:node-1
' P+ f P% h; c* f4 z1 ~, Zcluster.initial master nodes: ["node-1”1
8 V# T$ ?* Y+ Q, t; W各配置项含义:! ?9 w# L! j; X( O, a3 x
cluster.name 集群名称,各节点配成相同的集群名称。$ l; _ v0 _ ]7 @0 E5 t
node.name 节点名称,各节点配置不同。# A; k% n7 X* r* [4 _
node.master 指示某个节点是否符合成为主节点的条件。7 L. v8 n$ z$ c8 H9 {8 A) s( w
node.data 指示节点是否为数据节点。数据节点包含并管理索引的一部分,
; p# Q7 S1 w6 N5 N; c3 l7 i+ \path.data 数据存储目录。4 e( u' Q- D4 e1 l5 B- J) u
path.logs 日志存储目录。
+ ^( Y# f- t* H5 L" f+ u( m- Tbootstrap.memory lock 内存锁定,是否禁用交换' c+ k- g# ?, z% k" u0 A
bootstrap.system call filter 系统调用过滤器。
! B Q: }. e b% n- ?network.host 绑定节点IP。
' t8 o/ H( ]" Phttp.port 端囗。, p* }* A& L, _/ n% `; b V% D
9 z" C6 I: A) J m5 X/ E5 H
3 h4 H8 z! |6 @) U# c) s, _
& {0 ^! v- J) O[root@it-elassearch-2 ~]# tar -zxvf elasticsearch-8.15.0-linux-x86_64.tar.gz -C /data/elasticsearch/elastic-cluster2// E. `- g0 i2 O" K! C+ a
* c* _7 a8 J1 L4 |- O. m8 ]. x7 _8 w6 F% K' r2 A- `2 |" b; `7 O
- |, z5 S& O: w V) C启动集群:- P* N1 Z7 y; E) v- @
8 F" J8 ^ C4 A
前提:设置好系统配置和JVM堆内存
% p8 U) i0 q* T& V4 _5 J
4 N' b' U- _# c创建elastic的数据和日志存放目录,如果是测试环境无所谓,如果是生成环境一定要单独设置数据和日志存放的路径,因为ES可能因为升级或其它原因把原有的数据清理或丢失等因素0 n8 z; p& @! N0 T& T; ?
5 R1 V" a, w N* O L
: _8 I' ^4 P" k, J$ P4 n9 D6 T, N0 E4 A# g M5 y3 r2 l
mkdir /data/elasticsearch/elastic-cluster2/elasticsearch-8.15.0/data( Z2 Z) Z* l0 Z9 v6 d* p0 f
mkdir /data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/data0 w( j8 H( Y Q k4 f( Q. I7 `
; a1 W; H0 i5 E
! y8 j& X' X( ^; I配置文件属组权限,并启动
3 o# G" @) x3 d[root@it-elassearch elasticsearch]# chown -R es:es elastic-cluster1/
$ g* t; m1 ^: c& T* T3 f/ N0 Z9 h, F[root@it-elassearch-2 elasticsearch]# chown -R es:es elastic-cluster2/% ]" U% x" R- O5 L% g4 p- }4 H+ _
: d u0 y/ s% f0 w( u( c. Y( H5 c4 m( g; E% |- w; t; a
5 t2 W+ s# F8 U- \如果添加鉴权配置请按照此处配置,不配置即可略过:6 S7 i1 j5 x9 W8 u( O f* Y: L
2 y1 \9 n6 _4 P% E; _
g! }3 r3 @0 D# S
生成密匙:) x# V; y: {* v. Y8 M& l8 I
[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-certutil ca+ Y" Y a0 ]2 f* N# j* j% W! _
This tool assists you in the generation of X.509 certificates and certificate3 a' Y2 }* P- b) `+ P
signing requests for use with SSL/TLS in the Elastic stack.
. X2 Y# x* p- y6 z2 T
3 r; H2 j8 b8 m- `. d* [4 j' w0 A2 i
The 'ca' mode generates a new 'certificate authority'& L0 L0 p# B7 p2 P7 N! a9 D- {
This will create a new X.509 certificate and private key that can be used. m$ x ~8 ~7 U* w; m
to sign certificate when running in 'cert' mode.5 R) t" n7 N* r: K& B
3 d5 I: z1 x3 H R2 ]+ H
6 l# N' _5 u4 w L$ Q1 ^Use the 'ca-dn' option if you wish to configure the 'distinguished name'
4 W' B- v# l) T" o6 Iof the certificate authority2 U2 M, f' `: C5 Z/ |
4 u6 I$ `; u6 P8 }
. Q/ R; |4 b( sBy default the 'ca' mode produces a single PKCS#12 output file which holds:
# ^) _6 H0 g8 m5 r+ d! ?8 g3 Y * The CA certificate
, ]$ `* ]! T1 J8 G' I% y! ~ * The CA's private key' s+ T( g( q; o0 i; {3 ~- m
. T- L9 Z# \1 j# y, o/ I# h4 v
+ z. B; p4 @. w
If you elect to generate PEM format certificates (the -pem option), then the output will
- m F! H' g9 v$ F8 c7 Tbe a zip file containing individual files for the CA certificate and private key$ V9 j* M/ [2 ]0 b v2 A% g: `0 [, N
: o& P! s w' R! L2 Q
( i4 T3 D2 J: EPlease enter the desired output file [elastic-stack-ca.p12]:
) j: q3 K8 p+ H$ E9 m @Enter password for elastic-stack-ca.p12 :
2 J8 y; P$ Q" l
5 H. n, [' @; C& }
% a2 {" Z! G3 ` l# O5 }/ o2 ^9 j% h" a7 k; S
* |, u- Z& a+ n4 H" H8 `: C, X
! j O* U0 g+ a. {[es@it-elassearch-2 elasticsearch-8.15.0]$ ./bin/elasticsearch-certutil ca
" ~) F0 V8 r( O$ ^" w# s) y: }0 mThis tool assists you in the generation of X.509 certificates and certificate: ^- N9 {" z1 z5 x5 U6 v
signing requests for use with SSL/TLS in the Elastic stack./ I" S$ x+ F8 y1 i
# [9 d! i/ E+ o! n, E- L
( T2 @5 d' v& W# F- e9 FThe 'ca' mode generates a new 'certificate authority'
' a" a0 f/ a, F7 A) _. l# ?This will create a new X.509 certificate and private key that can be used
) J8 e: M! {' E: F; i" ito sign certificate when running in 'cert' mode.
, P+ S2 l9 {. h! m' w6 x
& l+ X6 [8 p; M4 \2 ?' w3 _
& W0 g% s0 l: ~1 J( P; AUse the 'ca-dn' option if you wish to configure the 'distinguished name'
. N% e# K4 J. h& w& k0 i, I( bof the certificate authority# [! } n m" V1 G, r, e1 _
$ j! H6 a# \4 E6 i; ]* ?% T5 G8 o
+ C! G2 Y+ Y8 w* i9 L% ?: OBy default the 'ca' mode produces a single PKCS#12 output file which holds: L( i/ ^0 F7 ^; ]$ K
* The CA certificate( d4 X6 U& n5 ^+ z& }9 V0 y" c
* The CA's private key
3 @. C: F7 y$ l2 {8 |* ~. w6 r* W5 P" D$ \! Y& e" g
! h( O4 I$ C1 S! E0 V: E, T- QIf you elect to generate PEM format certificates (the -pem option), then the output will4 t5 i z0 P! s5 \7 e9 z
be a zip file containing individual files for the CA certificate and private key
" Z" n5 a) S) B" F, d+ P- P }. Q8 f& m' E3 O2 o
$ x; A" f5 }' v# N, p: ]- l; A
Please enter the desired output file [elastic-stack-ca.p12]:
1 ]7 a+ ?: B7 J9 mEnter password for elastic-stack-ca.p12 :
0 Y! ], `$ j! f6 j
5 ]. ^0 I* e# `( V _; x
, k/ y* j* l: T% P( \
2 X7 d, [! O, M2 ?7 s2 j
; N7 d. B6 @3 c& @7 h ?; t' C8 A
$ o5 \- F) \- k$ S: ~& E) e* {6 i: C2 `3 g7 O
' ]/ l5 h+ m6 J; t: K! i+ K& z
0 H" D6 ]' Z, Y8 o, q2 p2 b* ?( V* ]7 ~
8 F$ I& {/ ?3 {' W
mkdir -p ./config/certificates/
; N, \& b3 h! h9 f& {+ D- J9 c2 P
& U* c8 b& x4 v3 _3 ~
: P; F$ i& b" M! `& Q: `+ j3 R0 l
- ^ r2 V7 D) N: ]0 I8 e7 I2 s$ m; }# T
http.cors.enabled: true
; c+ H) o8 u I+ C5 \http.cors.allow-origin: "*"
6 j8 i3 y% }+ shttp.cors.allow-headers: Authorization,X-Requested-With,Content-Type,Content-Length: T! U3 ] w0 T! M% l0 z% _4 ]- _4 ?
/ s# ]$ q( q0 x
" t4 f& {8 T0 C, y: s. ?xpack.security.enabled: true
' p$ S& O4 X% R2 [9 Oxpack.security.authc.accept_default_password: true9 Z. P* P$ k% h7 y6 Q) P
xpack.security.transport.ssl.enabled: true
: r$ e6 l5 [/ [$ Y- p9 h" N5 }xpack.security.transport.ssl.verification_mode: certificate2 Y" ~1 L; H: s. I& Z2 B
xpack.security.transport.ssl.keystore.path: /config/certificates/elastic-certificates.p127 G/ X8 i* j: I$ ~7 }: V
xpack.security.transport.ssl.truststore.path: /config/certificates/elastic-certificates.p12: O+ _" w+ w% d$ |* a% u
7 T+ w- X9 D$ {, @
; |+ V- P t! x5 C- Y
. ?2 ^! j! g7 m# q) n! j# }! A
& B2 H1 F2 Q6 y' G: V1 A0 X9 B
/ ~+ O% |" u$ l: U/ _4 x) u* L; S( }0 C9 \* H) ~
加权一样需要切换到es账号:
2 u, S1 ?2 d* _$ X' ]3 J- O# N% h2 s0 q W; d8 k, K7 d
在各个节点上添加密码:
* o6 s0 q/ }! i' ^, k, M
6 K: S1 \+ [" ~" F+ S/ C- }[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password
& T; q- U! {. u/ J[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password
7 f2 ~/ ~- ]4 JEnter value for xpack.security.transport.ssl.keystore.secure_password:
6 A" Q/ v8 [7 e1 Q. k) g' N2 l9 J2 a3 b
" U1 m/ b8 }* v$ Q- z& S[es@it-elassearch-2 elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password # B2 k6 L3 p5 j$ |4 b
Enter value for xpack.security.transport.ssl.keystore.secure_password: - ^8 a m0 E+ d" Y# P$ z
输入密码:第一次输入密码
# F0 \/ f$ R8 o) d; J) M- J' {8 a- f5 a: U4 n
[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password
+ O8 D9 z# \6 i# `9 iEnter value for xpack.security.transport.ssl.truststore.secure_password:
( e X) T4 [5 K! X( @
% f, j* E2 Y0 |$ |! g$ \- @[es@it-elassearch-2 elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password: s' j. X, A0 J: k5 v6 h) J
Enter value for xpack.security.transport.ssl.truststore.secure_password: * p3 g& y# z+ z1 y; b
. f. ?, S$ }" H1 Y! \
( ^6 w7 g3 p& v2 l* N) V输入密码: 第二次输入上面的密码:: r0 n; a$ [# e- n* ]0 K
5 ^3 k0 ?4 T' V+ j8 x- N& k. Z* u
$ _# Q/ S3 f* I' W' Q( b创建文件夹: mkdir -p certificates/
6 p) G+ p0 {% k- ?% r7 t' O/ b, F* F, d0 D/ R
# F/ V( {5 \5 y; N7 W- c$ I
/ V- Q Q, D" }7 q- G接下来和没有做鉴权的一样,逐个启动集群:' v5 {4 q" Z8 K# N2 l
, U y+ l" q$ P- ` f$ U0 P$ X5 w5 |# @( l' l9 T5 H3 T/ W: S
7 q; D6 j6 W2 l7 H5 I/ z7 m7 F切换到其它用户,root用户不能启动ES:su es
9 |4 d% F& s" z& Y
5 r% A: R6 J8 j, U) c6 A
1 |" {% [% T: `5 p& c
# M. P0 ^2 `2 N" e+ q6 @8 Z7 u8 Sbin/elasticsearch -d1 L m# J( W" v2 Q; W7 \. i
[es@it-elassearch elasticsearch-8.15.0]$ bin/elasticsearch -d 8 A8 y& V$ |& ?8 X8 c+ w F
5 S0 R r1 s/ M" R; [
8 ~% B; g- [# Z6 G, h/ K[es@it-elassearch elasticsearch-8.15.0]$ bin/elasticsearch -d
5 c& A6 k" W" @) E; L* W* L% j! p+ EOct 24, 2024 5:33:34 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
6 M( e( A. z" r6 w# T HWARNING: COMPAT locale provider will be removed in a future release
. I. e5 ~8 y2 B2 T( Y0 ^$ ^* k[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=false3 a; H# H6 c1 n2 {
[2024-10-24T17:33:40,727][INFO ][o.e.n.NativeAccess ] [it-elassearch] Using [jdk] native provider and native methods for [Linux]# m5 S6 Y, k0 b
[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 only6 E3 {9 T) E* L, l$ 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]
; [' T: P( R" V( f3 Z( b3 a[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]3 K( _9 w5 O+ x- T
[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]
& |$ F8 o; k/ w7 S. M- }& ][2024-10-24T17:33:42,187][INFO ][o.e.n.Node ] [it-elassearch] Default Locale [en_US]$ \% r8 U' `3 ]/ k3 h, k- `
[2024-10-24T17:33:46,616][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-url]
1 c' p9 w- O5 B0 o8 I[2024-10-24T17:33:46,616][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [rest-root]' F) i$ R+ @8 m. b
[2024-10-24T17:33:46,616][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-core]
5 u8 J9 U+ C, q# q' ~+ k/ b3 z[2024-10-24T17:33:46,617][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-redact]( c+ p. U; |/ s! H
[2024-10-24T17:33:46,617][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-user-agent]0 N: M: q: }3 i% j2 z
[2024-10-24T17:33:46,617][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-async-search]/ o: C, w* H- ~/ y: `. m
[2024-10-24T17:33:46,618][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-monitoring]1 o* \9 h+ j s- J5 v
[2024-10-24T17:33:46,618][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-s3]) @" @1 F7 `- M% C6 X6 ^4 @* F0 B
[2024-10-24T17:33:46,618][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-esql-core]
) Z$ S6 ^- B6 T" p8 s$ z[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-analytics]+ T- ^- p& Z3 ^! Y
[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ent-search]
7 {; N' P9 V, u- l p! V[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-autoscaling]4 C U8 z; Q3 ]) a9 v0 v
[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [lang-painless]% C5 h) v3 b) L ]8 L h+ w8 f
[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ml]8 ^) F/ r: J: B( V U3 m0 e
[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [legacy-geo]/ {. V( X7 ^6 H y' V0 {9 K9 D
[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [lang-mustache]
2 [% g' g8 ]7 d; d/ k9 ^[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ql]
9 ~0 G; b0 p9 @9 y1 ], U9 ]" G$ d[2024-10-24T17:33:46,621][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [rank-rrf]9 d6 P# V# v4 E& w$ @! f3 u
[2024-10-24T17:33:46,621][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [analysis-common]
" t, O) L$ {$ {: r0 ?" e! B7 o[2024-10-24T17:33:46,621][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [health-shards-availability]
& Q5 I3 J# r% S9 i. ?- L[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [transport-netty4]
+ v& y! o+ y5 D" H$ y[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [aggregations]
; I$ w! Z& p1 a3 i) S: h+ n[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-common]& d3 c# g! S, f9 z j. H
[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-identity-provider]
- r& M$ _' I- ~+ j9 I. y9 g[2024-10-24T17:33:46,623][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [frozen-indices]
: ~% f7 h5 l# F5 t, t[2024-10-24T17:33:46,623][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-text-structure]; P0 E# p8 t* U+ x; B$ B5 d5 g8 {
[2024-10-24T17:33:46,623][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-shutdown]
% n7 p0 }; h* @' a5 p* \- E[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [snapshot-repo-test-kit]) X$ u# v* a0 C! W' B% P
[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ml-package-loader]7 N" H) }2 @! n# t7 Z1 ?6 X/ ^4 Z1 D
[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [kibana]& d+ w8 W2 N9 B8 {. K% E* p Q8 {
[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [constant-keyword]
& e* c' v/ O9 u[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-logstash]8 {2 O5 ~8 H" m0 @( _
[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-graph]
3 r2 A" F g' M6 o& b[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ccr]% O% T5 \0 K0 r. L% o+ x
[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-esql]
4 K3 g) l% K" e; E& Y( c[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [parent-join]4 c0 K( I4 Z1 {# e
[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [counted-keyword]
6 K: X" \% l1 C7 |* U: z" L[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-enrich], |3 T$ H% ~1 \( s4 a: T
[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repositories-metering-api]
k9 `* T) ~0 T9 u[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [transform]
. R" P) W6 O R) w% i[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-azure]$ y0 V# A, I' M+ T% H% d8 B
[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-gcs]
5 |$ `' I2 \7 y" @( ?9 `/ ][2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [spatial]- u4 R" u4 p' Z
[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [mapper-version]
) d3 v& j! a8 H# Y1 `; g[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [mapper-extras]
! a) g ~+ J, K3 Y[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [apm]' f8 t1 R7 Z( n4 W; W0 i# k
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-rollup]' s: M9 N. ^5 `# v3 H5 i z0 x& p- ]
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [percolator]
4 l9 k# x8 J* T+ b- _[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-stack], \) R7 w+ O( C/ q$ B! W
[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [data-streams]
5 u7 H. w [9 z; l; @$ n- b5 u[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [reindex]; b6 M9 G" w/ u z- L$ Y
[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [rank-eval]
8 i- R# g% R6 y1 H7 e0 n2 `[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-security]! j, Y8 n8 ]: v [9 Q! t+ I
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [blob-cache]8 A- c. I0 a9 B
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [searchable-snapshots]' k% S- a, L/ g/ [) Q3 h' p4 `
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-slm]! T8 p9 D' }( @- q& J# z
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-geoip-enterprise-downloader]
; C9 q1 i6 ?/ @) G8 f4 A& b& F7 Q0 u/ p[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [snapshot-based-recoveries]
8 G, K+ Z1 l: [" S, |[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-watcher]
% @: Z0 Q) J! ?% S& X+ i* D[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [old-lucene-versions]
' V) b: m' `7 E* _9 i6 v0 M9 Z8 o[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ilm]) a" x( h1 z, P7 X# y1 Q% i; u
[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-voting-only-node]1 D; A* d8 ?; ^" P3 M
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-inference]+ O! b+ N( i3 B6 |- f
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-deprecation]3 |) k' k* q" y
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-fleet] j# u1 F" _. o, i/ X* F
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-profiling]
/ K5 W1 V& a0 m! n. J[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-aggregate-metric]
9 k. f9 n; g4 Q1 p1 z[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-downsample]
: d7 Z- T9 o8 z2 Q1 H8 u[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-geoip]
4 L+ ^7 L, v: [% e9 V% g4 Z4 k[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-write-load-forecaster]3 Q4 H% u( s" A2 h
[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [search-business-rules]
9 B3 e! j @- H7 w) p3 i& z0 K4 E[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [wildcard]
" D" t; S& b2 r( |8 S" i[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-attachment]
: r* ?7 W# s5 W! y( O+ K[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-apm-data]
& Y' Y- f i; Q/ l4 b( c( O: D[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-sql]' w# M, n h8 S8 [' w0 o
[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [unsigned-long]
! v$ \- F0 p Y& Y8 U[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-async]4 U! ], b# d2 c" T
[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [runtime-fields-common]
. T6 }5 Z; e8 h7 j: K[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [vector-tile]
- I' L% B) Y& E1 _[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [lang-expression]
# j/ T+ d4 x4 J[2024-10-24T17:33:46,636][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-eql]
0 a9 a8 U, [- x/ E3 K" v[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]
. o5 Y! c' V3 V[2024-10-24T17:33:48,162][INFO ][o.e.e.NodeEnvironment ] [it-elassearch] heap size [4gb], compressed ordinary object pointers [true]
0 q2 V2 O$ E; C5 {" y- a[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]
, c/ O( v7 U8 O3 S[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]( V) @- d( ~# K$ R
[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]- p3 Y9 g L7 }/ Q h
[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 BV
+ v. M0 I8 G2 e% G3 u7 n& J8 o[2024-10-24T17:33:54,499][INFO ][o.e.t.a.APM ] [it-elassearch] Sending apm metrics is disabled
- {4 x; L* Q# R[2024-10-24T17:33:54,500][INFO ][o.e.t.a.APM ] [it-elassearch] Sending apm tracing is disabled
( `& G+ ^. e6 @8 Z' ^[2024-10-24T17:33:54,544][INFO ][o.e.x.s.Security ] [it-elassearch] Security is disabled- @+ H/ S" E/ w8 t+ x4 H. o
[2024-10-24T17:33:54,846][INFO ][o.e.x.w.Watcher ] [it-elassearch] Watcher initialized components at 2024-10-24T09:33:54.846Z8 D# k" o, p. Z( a" K
[2024-10-24T17:33:54,936][INFO ][o.e.x.p.ProfilingPlugin ] [it-elassearch] Profiling is enabled
$ ?5 T. Y( S+ K' G[2024-10-24T17:33:54,957][INFO ][o.e.x.p.ProfilingPlugin ] [it-elassearch] profiling index templates will not be installed or reinstalled
4 K1 t- z" y9 l0 s# r3 g[2024-10-24T17:33:54,964][INFO ][o.e.x.a.APMPlugin ] [it-elassearch] APM ingest plugin is enabled
# O1 x- W S2 w w/ {0 E! F[2024-10-24T17:33:55,002][INFO ][o.e.x.a.APMIndexTemplateRegistry] [it-elassearch] APM index template registry is enabled+ g) V p2 S. A/ p# i) 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}]
! N5 H! N) F/ ]7 K* ?% W[2024-10-24T17:33:55,633][INFO ][o.e.d.DiscoveryModule ] [it-elassearch] using discovery type [multi-node] and seed hosts providers [settings]
1 N0 z% o* a. y4 U; `0 ^6 m# j) u[2024-10-24T17:33:57,137][INFO ][o.e.n.Node ] [it-elassearch] initialized
# h1 f$ ]- |7 O" d+ ^[2024-10-24T17:33:57,138][INFO ][o.e.n.Node ] [it-elassearch] starting ...: f& J- G3 l: t8 |6 l
[2024-10-24T17:33:57,190][INFO ][o.e.x.s.c.f.PersistentCache] [it-elassearch] persistent cache index loaded1 a; s( C" c" j- ]
[2024-10-24T17:33:57,191][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [it-elassearch] deprecation component started
! F4 m" c" s; l$ i& Y7 ]0 m" @[2024-10-24T17:33:57,334][INFO ][o.e.t.TransportService ] [it-elassearch] publish_address {172.24.110.125:9300}, bound_addresses {[::]:9300}
4 D8 M4 b r& l# k4 v+ C% m[2024-10-24T17:33:57,569][INFO ][o.e.b.BootstrapChecks ] [it-elassearch] bound or publishing to a non-loopback address, enforcing bootstrap checks
, f( f/ Z; [6 [8 W0 |[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]8 Z. `3 w, F' L3 `8 X4 `
[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. ]0 A$ M9 `8 ~& G
[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
) q1 m; w; z& O' M: w9 h+ q[2024-10-24T17:34:27,590][WARN ][o.e.n.Node ] [it-elassearch] timed out while waiting for initial discovery state - timeout: 30s
. C4 N. n |: A, [' ?& v[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
- u7 W! F; M4 V- h[2024-10-24T17:34:27,609][INFO ][o.e.h.AbstractHttpServerTransport] [it-elassearch] publish_address {172.24.110.125:9200}, bound_addresses {[::]:9200}: `- F* \; ] L U! D5 w
[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}
1 q4 Q$ k& O t' {[es@it-elassearch elasticsearch-8.15.0]$ netstat -ntlp , ]( ]4 |" {9 B5 H
(Not all processes could be identified, non-owned process info$ `1 f; J5 c `4 Z: D
will not be shown, you would have to be root to see it all.)4 }& w m9 g; J* j( t! C
Active Internet connections (only servers)" U9 Y& I& [+ f3 t3 j2 J
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name ( x% E; N% e+ d; U/ W
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN - 7 f4 `: A& i3 q7 y+ c+ v
tcp 0 0 0.0.0.0:60028 0.0.0.0:* LISTEN - ' F4 _3 v) W1 Q! g
tcp6 0 0 :::9300 :::* LISTEN 8520/java
" b% k1 H/ w8 Z& O5 p9 X1 s+ p8 ?tcp6 0 0 ::1:25 :::* LISTEN - 0 l9 E6 [+ d7 _6 V/ X
tcp6 0 0 :::60028 :::* LISTEN -
9 Z( l0 {! I1 f% R ]tcp6 0 0 :::9200 :::* LISTEN 8520/java
, F; _$ M1 Y4 C7 L0 V0 J5 G0 C9 F8 h
: Z6 _" o ~' W8 d. _8 t1 G' r5 X
8 ~; @$ ~# z' b' }$ h9 ?1 {0 R3 [
5 x! N/ v' k- P4 F5 k/ O% S. v$ n4 k# n7 Z/ I3 H4 z
3 X6 E6 L6 J. W# o
3 c& l2 c$ I0 k* p' Q% t3 m, q, h
( X/ H3 s7 }0 Y$ H* H9 a+ b |
|