(一) 初识ElasticSearch

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/kingo0/article/details/82051703

全文搜索属于最常见的需求,开源的 Elasticsearch (以下简称 ES)是目前全文搜索引擎的首选。

它可以快速地储存、搜索和分析海量数据。维基百科、Stack Overflow、Github 都采用它。详细的框架介绍信息这里不再赘述,有兴趣的可以参考官网说明。下面进入正题

1.LINUX下JDK环境部署

   由于ES需要依赖JAVA环境,这里以1.8版本为例

yum install -y java-1.8.0-openjdk-devel.x86_64

  JDK环境查看

[root@localhost bin]# java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

 

2.ElasticSearch安装

   2.1安装包下载

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0.tar.gz

   2.2文件解压

tar -zxvf elasticsearch-6.0.0.tar.gz
elasticsearch-6.0.0/
elasticsearch-6.0.0/lib/
elasticsearch-6.0.0/lib/elasticsearch-6.0.0.jar
elasticsearch-6.0.0/lib/lucene-core-7.0.1.jar
elasticsearch-6.0.0/lib/lucene-analyzers-common-7.0.1.jar
elasticsearch-6.0.0/lib/lucene-backward-codecs-7.0.1.jar
elasticsearch-6.0.0/lib/lucene-grouping-7.0.1.jar
elasticsearch-6.0.0/lib/lucene-highlighter-7.0.1.jar
elasticsearch-6.0.0/lib/lucene-join-7.0.1.jar

.

.

.

 2.3 ES目录结构

[root@localhost elasticsearch-6.0.0]# ls
bin  
config  
lib  
LICENSE.txt  
logs  
modules  
NOTICE.txt  
plugins  
README.textile

很好看来一切顺利,好开心^_^,奈何。。。天不遂人愿。。。。

3.ES启动报错啦。。。

[root@localhost elasticsearch-6.0.0]# ./bin/elasticsearch
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
[2018-08-24T22:29:04,128][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:134) ~[elasticsearch-6.0.0.jar:6.0.0]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:121) ~[elasticsearch-6.0.0.jar:6.0.0]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:69) ~[elasticsearch-6.0.0.jar:6.0.0]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) ~[elasticsearch-6.0.0.jar:6.0.0]
	at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-6.0.0.jar:6.0.0]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.0.0.jar:6.0.0]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.0.0.jar:6.0.0]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
	at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:104) ~[elasticsearch-6.0.0.jar:6.0.0]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:171) ~[elasticsearch-6.0.0.jar:6.0.0]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:322) ~[elasticsearch-6.0.0.jar:6.0.0]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:130) ~[elasticsearch-6.0.0.jar:6.0.0]
	... 6 more

4.淡定不慌,看上去是权限报错了,不允许root执行,问题不大

5.创建一个临时用户看看tester

[root@localhost elasticsearch-6.0.0]# useradd tester
[root@localhost elasticsearch-6.0.0]# passwd tester
Changing password for user tester.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfully.

6.临时用户有了,得给他分配个权限看看了

[root@localhost elasticsearch-6.0.0]# chown -R tester ./*

7.切换用户tester,你不切换执行个卵,好吧我就忘记切换了。。。

su tester

8.再来一次,成功啦

