(一) 初識ElasticSearch

全文搜索屬於最常見的需求,開源的 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落地應用。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章