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