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