- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
elasticsearch8版本安装详细步骤,单节点,多节点,冷热温集群部署、IK分词器安装、简单生产安全模式配置1 W; L& m* u+ ?2 x9 I' v- F
3 l* }, |) V+ {' Z8 f( O% t* {, g* [- S
1、设置虚拟内存
0 J% t! n9 [8 J- G1 Bsysctl -w vm.max_map_count=262144
$ R7 @% R/ \. f; Z7 I+ u$ @echo "vm.max_map_count=262144" >> /etc/sysctl.conf,
; V* [8 P" r5 ^( }6 _2 C1 I( yecho "vm.max_map_count = 262144" >> /etc/sysctl.conf
1 W- k9 I: }0 b$ U
$ d6 w: Q" K. I# ~- q1 Y) [
) D: Y1 ]% H, `/ Z加入:vm.max_map_count=262144
2 t. {; }5 l- G* \4 e使配置生效:sysctl -p
" z- D: B( h6 T. _% R
( Q9 I" [1 ?# C$ g& l: E- j2、设置文件打开数:
- Z2 O3 A- W0 K: Hcat >>/etc/security/limits.conf<<EOF. Z6 i: C' S5 _5 r3 _$ R! _
* soft nofile 65535
( H/ b4 P/ d |; S * hard nofile 65535
" ~0 v$ V% Y5 i/ W7 E * soft nproc 65535
5 {4 |. C5 x2 Y5 ?2 l( p * hard nproc 65535
* x8 G: B( U9 h' x& n3 G8 W+ d EOF ?) K3 L! ~6 B: }" K6 i, U
% r2 h3 h V3 U) v$ g- u+ D
$ {* z) C* y& ]设置pam配置:( {$ y9 L/ x# \# T
echo "session required pam_limits.so" >> /etc/pam.d/login# [3 J% H! o2 c- _% K& q5 Z
3 q4 b; F0 k$ n' x; I6 u
/ L7 ]( x) K+ l1 z0 z8 _3、禁用swap交换分区
; g: j% y: C: [7 p2 M/ s! `swapoff -a #临时禁用
) t2 K6 y9 d- a2 q0 Jvi /etc/fstab #永久禁用) R/ Y) g/ Z6 {) V' @$ ]
找到swap这一行前面使用#符号禁用掉
; w1 z+ H1 D8 U! H' M8 M. q! L# d/ ?/ ?9 T3 p2 i! \$ o# J) O, A
4、设置TCP重传超时
* O' g: s" c% c) X! |3 C& [1 T( csysctl -w net.ipv4.tcp_retries2=5
( O4 E: u* r* u6 H/ a2 f+ N+ x编辑配置文件:echo "net.ipv4.tcp_retries2 = 5" >> /etc/sysctl.conf
* M) j- C: N$ @' h( [ O
6 J, N5 _& u p: ^2 q( Z$ r5、创建一个用户
+ W4 o* }; ~1 a4 yuseradd es
L3 O$ v" c& n
& w7 P0 l6 k1 ^6 [6、创建安装目录& Y v D) C6 E/ D7 G% k
mkdir /data/elasticsearch/" F+ x4 r) J7 N
mkdir /data/elasticsearch/elastic-cluster1 / U$ s$ [! I! a. y9 z) q8 J- m
1 e. Z: \" y0 C% P1 q. B/ p: {8 l, zmkdir /data/elasticsearch/elastic-cluster24 k1 m: k6 J+ F/ Y
5 I) \3 S+ I: ^) G* d
2 v& U. s9 j9 H, J7 T2 F. t2 T- G& P
% K" T3 E5 ~5 E6 O
[root@it-elassearch ~]# ls -p /data/elasticsearch
' _8 F9 g8 h/ L: u, d8 t4 }elastic-cluster1/ elastic-cluster2/
; r8 q& j5 M1 _" H, q3 H* } t/ D
* O' z% r) l9 a# T
8 P& w% b8 x7 F7、下载官网安装包
3 N3 t. k- P# R0 O. W+ ~官网下载地址,选择对应版本的elasticsearch和kibana:https://www.elastic.co/cn/downloads/past-releases#elasticsearch
5 q- i' o: R+ F8 n' }8 shttps://www.elastic.co/cn/downloads/past-releases#elasticsearch: d5 Q# e( `7 v$ k; N% i: [' O
# U+ K" e% g# x' w3 |* K# q6 E
" b$ F8 O5 T8 q" ^4 U7.1 解压:我的安装包下载到了/root/目录下,解压到/elasticsearch/elastic-cluster1/目录下6 N# k2 f1 y: i' t$ f1 i5 V8 x
0 `( ?& w& P! H, `) y
* o) m' Z& R" t, }8 F c
[root@it-elassearch-2 ~]# ls7 t: r2 a5 f( K: J
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
+ }/ q, W6 B/ n9 _8 yYou have new mail in /var/spool/mail/root
& d4 C: }/ @6 X6 [$ r: Y1 `, w b4 z7 b
3 W5 _# `" O5 j- v
[root@it-elassearch ~]# tar -zxvf elasticsearch-8.15.0-linux-x86_64.tar.gz -C /data/elasticsearch/elastic-cluster1/! }; Q/ z0 a# k2 @
; p0 e( ?1 z" Q0 I) {- F
: \/ i- v# G+ a& x3 A) u; I[root@it-elassearch-1 ~]# tar -zxvf elasticsearch-8.15.0-linux-x86_64.tar.gz
, e4 }5 ~7 x$ U* u C, H" U" w......* s2 y- q" {1 B+ u& I$ ~' u" n
8 q/ F9 V8 \( J* H% ~elasticsearch-8.15.0/modules/analysis-common/analysis-common-8.15.0.jar
6 w% _9 \% B* w( d' Relasticsearch-8.15.0/modules/aggregations/
3 z, i1 u5 g9 C [elasticsearch-8.15.0/modules/aggregations/plugin-descriptor.properties3 l$ m* p/ w/ l
elasticsearch-8.15.0/modules/aggregations/aggregations-8.15.0.jar
: ~' r4 f7 O) {9 K( M! Lelasticsearch-8.15.0/config/jvm.options.d/
% B! [. b2 z# q/ i% Jelasticsearch-8.15.0/plugins/' _0 M! D1 n/ H3 T6 [0 c" x; Y0 P
elasticsearch-8.15.0/logs/7 g ^4 B) p, J' k( U
% i* b1 N2 ~1 ]3 I
% V' c" a& I# E) z6 g! ?! V进入对应目录下:cd /elasticsearch/elastic-cluster1; Y' {7 k, x8 U( U3 `
3 Q. O7 U3 b1 z- |& T
配置es参数文件:' ^: e' f" U8 q
, `8 ?. ~% B; A3 l$ m节点一配置:
: v) b/ k. w) k#vim elasticsearch-8.15.0/config/elasticsearch.yml
: f; |! q+ e2 j0 Q$ F6 j: ~3 f: l4 x3 |7 e2 H. T r/ H* a( e1 k, U
cluster.name: essearch
8 C# e$ F( i5 D5 H2 R" p& I; C) inode.name: it-elassearch3 E2 f0 A" M& X6 j. {6 M
path.data: /data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/data
# p% @( j! l) z# \path.logs: /data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/logs) d- w* m; h! _
network.host: 0.0.0.0 g9 H% {1 c4 a; {2 N
http.port: 92002 b1 R; F7 ^* v5 m
discovery.seed_hosts: ["172.24.110.125", "172.24.110.126"]1 u$ X! T4 V2 l% L9 n1 i- L
cluster.initial_master_nodes: ["it-elassearch", "it-elassearch-2"]
+ F8 q- T# h6 }! e#node.master: true
5 e" \4 i$ r$ j% N4 g2 ?#node.data: true
% w6 w" F& o; @# @ P7 i' A/ m1 x5 u
% n+ a7 t1 y8 i" n5 ?7 W/ yxpack.security.transport.ssl.enabled: false
( u" b* r8 B5 F1 \( a- e9 mxpack.security.enabled: false+ u5 @' l y. L& w
5 \. q- ^- b2 d2 i, X! |7 M# b
节点二配置
; p! {$ V# [( C9 {! M% o4 E9 a#vim elasticsearch-8.15.0/config/elasticsearch.yml
" G1 F! ^7 M; h) U% T {6 b# q7 l0 g) ^; Z
cluster.name: essearch/ e7 G. p) a- ?6 f5 d
node.name: it-elassearch-2
$ `3 O" p7 f) C# E5 r) R6 ~path.data: /data/elasticsearch/elastic-cluster2/elasticsearch-8.15.0/data! w- o# H4 m: q6 J3 Z$ `0 l
path.logs: /data/elasticsearch/elastic-cluster2/elasticsearch-8.15.0/logs
- t0 K, f, u$ ]& unetwork.host: 0.0.0.0
3 y; d1 Q0 j9 }0 z/ a% khttp.port: 9200
a$ O. d; @ tdiscovery.seed_hosts: ["172.24.110.125", "172.24.110.126"]# p4 k; }: s8 [3 D$ H% g: a
cluster.initial_master_nodes: ["it-elassearch", "it-elassearch-2"]
: R, B* R- R! G7 V! Y#node.master: true
* L/ C6 }8 b' H- d: E% r5 e. S#node.data: true
# |6 Z0 p* P; C+ @8 |" v
, p" k5 x; s/ Y! Axpack.security.transport.ssl.enabled: false! \% F4 b* {4 t0 Y2 E4 f" j
xpack.security.enabled: false
5 W, f; V* j: p9 {1 J' L/ z7 L' F3 i: C& H+ n* B
[color=rgba(0, 0, 0, 0.75)]JVM堆内存大小设置
, L" O2 w" T- _, f. g4 v6 V设置内存大小:
7 F; |( `0 `; ]7 b* {- V5 C8 P V& f# j$ {" J6 y
. s; J5 F$ k' \) x* c[color=rgba(0, 0, 0, 0.749019607843137)]
( F7 f2 w0 o1 h: M% N# E7 |) cvim elasticsearch-8.15.0/config/jvm.options- M( c Q. }" B* q% H- B6 z+ B/ d
, _0 |) Q2 ~% d+ U" x# B2 R( ?
6 q2 Y0 I) n: h( I7 s-Xms4g. J& `! P, a1 ] Z
-Xmx4g
7 `) O) r# I9 ~0 P5 t7 M: a
) i# y: J' P3 Q6 [/ G) _: A4 B0 I3 O
实际业务线上环境,建议所有Elasticsearch节点都是独立节点,不要部署其他程序、其他后台进程,以提高性能。如果内存足够大,比如:128GB、256GB,单节点是浪费,建议通过虚拟化方式切分开。
, c# \0 n3 P2 F/ S3 [
7 y* d/ h) ^' D' g# E4 w) `* ?8 I% [+ c, ~- r+ Q
$ f: _ Q1 \* }- r/ D4 K
解释:
0 Q) S @, i: P8 e5 @& g. y9 ?# y8 E5 V! s& d- o. O( ]; S. k
目录结构
5 p0 p5 g4 v6 {7 N5 rType Description Default Location Setting7 C6 T: R$ }9 A2 y
home Elasticsearch 主目录或 $ES_HOME Directory created by unpacking the archive " j D0 T. }3 C* n" ~
bin 二进制脚本,包括用于启动节点的 elasticsearch 和用于安装插件的 elasticsearch-plugin $ES_HOME/bin
4 k1 i; } t0 K8 Y9 O0 Mconf 配置文件,包括但不限于elasticsearch.yml $ES_HOME/config ES_PATH_CONF
5 v3 V( D9 a! f% _conf 为传输层和 HTTP 层生成 TLS 密钥和证书 $ES_HOME/config/certs
4 s+ Q7 o& V3 P1 ^data 节点上分配的每个索引/分片的数据文件的位置 $ES_HOME/data path.data2 g/ K$ D, c7 g0 n2 L- r1 A, b
logs 日志文件位置 $ES_HOME/logs path.logs7 Y6 L6 ^' M+ b/ Q
plugins 插件文件位置。每个插件将包含在一个子目录中 $ES_HOME/plugins " g8 K$ T6 O+ S1 ^5 a* O% F9 f% t
repo 共享文件系统存储库位置。可以容纳多个位置。文件系统存储库可以放置在此处指定的任何目录的任何子目录中 Not configured path.repo' [+ @) i' B# v
; u$ P# x6 K$ [% ~1 N& k! r* J
解释:
1 k J& d9 W. P8 p3 y1 E# X
) Y" U9 t7 Q1 u0 e. `集群名称设置:cluster.name:7 O1 p% B, L: M( i- q" B
节点名称:node.name:: M! L) y3 Q' q J( z* v/ X
网络主机设置:network.host:
" n' H: @ G" B3 W- l6 t) F9 ^' b3 j2 B发现形成集群:discovery.seed_hosts:+ j$ C' Q) C" W' a/ |
选举主节点master资格的节点:cluster.initial_master_nodes:( O! ~! C+ c2 a5 C$ D8 h7 y) [
设置集群间通信端口:transport.port:$ s- j7 O" J' Y- m
设置数据存放位置:path.data: ( C4 v2 l" Z J: P- ]
设置日志存放位置:path.logs:
7 v! f2 S3 n+ a5 M$ j, T
1 P% D. S' M; k$ t( N, ?9 ~0 O, S其他y
, }1 N1 O" @* A) O
/ M' p) n* J( }5 N4 wcluster.name: CollectorDBCluster
# F m: p! d6 o! F0 y8 kpath.data:/data/elasticsearch/data* m9 ]( s& Z4 m# m
path.logs: /data/cusc-logs ^3 \% ~# ^+ ]* J# } Y5 s' X& {
network.host: 10.153.61.714 _% x! M: [2 F5 O6 _' f1 ?, t
http.pち中o砗rt: 92004 L/ z! Q: D0 \3 [1 q
node.name:node-12 E9 i E0 q0 w" X
cluster.initial master nodes: ["node-1”1
. H2 s. v3 F: p/ [各配置项含义:6 k. |% ~3 v2 n2 Q. d
cluster.name 集群名称,各节点配成相同的集群名称。
Y; q9 j$ S( anode.name 节点名称,各节点配置不同。 Q0 w" u+ W5 J# b
node.master 指示某个节点是否符合成为主节点的条件。; p8 ^1 {. H' S+ y/ h& ` e
node.data 指示节点是否为数据节点。数据节点包含并管理索引的一部分,1 x- j; ?1 {+ i6 ]4 I- V
path.data 数据存储目录。: ?9 j; g/ m- V- Y
path.logs 日志存储目录。
* e" b; Q3 h' P/ J# k4 n7 T* \8 wbootstrap.memory lock 内存锁定,是否禁用交换- V# o0 Y4 l& f3 B" u
bootstrap.system call filter 系统调用过滤器。
& l( j. A2 H# P. ^, c4 Ynetwork.host 绑定节点IP。( t& h0 p% T; j: ]& h
http.port 端囗。
z8 p' k9 Q& f* i& K6 ]; j `: r' W4 \) L; s6 a
2 ?7 n" u: l0 v4 i. g5 W; l7 q/ c( F1 k9 j7 H o3 n
[root@it-elassearch-2 ~]# tar -zxvf elasticsearch-8.15.0-linux-x86_64.tar.gz -C /data/elasticsearch/elastic-cluster2// I% b6 c: j% |" P9 e
: G- Q6 U- q% v2 n% D
: t; U+ r& E$ v! H, v
' s5 K% H1 w! [
启动集群:
/ O- y3 l2 F+ N. g) x
$ H: i# I2 a' Y0 g( N. _0 l前提:设置好系统配置和JVM堆内存 \: c: c5 r1 t/ A( n9 g
' P- N6 y- `+ r4 K6 W创建elastic的数据和日志存放目录,如果是测试环境无所谓,如果是生成环境一定要单独设置数据和日志存放的路径,因为ES可能因为升级或其它原因把原有的数据清理或丢失等因素" X5 A/ @" P9 j7 F
5 W$ @4 p$ z% G
( ?4 H7 i6 K4 {1 N& u
7 B% t+ v$ o1 |; f+ O. ^ mkdir /data/elasticsearch/elastic-cluster2/elasticsearch-8.15.0/data
: P; ]) Y: f1 u7 m! c6 dmkdir /data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/data
$ Y8 a: j! \( Y7 J) ^! B# o+ p: Y5 S% t
9 n0 _( D6 v% X/ j6 x, I配置文件属组权限,并启动. L& w- t7 ]1 { _2 w
[root@it-elassearch elasticsearch]# chown -R es:es elastic-cluster1/
+ P/ D4 {: h6 \1 O& }6 K[root@it-elassearch-2 elasticsearch]# chown -R es:es elastic-cluster2/
1 \9 g, r @. n- w( K& \" V6 p7 i( V) j1 _9 U4 ~7 k5 s! _6 {
; T! y/ }, F3 p- i, c) X$ M+ M
8 L5 ?6 _7 @$ U I- E如果添加鉴权配置请按照此处配置,不配置即可略过:! R/ P9 j9 T* z$ j* t4 g4 I
& h6 T! T5 p% }
" l9 k2 [: ?7 h, G" h0 q, v生成密匙:9 l. y- ]+ P! ~7 u2 ^# R
[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-certutil ca1 [, A8 d' C6 y9 C. g8 T
This tool assists you in the generation of X.509 certificates and certificate
J/ i# f6 e8 R- A4 A) A% g& Asigning requests for use with SSL/TLS in the Elastic stack.( r- l5 Y. g' s( s1 d" [, p h
; y6 E R. e9 V0 {4 F& ]5 i- D4 |* w
$ n4 _/ n3 ]9 X8 _The 'ca' mode generates a new 'certificate authority') u: C% h9 V# [' e+ G, L& Z
This will create a new X.509 certificate and private key that can be used
' k/ w( S) s8 W7 |to sign certificate when running in 'cert' mode.
/ O" M. h. b% ?" I3 ~0 l- @
4 R0 h+ {6 O: O& @ R) p( p+ r& ^; W4 a* p
Use the 'ca-dn' option if you wish to configure the 'distinguished name'
! j/ s2 x1 I5 z& |7 a( | gof the certificate authority
; ~3 e& h+ M* o/ z# |7 I* ?: s. }5 t$ r6 x; S9 f; ^2 a
# V# M' f* J, o) n4 {By default the 'ca' mode produces a single PKCS#12 output file which holds:
: Z7 c2 m' o; F+ E6 G4 O, b * The CA certificate
5 N% P' W2 J( l0 t: w' Y7 S2 [ * The CA's private key1 [) g: T6 p; h& K3 p
$ C1 v6 b. S5 D, f( s
; v/ b" c/ v9 W0 F
If you elect to generate PEM format certificates (the -pem option), then the output will
. ~4 N9 l, b9 v* ebe a zip file containing individual files for the CA certificate and private key$ ^: r* C, B* L9 \
0 a; a b" F! u; Q) c7 L8 W4 J; R
Please enter the desired output file [elastic-stack-ca.p12]: : {5 o; J i1 ^3 c% P
Enter password for elastic-stack-ca.p12 :
) ~) m5 y" p- t! b9 ]. r6 A h) [9 Z8 }- p* g! g
/ B9 q; c* A& C8 d- E
6 }6 H- j! C( g# J6 J
5 z2 t- t: D! s* `
% Z$ l# o% t& \) e2 i[es@it-elassearch-2 elasticsearch-8.15.0]$ ./bin/elasticsearch-certutil ca
& X6 C1 J# Q/ k2 f0 T, p3 j- wThis tool assists you in the generation of X.509 certificates and certificate, W7 v* [ Y$ {
signing requests for use with SSL/TLS in the Elastic stack.. Q2 ~+ S) u& k! R$ z
# L; l4 I4 L6 t+ R2 h2 \
4 N" w7 e/ f D. y* Z
The 'ca' mode generates a new 'certificate authority'
. {- K0 q: d/ m" fThis will create a new X.509 certificate and private key that can be used( e! H: N e& U" l
to sign certificate when running in 'cert' mode.
1 ?# i5 Z6 M) i# `. n6 }) N& v3 k( D0 Y! E7 i$ a# C y
) Y8 G; Y1 L8 e% N S" uUse the 'ca-dn' option if you wish to configure the 'distinguished name'9 f% a4 g7 H* D/ O
of the certificate authority _ z. q9 h- _ e6 {9 P
: Y+ l) M3 [8 o1 u9 B# b2 U
* z! n/ L1 j$ U" H6 G
By default the 'ca' mode produces a single PKCS#12 output file which holds:6 x8 s" M/ [9 H( Y
* The CA certificate4 H; U+ l/ e3 a. [2 ]
* The CA's private key3 w5 Y5 E; ~& i* B
4 w; S; r- i1 V" ^6 ]2 Z
/ R8 [, Y6 ^8 z- T* RIf you elect to generate PEM format certificates (the -pem option), then the output will; r$ w& }. z; P$ H$ s% c
be a zip file containing individual files for the CA certificate and private key
0 A/ h% x$ X. l. I% f& n" z
+ l+ b1 \* D9 k- r/ I( i1 _1 F6 U8 q% c; q7 b
Please enter the desired output file [elastic-stack-ca.p12]:
2 R- S$ a% c) V3 ?8 {: BEnter password for elastic-stack-ca.p12 :
5 Y6 ^7 {" }; X; n1 }. p, w) f/ ~6 j
9 {0 ?0 K, e2 k' r4 j6 F; M
# p$ L% T# i1 r* H
1 p4 I* W( I+ c3 a; y5 v: E, e3 E% v& U
0 s" Y8 N' p: K) |3 r8 c
& I1 b k9 L4 x' ^+ G& i6 X2 Z6 F0 a1 W0 L, O0 {
$ V7 s5 S: |: U r& F8 L. F$ f$ e
3 z4 j+ ?. j0 |. F& u8 y mkdir -p ./config/certificates/& b, {* H4 i, e# i9 F
. Q j+ {9 j. S: c; L3 D0 L5 p$ H& c5 H; b4 M# ]# U% S
8 r6 x! h T" J
4 ~6 }: {4 Z2 |& xhttp.cors.enabled: true
3 ?$ H6 @) a6 ^/ O1 a6 Ihttp.cors.allow-origin: "*"& ~4 C5 o0 p5 s& x/ N
http.cors.allow-headers: Authorization,X-Requested-With,Content-Type,Content-Length8 y7 j4 g$ E1 u" i+ t
8 e4 z$ K8 m; `; k8 V4 C
. t1 p4 d8 O2 Z& A3 S, Nxpack.security.enabled: true1 U, n" j$ a3 J5 U# R" L* F
xpack.security.authc.accept_default_password: true4 Y& J, z6 |! w+ R A2 u" r9 v
xpack.security.transport.ssl.enabled: true
8 ?; [+ U, l. X* Z3 g1 y8 p* Q* Ixpack.security.transport.ssl.verification_mode: certificate
6 d! a" i$ h( {8 ^' dxpack.security.transport.ssl.keystore.path: /config/certificates/elastic-certificates.p12$ ^4 o8 X* W2 z' s& {2 w& Y
xpack.security.transport.ssl.truststore.path: /config/certificates/elastic-certificates.p12
2 l" V* P# j6 w, @) I( V: c" j, K. o7 Y/ F* m* d
& M$ m2 C/ P, N4 j! ~& m" G7 {+ D6 ^# T, |' y1 j
0 q6 K. h6 Y" p1 d4 W0 s: C2 |* @& q$ i; V
$ G: `7 D' Q1 G, x, j7 [$ o加权一样需要切换到es账号:
8 y9 C# ]5 n7 _ A/ G2 c, A% W) z0 a: b9 E
在各个节点上添加密码:0 L4 w1 Q# z& C) |1 n5 ]- h) t
7 w" ~: L2 z0 S7 l$ B, s$ g
[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password
0 e3 K0 Z" {! Q/ }% u4 F0 z[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password : _6 u- K7 i% I8 U* x
Enter value for xpack.security.transport.ssl.keystore.secure_password: 2 g: m+ R9 [- X/ s
- j- h: \: p/ g% c( W4 n7 a: |# k0 r/ H9 ?7 \6 C p
[es@it-elassearch-2 elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password 1 K6 A7 k1 M: Q8 s& t; P1 B
Enter value for xpack.security.transport.ssl.keystore.secure_password: 6 G* S% @3 j4 a
输入密码:第一次输入密码
6 v' l- x, j- a- |4 B% _8 I% b6 N% `% j$ O5 F' F
[es@it-elassearch elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password. V; l) j- b* Y
Enter value for xpack.security.transport.ssl.truststore.secure_password: 1 {# s& q+ p/ X* r
9 g) X* E4 [3 ^0 V1 f) ^8 n7 s; X
[es@it-elassearch-2 elasticsearch-8.15.0]$ ./bin/elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password
3 d9 a. h3 k8 E" R0 o2 XEnter value for xpack.security.transport.ssl.truststore.secure_password: ' @. n D1 w% c- j6 V
( T9 M! t3 b9 f; @: T7 ]4 Z
" e% u0 B+ H- b q
输入密码: 第二次输入上面的密码:
/ d7 m2 g) ?3 J+ B. n5 V. V
( x% v) T0 P$ h( u6 \, i) l6 t- K9 H3 K: [- [: ?" Q
创建文件夹: mkdir -p certificates/# _" s# B9 f* a6 v. ~' G
6 k. t) r( I% ]: ?, i( l6 r) z8 o! n' e N' g8 f9 L4 o& W
z5 J7 u( a( D
接下来和没有做鉴权的一样,逐个启动集群:; T: i0 f2 J% o% y& s4 `5 X( u' p
9 R5 d3 }2 A: J! a; B
+ b# E- Q* p7 e) l( \ h4 {. u5 q, h3 l1 K' J5 y" X
切换到其它用户,root用户不能启动ES:su es
9 p: i! c) t Q0 l0 Q+ K
4 x; [, l& J9 |1 v9 X( R# s% Y6 {9 L' p; ?; K3 L
6 T# G/ c- F. {( k5 `. U
bin/elasticsearch -d, i2 o, s# p( m- K
[es@it-elassearch elasticsearch-8.15.0]$ bin/elasticsearch -d
4 ~' {; e; ^/ N) c( Z7 m5 n5 n8 S8 q" F0 h
8 C5 p& x* v5 [' \( r* p! _1 B[es@it-elassearch elasticsearch-8.15.0]$ bin/elasticsearch -d, Z; l! r* z4 ^
Oct 24, 2024 5:33:34 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>, U, H* u/ M+ ~/ d( e/ [5 ^; E
WARNING: COMPAT locale provider will be removed in a future release( a4 S# r, F& l
[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
) d, u6 I6 a1 c2 E6 F+ `4 X9 c[2024-10-24T17:33:40,727][INFO ][o.e.n.NativeAccess ] [it-elassearch] Using [jdk] native provider and native methods for [Linux]
2 w) p$ s7 V7 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: w0 N. f( H( s3 I$ l" _
[2024-10-24T17:33:42,185][INFO ][o.e.n.Node ] [it-elassearch] version[8.15.0], pid[8520], build[tar/1a77947f34deddb41af25e6f0ddb8e830159c179/2024-08-05T10:05:34.233336849Z], OS[Linux/3.10.0-1160.24.1.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/22.0.1/22.0.1+8-16]
+ k1 E/ W5 [. V& Y/ w[2024-10-24T17:33:42,186][INFO ][o.e.n.Node ] [it-elassearch] JVM home [/data/elasticsearch/elastic-cluster1/elasticsearch-8.15.0/jdk], using bundled JDK [true]
8 ^0 ?/ k7 Z* d4 _7 {[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]
, z* Y& ~: }3 @: Q1 t. Q% a[2024-10-24T17:33:42,187][INFO ][o.e.n.Node ] [it-elassearch] Default Locale [en_US]
7 O: O, Z v6 t9 X# r[2024-10-24T17:33:46,616][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-url]" _% U. ~) F* v9 H
[2024-10-24T17:33:46,616][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [rest-root]
$ ] x. q& ^7 e[2024-10-24T17:33:46,616][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-core]% s: p0 ` S8 ^
[2024-10-24T17:33:46,617][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-redact]; R; D2 E n/ ^9 e# ~: _! ]) h
[2024-10-24T17:33:46,617][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-user-agent]# N. I' H/ F9 I' \: [+ m
[2024-10-24T17:33:46,617][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-async-search]
3 Y8 e S/ w. A( V& L* }[2024-10-24T17:33:46,618][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-monitoring]' D A/ v/ R* K/ r# G7 ]
[2024-10-24T17:33:46,618][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-s3]
5 C( t. A6 B5 U# _- R9 h0 o$ e[2024-10-24T17:33:46,618][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-esql-core]; u* |! r9 Y3 } @' u* K$ R
[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-analytics]" N$ T- f y1 _9 n+ N" ^
[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ent-search]
: [4 a1 ?* @! q& B7 C7 g[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-autoscaling]
4 Z, I6 \; d b/ r[2024-10-24T17:33:46,619][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [lang-painless]
: W" h6 A5 C$ j* T[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ml]5 L! q6 H; K4 B! T, }: S6 d! ?
[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [legacy-geo]( g+ g/ {1 ]2 m7 y- ]
[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [lang-mustache]7 B8 {/ ?4 D9 q; k
[2024-10-24T17:33:46,620][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ql]
& {9 u. [. t3 M+ X2 q[2024-10-24T17:33:46,621][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [rank-rrf]
5 k3 a) S0 Y" u$ W. s( F[2024-10-24T17:33:46,621][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [analysis-common]$ ^& d( Q) k: E: E, Z7 a3 ], N
[2024-10-24T17:33:46,621][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [health-shards-availability]/ ^- @$ Y4 X( Z# v% U2 S1 Q
[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [transport-netty4]5 n7 ]! H8 O+ F6 }: s; q2 R
[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [aggregations]
, u s. q7 b7 t7 {$ T[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-common]
9 m3 X& s# g% a[2024-10-24T17:33:46,622][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-identity-provider]; p8 N- D( \$ p% @# ?
[2024-10-24T17:33:46,623][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [frozen-indices]8 S0 `) N) K6 r m; Y
[2024-10-24T17:33:46,623][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-text-structure]6 z. Y. o* K/ b- o
[2024-10-24T17:33:46,623][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-shutdown]. h9 v- K3 x6 Z/ \+ F. g
[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [snapshot-repo-test-kit]
; c, R; Z' d" G+ X7 S9 ][2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ml-package-loader]
/ w6 L, [$ _0 Z: ~7 j' a$ z* v[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [kibana]/ l$ `. W1 v+ b' d! C- F0 P
[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [constant-keyword]
: I$ q0 L. o+ @5 R[2024-10-24T17:33:46,624][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-logstash]
9 Z7 A2 L8 I1 e6 t) e1 Z' [[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-graph]
) B1 K d: z) k$ h( ][2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ccr]5 \! S- _2 K ^: G9 V, M" }) q: _, e
[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-esql]
1 J9 N+ f+ {0 y4 K" V" `) Z[2024-10-24T17:33:46,625][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [parent-join]% E; w# Q# J3 I
[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [counted-keyword]
% O0 u L! }( K5 Z+ w, ?# I[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-enrich]
; T% T2 m. H a" b7 s9 T7 t[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repositories-metering-api]
2 @. o! f+ R, i& x( h* {[2024-10-24T17:33:46,626][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [transform]: k3 g" S" o" g. k. e
[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-azure]8 b8 I v k$ }" x: {5 K1 l
[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [repository-gcs]1 h- A7 L! Q4 V* M$ K
[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [spatial]# h; ^5 z; y1 ^$ R; ~' s8 C
[2024-10-24T17:33:46,627][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [mapper-version]
; z* k S# p) \/ ^ r" _& a. T+ l& X[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [mapper-extras], M7 ^4 h B' i5 }- F( c; |0 J- I2 x" [
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [apm]5 R& }! u$ Z( {7 N5 x
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-rollup]# K' ^6 ] r2 S* Z& ^. ~
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [percolator]: I% B" U" T, r4 U0 x
[2024-10-24T17:33:46,628][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-stack]
9 W: ^6 Y# s; E! \8 B: W- |1 L: C[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [data-streams]
5 W" G- ~9 j6 w[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [reindex]0 r( t p; J& g: w' Z% f
[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [rank-eval]) H& `1 f4 u2 {0 m2 {4 Z
[2024-10-24T17:33:46,629][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-security]
1 E" R7 g/ K U& `7 u0 M[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [blob-cache]( B: ]' S Y) b4 A$ a% r
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [searchable-snapshots]& X, W! S* f+ j7 e3 K
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-slm]5 ?) X4 v: O& Z6 V
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-geoip-enterprise-downloader]" K) b# |4 w4 B: a1 _
[2024-10-24T17:33:46,630][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [snapshot-based-recoveries]
9 M: b% f6 o+ x6 [6 |. Y0 U9 h[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-watcher]7 H, s% d" J: [6 ]4 i( r
[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [old-lucene-versions]
6 S( ]0 z$ I) Y1 O% O& s[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-ilm]. E: H2 ]3 s; K4 P# d2 D. z
[2024-10-24T17:33:46,631][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-voting-only-node]0 P! o5 @# I/ T' p+ ~' {
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-inference]1 O1 K3 }) Q# s9 R) [" q& y( Y
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-deprecation]5 i9 [0 l. k; C# F, }& Z/ A# E& \
[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-fleet]
" b; v) s9 P5 w: h1 v[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-profiling]
) a# E, i4 g: h[2024-10-24T17:33:46,632][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-aggregate-metric], X9 J5 s9 C& H1 |( H7 I( d; z
[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-downsample]
& h2 @( D# A8 i, T$ {[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-geoip]/ _1 h2 D5 c6 G' y6 F8 t6 h t# A
[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-write-load-forecaster]& L% G% i9 ?% b" \4 ^* p9 F: H C
[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [search-business-rules]
$ P. `" j, N! [[2024-10-24T17:33:46,633][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [wildcard]& s$ h$ P3 h% j5 B; \) a; c. H
[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [ingest-attachment]6 r2 G' U+ C, i$ z
[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-apm-data]
2 s y9 w- Q3 E! Z; x( U/ t7 o[2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-sql]
6 A1 `7 Q4 E, g! ^9 ]5 I3 f5 [& ][2024-10-24T17:33:46,634][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [unsigned-long]9 E- V: Q/ m$ x
[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-async]
/ f& U* S- q+ k' _+ u[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [runtime-fields-common]6 @: O& A( B/ r. t: J" }0 B
[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [vector-tile]& B. F5 w* t7 \+ v. j4 }+ b; b$ L
[2024-10-24T17:33:46,635][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [lang-expression]
: T: F( h7 Z$ @+ s[2024-10-24T17:33:46,636][INFO ][o.e.p.PluginsService ] [it-elassearch] loaded module [x-pack-eql]* E2 a/ \( p" W: j& a6 F5 g5 d
[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]5 {: _: f' r1 n& U3 B$ H
[2024-10-24T17:33:48,162][INFO ][o.e.e.NodeEnvironment ] [it-elassearch] heap size [4gb], compressed ordinary object pointers [true]( Y+ N5 L9 N/ I9 ~. n
[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]& F7 e% ^* g3 i0 T( Z8 T3 e& V
[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]
5 g9 ?2 e; W7 j# p# s8 U7 j[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]5 K' L! T0 |/ r1 H
[2024-10-24T17:33:54,117][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [it-elassearch] [controller/8543] [Main.cc@123] controller (64 bit): Version 8.15.0 (Build 64f00009177815) Copyright (c) 2024 Elasticsearch BV7 ^* o" A$ F# J+ T5 {* A( G. S
[2024-10-24T17:33:54,499][INFO ][o.e.t.a.APM ] [it-elassearch] Sending apm metrics is disabled. Y L# j) H4 o
[2024-10-24T17:33:54,500][INFO ][o.e.t.a.APM ] [it-elassearch] Sending apm tracing is disabled
& c" |9 Y. Q. u6 R+ G[2024-10-24T17:33:54,544][INFO ][o.e.x.s.Security ] [it-elassearch] Security is disabled4 t) p4 }% X! d
[2024-10-24T17:33:54,846][INFO ][o.e.x.w.Watcher ] [it-elassearch] Watcher initialized components at 2024-10-24T09:33:54.846Z
3 X$ I I4 P8 T$ v% Z% k[2024-10-24T17:33:54,936][INFO ][o.e.x.p.ProfilingPlugin ] [it-elassearch] Profiling is enabled1 y* \/ _2 n/ L3 \6 Z
[2024-10-24T17:33:54,957][INFO ][o.e.x.p.ProfilingPlugin ] [it-elassearch] profiling index templates will not be installed or reinstalled- V; P& U) S9 V7 a
[2024-10-24T17:33:54,964][INFO ][o.e.x.a.APMPlugin ] [it-elassearch] APM ingest plugin is enabled
+ y4 y; D2 n' q[2024-10-24T17:33:55,002][INFO ][o.e.x.a.APMIndexTemplateRegistry] [it-elassearch] APM index template registry is enabled
9 ~1 ]# D6 k. A2 F( b i[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}]
! h" G5 _& P' \, d y- q[2024-10-24T17:33:55,633][INFO ][o.e.d.DiscoveryModule ] [it-elassearch] using discovery type [multi-node] and seed hosts providers [settings]
: J3 [. O1 Q) W5 o* a[2024-10-24T17:33:57,137][INFO ][o.e.n.Node ] [it-elassearch] initialized
6 ~' d' l! U: h8 W[2024-10-24T17:33:57,138][INFO ][o.e.n.Node ] [it-elassearch] starting ...
" w; T5 o7 k7 e, o[2024-10-24T17:33:57,190][INFO ][o.e.x.s.c.f.PersistentCache] [it-elassearch] persistent cache index loaded8 `: Y9 d+ f7 W( E C
[2024-10-24T17:33:57,191][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [it-elassearch] deprecation component started
: g$ R) y1 O$ z3 \4 f[2024-10-24T17:33:57,334][INFO ][o.e.t.TransportService ] [it-elassearch] publish_address {172.24.110.125:9300}, bound_addresses {[::]:9300}- m8 q |% R0 Z
[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/ B+ _9 e q0 b7 N% k
[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]
b7 y8 d1 G" I" p2 Q[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
8 H; Z( K# v; t: ?7 i0 F) y[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
: P" S; G \2 O[2024-10-24T17:34:27,590][WARN ][o.e.n.Node ] [it-elassearch] timed out while waiting for initial discovery state - timeout: 30s
5 p" g P% l1 R; |1 O[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.html2 w+ P; V& [! E3 I
[2024-10-24T17:34:27,609][INFO ][o.e.h.AbstractHttpServerTransport] [it-elassearch] publish_address {172.24.110.125:9200}, bound_addresses {[::]:9200}
' w) Y' d* o$ X% u[2024-10-24T17:34:27,637][INFO ][o.e.n.Node ] [it-elassearch] started {it-elassearch}{1TZ7_AjMQBm4NUw73Dr9eQ}{wrEeokvZTM-NfqrlNd_FSQ}{it-elassearch}{172.24.110.125}{172.24.110.125:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}{ml.max_jvm_size=4294967296, ml.config_version=12.0.0, xpack.installed=true, transform.config_version=10.0.0, ml.machine_memory=8200949760, ml.allocated_processors=4, ml.allocated_processors_double=4.0}
) Z( ?; |) a7 } q' f[es@it-elassearch elasticsearch-8.15.0]$ netstat -ntlp
V- d- I2 F" j8 d4 I3 l( O(Not all processes could be identified, non-owned process info3 |/ S- |, ]2 Q" |; i, A
will not be shown, you would have to be root to see it all.)
5 }3 `5 Y. V; `% sActive Internet connections (only servers)' e, L& Y" p) z9 s
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name / w) N* f( a0 K7 D% _' A( Z
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
- g* i, g/ b" ^/ Ytcp 0 0 0.0.0.0:60028 0.0.0.0:* LISTEN - + i0 ~) }& J3 D' z4 [
tcp6 0 0 :::9300 :::* LISTEN 8520/java / H# c6 V* C& n* o
tcp6 0 0 ::1:25 :::* LISTEN -
: p4 @& g2 m4 ktcp6 0 0 :::60028 :::* LISTEN - 0 ]9 ~& K0 n+ Q6 {0 T
tcp6 0 0 :::9200 :::* LISTEN 8520/java 1 d F V; p. U. e/ j" }
+ e2 |# H2 C# S! M1 z% o# w8 R+ {% M9 N& o- h9 ?; s
6 h% z, Y2 E- L$ H5 s
2 [8 Z4 s/ r; O0 g$ k
& l P, |3 M$ q) ^: @+ t. J
: _) Z' N+ g# D$ H6 l4 J7 } ^. S5 D/ _; k1 U# f
; J7 O. t- Q7 V5 U+ P
|
|