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