elasticsearch,Install plugin:HEAD
执行安装:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
[elasticme@elk elasticsearch-2.3.4]$ pwd /opt/elasticsearch-2.3.4 [elasticme@elk elasticsearch-2.3.4]$ [elasticme@elk elasticsearch-2.3.4]$ whoami elasticme [elasticme@elk elasticsearch-2.3.4]$ [elasticme@elk elasticsearch-2.3.4]$ ls plugins/ [elasticme@elk elasticsearch-2.3.4]$ [elasticme@elk elasticsearch-2.3.4]$ bin/plugin install mobz/elasticsearch-head -> Installing mobz/elasticsearch-head... Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ... Downloading ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE Verifying https://github.com/mobz/elasticsearch-head/archive/master.zip checksums if available ... NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify) Installed head into /opt/elasticsearch-2.3.4/plugins/head [elasticme@elk elasticsearch-2.3.4]$ [elasticme@elk elasticsearch-2.3.4]$ ls -ltr plugins/ total 4 drwxrwxr-x 5 elasticme elasticme 4096 Jul 18 01:21 head [elasticme@elk elasticsearch-2.3.4]$ [elasticme@elk elasticsearch-2.3.4]$ ls -ltr plugins/head/ total 48 -rw-rw-r-- 1 elasticme elasticme 559 Jul 18 01:21 LICENCE drwxrwxr-x 5 elasticme elasticme 4096 Jul 18 01:21 _site -rw-rw-r-- 1 elasticme elasticme 795 Jul 18 01:21 package.json -rw-rw-r-- 1 elasticme elasticme 1082 Jul 18 01:21 index.html -rw-rw-r-- 1 elasticme elasticme 3482 Jul 18 01:21 grunt_fileSets.js -rw-rw-r-- 1 elasticme elasticme 104 Jul 18 01:21 elasticsearch-head.sublime-project drwxrwxr-x 4 elasticme elasticme 4096 Jul 18 01:21 test -rw-rw-r-- 1 elasticme elasticme 5146 Jul 18 01:21 README.textile -rw-rw-r-- 1 elasticme elasticme 100 Jul 18 01:21 plugin-descriptor.properties drwxrwxr-x 4 elasticme elasticme 4096 Jul 18 01:21 src -rw-rw-r-- 1 elasticme elasticme 2171 Jul 18 01:21 Gruntfile.js [elasticme@elk elasticsearch-2.3.4]$ |
编辑ES配置文件:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
[elasticme@elk elasticsearch-2.3.4]$ pwd /opt/elasticsearch-2.3.4 [elasticme@elk elasticsearch-2.3.4]$ [elasticme@elk elasticsearch-2.3.4]$ cat config/elasticsearch.yml | grep -v ^# [elasticme@elk elasticsearch-2.3.4]$ [elasticme@elk elasticsearch-2.3.4]$ vi config/elasticsearch.yml [elasticme@elk ~]$ cat /opt/elasticsearch-2.3.4/config/elasticsearch.yml | grep -v ^# cluster.name: es_cluster_adamhuan node.name: 192.168.232.151 path.data: /opt/elasticsearch-2.3.4/data path.logs: /opt/elasticsearch-2.3.4/logs network.host: 192.168.232.151 http.port: 9200 [elasticme@elk ~]$ [elasticme@elk ~]$ ls -ltr /opt/elasticsearch-2.3.4/data total 8 drwxrwxr-x 3 elasticme elasticme 4096 Jul 17 19:46 elasticsearch drwxrwxr-x 3 elasticme elasticme 4096 Jul 18 01:30 es_cluster_adamhuan [elasticme@elk ~]$ [elasticme@elk ~]$ ls -ltr /opt/elasticsearch-2.3.4/logs total 12 -rw-r--r-- 1 elasticme elasticme 0 Jul 17 19:42 elasticsearch_deprecation.log -rw-r--r-- 1 elasticme elasticme 0 Jul 17 19:42 elasticsearch_index_indexing_slowlog.log -rw-r--r-- 1 elasticme elasticme 0 Jul 17 19:42 elasticsearch_index_search_slowlog.log -rw-r--r-- 1 elasticme elasticme 3992 Jul 17 22:57 elasticsearch.log.2016-07-17 -rw-rw-r-- 1 elasticme elasticme 441 Jul 18 01:24 elasticsearch.log -rw-rw-r-- 1 elasticme elasticme 0 Jul 18 01:30 es_cluster_adamhuan_deprecation.log -rw-rw-r-- 1 elasticme elasticme 0 Jul 18 01:30 es_cluster_adamhuan_index_indexing_slowlog.log -rw-rw-r-- 1 elasticme elasticme 0 Jul 18 01:30 es_cluster_adamhuan_index_search_slowlog.log -rw-rw-r-- 1 elasticme elasticme 2525 Jul 18 01:34 es_cluster_adamhuan.log [elasticme@elk ~]$ |
启动ES:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[elasticme@elk elasticsearch-2.3.4]$ bin/elasticsearch [2016-07-18 01:46:55,332][WARN ][bootstrap ] unable to install syscall filter: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed [2016-07-18 01:46:55,608][INFO ][node ] [192.168.232.151] version[2.3.4], pid[28187], build[e455fd0/2016-06-30T11:24:31Z] [2016-07-18 01:46:55,608][INFO ][node ] [192.168.232.151] initializing ... [2016-07-18 01:46:56,328][INFO ][plugins ] [192.168.232.151] modules [reindex, lang-expression, lang-groovy], plugins [head], sites [head] [2016-07-18 01:46:56,345][INFO ][env ] [192.168.232.151] using [1] data paths, mounts [[/ (/dev/sda3)]], net usable_space [20.8gb], net total_space [26.1gb], spins? [possibly], types [ext4] [2016-07-18 01:46:56,345][INFO ][env ] [192.168.232.151] heap size [1015.6mb], compressed ordinary object pointers [true] [2016-07-18 01:46:56,345][WARN ][env ] [192.168.232.151] max file descriptors [4096] for elasticsearch process likely too low, consider increasing to at least [65536] [2016-07-18 01:46:59,528][INFO ][node ] [192.168.232.151] initialized [2016-07-18 01:46:59,528][INFO ][node ] [192.168.232.151] starting ... [2016-07-18 01:46:59,712][INFO ][transport ] [192.168.232.151] publish_address {192.168.232.151:9300}, bound_addresses {192.168.232.151:9300} [2016-07-18 01:46:59,723][INFO ][discovery ] [192.168.232.151] es_cluster_adamhuan/963bUKriRoC0E5vLE-oixQ [2016-07-18 01:47:02,854][INFO ][cluster.service ] [192.168.232.151] new_master {192.168.232.151}{963bUKriRoC0E5vLE-oixQ}{192.168.232.151}{192.168.232.151:9300}, reason: zen-disco-join(elected_as_master, [0] joins received) [2016-07-18 01:47:02,890][INFO ][http ] [192.168.232.151] publish_address {192.168.232.151:9200}, bound_addresses {192.168.232.151:9200} [2016-07-18 01:47:02,890][INFO ][node ] [192.168.232.151] started [2016-07-18 01:47:03,023][INFO ][gateway ] [192.168.232.151] recovered [1] indices into cluster_state [2016-07-18 01:47:03,678][INFO ][cluster.routing.allocation] [192.168.232.151] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[logstash-2016.07.18][1]] ...]). |
查看运行:
[crayon[……]