[tester@localhost elasticsearch]$ ./elasticsearch-6.0.0/bin/elasticsearch
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
[2018-08-24T22:38:26,268][INFO ][o.e.n.Node               ] [] initializing ...
[2018-08-24T22:38:26,524][INFO ][o.e.e.NodeEnvironment    ] [yi_i_0m] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [16.4gb], net total_space [17.6gb], types [rootfs]
[2018-08-24T22:38:26,525][INFO ][o.e.e.NodeEnvironment    ] [yi_i_0m] heap size [1015.6mb], compressed ordinary object pointers [true]
[2018-08-24T22:38:26,531][INFO ][o.e.n.Node               ] node name [yi_i_0m] derived from node ID [yi_i_0mFQ4iQxb8fB4mO4A]; set [node.name] to override
[2018-08-24T22:38:26,531][INFO ][o.e.n.Node               ] version[6.0.0], pid[3003], build[8f0685b/2017-11-10T18:41:22.859Z], OS[Linux/3.10.0-514.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_181/25.181-b13]
[2018-08-24T22:38:26,532][INFO ][o.e.n.Node               ] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -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, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/apps/elasticsearch/elasticsearch-6.0.0, -Des.path.conf=/apps/elasticsearch/elasticsearch-6.0.0/config]
[2018-08-24T22:38:30,726][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [aggs-matrix-stats]
[2018-08-24T22:38:30,726][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [analysis-common]
[2018-08-24T22:38:30,727][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [ingest-common]
[2018-08-24T22:38:30,727][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [lang-expression]
[2018-08-24T22:38:30,727][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [lang-mustache]
[2018-08-24T22:38:30,727][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [lang-painless]
[2018-08-24T22:38:30,727][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [parent-join]
[2018-08-24T22:38:30,727][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [percolator]
[2018-08-24T22:38:30,727][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [reindex]
[2018-08-24T22:38:30,727][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [repository-url]
[2018-08-24T22:38:30,727][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [transport-netty4]
[2018-08-24T22:38:30,728][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [tribe]
[2018-08-24T22:38:30,728][INFO ][o.e.p.PluginsService     ] [yi_i_0m] no plugins loaded
[2018-08-24T22:38:39,251][INFO ][o.e.d.DiscoveryModule    ] [yi_i_0m] using discovery type [zen]
[2018-08-24T22:38:41,538][INFO ][o.e.n.Node               ] initialized
[2018-08-24T22:38:41,539][INFO ][o.e.n.Node               ] [yi_i_0m] starting ...
[2018-08-24T22:38:42,099][INFO ][o.e.t.TransportService   ] [yi_i_0m] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2018-08-24T22:38:42,134][WARN ][o.e.b.BootstrapChecks    ] [yi_i_0m] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2018-08-24T22:38:42,134][WARN ][o.e.b.BootstrapChecks    ] [yi_i_0m] max number of threads [3829] for user [tester] is too low, increase to at least [4096]
[2018-08-24T22:38:42,135][WARN ][o.e.b.BootstrapChecks    ] [yi_i_0m] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2018-08-24T22:38:45,291][INFO ][o.e.c.s.MasterService    ] [yi_i_0m] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {yi_i_0m}{yi_i_0mFQ4iQxb8fB4mO4A}{VjA6LmwDRwiNEkRA7pt_Ww}{127.0.0.1}{127.0.0.1:9300}
[2018-08-24T22:38:45,317][INFO ][o.e.c.s.ClusterApplierService] [yi_i_0m] new_master {yi_i_0m}{yi_i_0mFQ4iQxb8fB4mO4A}{VjA6LmwDRwiNEkRA7pt_Ww}{127.0.0.1}{127.0.0.1:9300}, reason: apply cluster state (from master [master {yi_i_0m}{yi_i_0mFQ4iQxb8fB4mO4A}{VjA6LmwDRwiNEkRA7pt_Ww}{127.0.0.1}{127.0.0.1:9300} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
[2018-08-24T22:38:45,460][INFO ][o.e.g.GatewayService     ] [yi_i_0m] recovered [0] indices into cluster_state
[2018-08-24T22:38:45,479][INFO ][o.e.h.n.Netty4HttpServerTransport] [yi_i_0m] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2018-08-24T22:38:45,479][INFO ][o.e.n.Node               ] [yi_i_0m] started

9.访问链接看看,验证下结果吧。

明明已经启动成功了为啥访问失败呢,怀疑是防火墙问题,查查看吧。linux时长遇到的问题。

在服务本机访问以下目标路径试试,果然本机是可以访问的,说明服务本身没有问题。

[root@localhost ~]# curl http://127.0.0.1:9200
{
  "name" : "yi_i_0m",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "j_sYQAcTQLGiXLmkH4GZ6g",
  "version" : {
    "number" : "6.0.0",
    "build_hash" : "8f0685b",
    "build_date" : "2017-11-10T18:41:22.859Z",
    "build_snapshot" : false,
    "lucene_version" : "7.0.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

10.关闭防火墙

  1.关闭防火墙  service iptables stop,报错了..service不识别

  2.查看防火墙 firewall -cmd --state,又报错了,淡定不慌,小走位... 

  3.systemctl stop firewalld.service  终于关闭了

[root@localhost sysconfig]# servcie iptables stop
-bash: servcie: command not found
[root@localhost sysconfig]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-08-24 21:00:08 PDT; 1h 52min ago
     Docs: man:firewalld(1)
 Main PID: 526 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─526 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

Aug 24 21:00:06 localhost.localdomain systemd[1]: Starting firewalld - dynami...
Aug 24 21:00:08 localhost.localdomain systemd[1]: Started firewalld - dynamic...
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost sysconfig]# servcie iptables stop
-bash: servcie: command not found
[root@localhost sysconfig]# firewall -cmd --state
-bash: firewall: command not found
[root@localhost sysconfig]# systemctl stop firewalld.service

4. 防火墙打开情况列表查看

    a.firewall-cmd --list-ports  列表为空

   b.firewall-cmd --zone=public --add-port=9200/tcp --permanent 打开9200,成功

   c.然而并没什么乱用,记得要重启服务或者刷新防火墙列表,执行命令,reboot重启

[root@localhost ~]# firewall-cmd --list-ports

[root@localhost ~]# firewall-cmd --zone=public --add-port=9200/tcp --permanent
success
[root@localhost ~]# curl http://192.168.51.129:9200
curl: (7) Failed connect to 192.168.51.129:9200; Connection refused
[root@localhost ~]# curl http://127.0.0.1:9200
{
  "name" : "yi_i_0m",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "j_sYQAcTQLGiXLmkH4GZ6g",
  "version" : {
    "number" : "6.0.0",
    "build_hash" : "8f0685b",
    "build_date" : "2017-11-10T18:41:22.859Z",
    "build_snapshot" : false,
    "lucene_version" : "7.0.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

 

10.悲剧又发生了,服务器重启之后,ES启动报错

  淡定不慌,问题不大,但是这是什么鬼,为啥刚才能成功呢。。。。

[tester@localhost bin]$ ./elasticsearch
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
[2018-08-25T03:27:36,907][INFO ][o.e.n.Node               ] [] initializing ...
[2018-08-25T03:27:37,155][INFO ][o.e.e.NodeEnvironment    ] [yi_i_0m] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [16.4gb], net total_space [17.6gb], types [rootfs]
[2018-08-25T03:27:37,155][INFO ][o.e.e.NodeEnvironment    ] [yi_i_0m] heap size [1015.6mb], compressed ordinary object pointers [true]
[2018-08-25T03:27:37,157][INFO ][o.e.n.Node               ] node name [yi_i_0m] derived from node ID [yi_i_0mFQ4iQxb8fB4mO4A]; set [node.name] to override
[2018-08-25T03:27:37,158][INFO ][o.e.n.Node               ] version[6.0.0], pid[2351], build[8f0685b/2017-11-10T18:41:22.859Z], OS[Linux/3.10.0-514.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_181/25.181-b13]
[2018-08-25T03:27:37,158][INFO ][o.e.n.Node               ] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -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, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/apps/elasticsearch/elasticsearch-6.0.0, -Des.path.conf=/apps/elasticsearch/elasticsearch-6.0.0/config]
[2018-08-25T03:27:40,971][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [aggs-matrix-stats]
[2018-08-25T03:27:40,972][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [analysis-common]
[2018-08-25T03:27:40,973][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [ingest-common]
[2018-08-25T03:27:40,973][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [lang-expression]
[2018-08-25T03:27:40,973][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [lang-mustache]
[2018-08-25T03:27:40,973][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [lang-painless]
[2018-08-25T03:27:40,973][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [parent-join]
[2018-08-25T03:27:40,973][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [percolator]
[2018-08-25T03:27:40,973][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [reindex]
[2018-08-25T03:27:40,974][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [repository-url]
[2018-08-25T03:27:40,974][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [transport-netty4]
[2018-08-25T03:27:40,974][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [tribe]
[2018-08-25T03:27:40,975][INFO ][o.e.p.PluginsService     ] [yi_i_0m] no plugins loaded
[2018-08-25T03:27:47,408][INFO ][o.e.d.DiscoveryModule    ] [yi_i_0m] using discovery type [zen]
[2018-08-25T03:27:49,591][INFO ][o.e.n.Node               ] initialized
[2018-08-25T03:27:49,591][INFO ][o.e.n.Node               ] [yi_i_0m] starting ...
[2018-08-25T03:27:49,923][INFO ][o.e.t.TransportService   ] [yi_i_0m] publish_address {192.168.51.129:9300}, bound_addresses {192.168.51.129:9300}
[2018-08-25T03:27:49,967][INFO ][o.e.b.BootstrapChecks    ] [yi_i_0m] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [3] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [3829] for user [tester] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2018-08-25T03:27:49,991][INFO ][o.e.n.Node               ] [yi_i_0m] stopping ...
[2018-08-25T03:27:50,100][INFO ][o.e.n.Node               ] [yi_i_0m] stopped
[2018-08-25T03:27:50,100][INFO ][o.e.n.Node               ] [yi_i_0m] closing ...
[2018-08-25T03:27:50,119][INFO ][o.e.n.Node               ] [yi_i_0m] closed

最主要的是下面这部分

ERROR: [3] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [3829] for user [tester] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

1. [1]和[2]问题解决办法

#切换到root用户修改

vim /etc/security/limits.conf

# 在最后面追加下面内容

* soft nofile 65536
* hard nofile 65536
* soft nproc 2048
* hard nproc 4096

2.[3]问题解决办法

#切换root用户修改

vi /etc/sysctl.conf 

#在最下面追加下面内容

vm.max_map_count=262144

并执行命令:

sysctl -p

11.启动ES,大圆满

[tester@localhost elasticsearch-6.0.0]$ ./bin/elasticsearch
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
[2018-08-25T03:50:46,412][INFO ][o.e.n.Node               ] [] initializing ...
[2018-08-25T03:50:46,621][INFO ][o.e.e.NodeEnvironment    ] [yi_i_0m] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [16.4gb], net total_space [17.6gb], types [rootfs]
[2018-08-25T03:50:46,622][INFO ][o.e.e.NodeEnvironment    ] [yi_i_0m] heap size [1015.6mb], compressed ordinary object pointers [true]
[2018-08-25T03:50:46,624][INFO ][o.e.n.Node               ] node name [yi_i_0m] derived from node ID [yi_i_0mFQ4iQxb8fB4mO4A]; set [node.name] to override
[2018-08-25T03:50:46,624][INFO ][o.e.n.Node               ] version[6.0.0], pid[3196], build[8f0685b/2017-11-10T18:41:22.859Z], OS[Linux/3.10.0-514.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_181/25.181-b13]
[2018-08-25T03:50:46,624][INFO ][o.e.n.Node               ] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -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, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/apps/elasticsearch/elasticsearch-6.0.0, -Des.path.conf=/apps/elasticsearch/elasticsearch-6.0.0/config]
[2018-08-25T03:50:50,064][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [aggs-matrix-stats]
[2018-08-25T03:50:50,064][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [analysis-common]
[2018-08-25T03:50:50,064][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [ingest-common]
[2018-08-25T03:50:50,064][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [lang-expression]
[2018-08-25T03:50:50,064][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [lang-mustache]
[2018-08-25T03:50:50,064][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [lang-painless]
[2018-08-25T03:50:50,064][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [parent-join]
[2018-08-25T03:50:50,065][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [percolator]
[2018-08-25T03:50:50,065][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [reindex]
[2018-08-25T03:50:50,065][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [repository-url]
[2018-08-25T03:50:50,065][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [transport-netty4]
[2018-08-25T03:50:50,065][INFO ][o.e.p.PluginsService     ] [yi_i_0m] loaded module [tribe]
[2018-08-25T03:50:50,066][INFO ][o.e.p.PluginsService     ] [yi_i_0m] no plugins loaded
[2018-08-25T03:50:56,394][INFO ][o.e.d.DiscoveryModule    ] [yi_i_0m] using discovery type [zen]
[2018-08-25T03:50:58,512][INFO ][o.e.n.Node               ] initialized
[2018-08-25T03:50:58,513][INFO ][o.e.n.Node               ] [yi_i_0m] starting ...
[2018-08-25T03:50:59,365][INFO ][o.e.t.TransportService   ] [yi_i_0m] publish_address {192.168.51.129:9300}, bound_addresses {192.168.51.129:9300}
[2018-08-25T03:50:59,397][INFO ][o.e.b.BootstrapChecks    ] [yi_i_0m] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2018-08-25T03:51:02,517][INFO ][o.e.c.s.MasterService    ] [yi_i_0m] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {yi_i_0m}{yi_i_0mFQ4iQxb8fB4mO4A}{s44WFRbrRkKm4G3AQeptyg}{192.168.51.129}{192.168.51.129:9300}
[2018-08-25T03:51:02,535][INFO ][o.e.c.s.ClusterApplierService] [yi_i_0m] new_master {yi_i_0m}{yi_i_0mFQ4iQxb8fB4mO4A}{s44WFRbrRkKm4G3AQeptyg}{192.168.51.129}{192.168.51.129:9300}, reason: apply cluster state (from master [master {yi_i_0m}{yi_i_0mFQ4iQxb8fB4mO4A}{s44WFRbrRkKm4G3AQeptyg}{192.168.51.129}{192.168.51.129:9300} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
[2018-08-25T03:51:02,590][INFO ][o.e.h.n.Netty4HttpServerTransport] [yi_i_0m] publish_address {192.168.51.129:9200}, bound_addresses {192.168.51.129:9200}
[2018-08-25T03:51:02,591][INFO ][o.e.n.Node               ] [yi_i_0m] started
[2018-08-25T03:51:02,607][INFO ][o.e.g.GatewayService     ] [yi_i_0m] recovered [0] indices into cluster_state

访问页面: http://192.168.51.129:9200

12.部署完成,后续补充ES落地应用。

 

展开阅读全文

没有更多推荐了,返回首页