ElasticSearch插件安装---Head ,Kopf与Bigdesk
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ElasticSearch插件安装---Head ,Kopf与Bigdesk相关的知识,希望对你有一定的参考价值。
简要说明:elasticsearch安装好后需要安装相应的插件Head ,Kopf与Bigdesk,才能更好的实现各种功能,一下就是这三种插件安装的基本步骤
(一)安装ElasticSearch-Head
ElasticSearch-Head 是一个与Elastic集群(Cluster)相交互的Web前台。
ES-Head的主要作用:
它展现ES集群的拓扑结构,并且可以通过它来进行索引(Index)和节点(Node)级别的操作
它提供一组针对集群的查询API,并将结果以json和表格形式返回
它提供一些快捷菜单,用以展现集群的各种状态
安装方分为:在线安装和手动安装
(1)在线安装
[[email protected] elasticsearch]$ ./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 /usr/local/elasticsearch/plugins/head [[email protected] elasticsearch]$ ls plugins/ head
(2)手动安装
在安装前需要在https://github.com/mobz/elasticsearch-head.git 网站下 先下载文件elasticsearch-head-master.zip(wget https://github.com/mobz/elasticsearch-head/archive/master.zip)
[[email protected] elasticsearch]$ ./plugin install file:///tmp/install/elk/elasticsearch- head-master.zip -> Installing /tmp/install/elk/elasticsearch-head-master.zip... Trying https://download.elastic.co//tmp/tmp-install.zip ... Trying https://search.maven.org/remotecontent?filepath=/tmp/install/tmp-install.zip ... [[email protected] plugins]$ ll /usr/local/elasticsearch/plugins/ drwxrwxr-x. 5 appuser appuser 4096 5月 11 16:31 head
插件head安装完成后的访问地址如下:http://IP:9200/_plugin/head/(本人的访问地址如下:http://192.168.180.3:9200/_plugin/head/)
备注:在2.x之前版本的命令行格式为:
./bin/plugin install --url file:///tmp/install/elk/elasticsearch-head-master.zip
(二)安装ElasticSearch-Kopf
1,介绍:kopf是一个ElasticSearch的管理工具,它提供了对ES集群操作的API。版本支持如下:
2,安装步骤如下:
[[email protected] local]$ ./elasticsearch/bin/plugin install lmenezes/elasticsea rch-kopf -> Installing lmenezes/elasticsearch-kopf... Trying https://github.com/lmenezes/elasticsearch-kopf/archive/master.zip ... Downloading ..............................DONE Verifying https://github.com/lmenezes/elasticsearch-kopf/archive/master.zip checksums if available ... NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify) Installed kopf into /usr/local/elasticsearch/plugins/kopf [[email protected] local]$ ll elasticsearch/plugins/ drwxrwxr-x. 5 appuser appuser 4096 5月 11 16:31 head drwxrwxr-x 8 appuser appuser 4096 5月 16 15:56 kopf
3,访问地址如下:http://IP:9200/_plugin/kopf (http://192.168.180.3:9200/_plugin/kopf/)
(三)安装 ElasticSearch-Bigdesk
1,说明:bigdesk是elasticsearch的一个集群监控工具,可以通过它来查看es集群的各种状态,如:cpu、内存使用情况,索引数据、搜索情况,http连接数等。
2,安装步骤:
安装打开网站https://github.com/lukas-vlcek/bigdesk
[[email protected] elk]$ unzip bigdesk-master.zip Archive: bigdesk-master.zip 4dd7545d4c012bf56def273385a7626cd7d70bc6 creating: bigdesk-master/ extracting: bigdesk-master/.gitignore inflating: bigdesk-master/LICENSE inflating: bigdesk-master/NOTICE inflating: bigdesk-master/README.md inflating: bigdesk-master/bigdesk-1.0.0.jpg inflating: bigdesk-master/bigdesk-2.0.0-SNAPSHOT.jpg creating: bigdesk-master/css/ creating: bigdesk-master/css/CssGrid_2/ inflating: bigdesk-master/css/CssGrid_2/1140.css inflating: bigdesk-master/css/CssGrid_2/License.txt inflating: bigdesk-master/css/CssGrid_2/ie.css inflating: bigdesk-master/css/CssGrid_2/styles.css inflating: bigdesk-master/css/bigdesk.css inflating: bigdesk-master/css/normalize.css inflating: bigdesk-master/css/reset.css creating: bigdesk-master/images/ inflating: bigdesk-master/images/1license.txt extracting: bigdesk-master/images/award_star_gold.png inflating: bigdesk-master/images/es-logo.png extracting: bigdesk-master/images/favicon.png inflating: bigdesk-master/index.html creating: bigdesk-master/js/ inflating: bigdesk-master/js/bigdeskApp.js creating: bigdesk-master/js/charts/ inflating: bigdesk-master/js/charts/bigdesk_charts.js inflating: bigdesk-master/js/charts/common.css creating: bigdesk-master/js/charts/not-available/ inflating: bigdesk-master/js/charts/not-available/not-available-chart.css inflating: bigdesk-master/js/charts/not-available/not-available-chart.js inflating: bigdesk-master/js/charts/not-available/test-not-available-chart.html creating: bigdesk-master/js/charts/pack/ inflating: bigdesk-master/js/charts/pack/pack.css creating: bigdesk-master/js/charts/time-area/ inflating: bigdesk-master/js/charts/time-area/test-time-area-chart.html inflating: bigdesk-master/js/charts/time-area/time-area-chart.css inflating: bigdesk-master/js/charts/time-area/time-area-chart.js creating: bigdesk-master/js/charts/time-series/ inflating: bigdesk-master/js/charts/time-series/test-time-series-chart.html inflating: bigdesk-master/js/charts/time-series/time-series-chart.css inflating: bigdesk-master/js/charts/time-series/time-series-chart.js creating: bigdesk-master/js/lib/ creating: bigdesk-master/js/lib/D3-v2.8.1/ inflating: bigdesk-master/js/lib/D3-v2.8.1/LICENSE inflating: bigdesk-master/js/lib/D3-v2.8.1/d3.v2.min.js creating: bigdesk-master/js/lib/backbone/ inflating: bigdesk-master/js/lib/backbone/LICENSE inflating: bigdesk-master/js/lib/backbone/backbone-min.js creating: bigdesk-master/js/lib/css3-mediaqueries/ inflating: bigdesk-master/js/lib/css3-mediaqueries/License.txt inflating: bigdesk-master/js/lib/css3-mediaqueries/css3-mediaqueries.js creating: bigdesk-master/js/lib/jquery/ inflating: bigdesk-master/js/lib/jquery/jquery-1.7.1.min.js creating: bigdesk-master/js/lib/mustache/ inflating: bigdesk-master/js/lib/mustache/LICENSE inflating: bigdesk-master/js/lib/mustache/mustache.js creating: bigdesk-master/js/lib/tinysort/ inflating: bigdesk-master/js/lib/tinysort/License.txt inflating: bigdesk-master/js/lib/tinysort/jquery.tinysort.min.js creating: bigdesk-master/js/lib/underscore/ inflating: bigdesk-master/js/lib/underscore/LICENSE inflating: bigdesk-master/js/lib/underscore/underscore-min.js creating: bigdesk-master/js/models/ inflating: bigdesk-master/js/models/Hello.js creating: bigdesk-master/js/models/cluster/ inflating: bigdesk-master/js/models/cluster/ClusterHealth.js inflating: bigdesk-master/js/models/cluster/ClusterState.js inflating: bigdesk-master/js/models/cluster/IndicesStatus.js inflating: bigdesk-master/js/models/cluster/NodeInfo.js inflating: bigdesk-master/js/models/cluster/NodesState.js inflating: bigdesk-master/js/models/cluster/NodesStats.js creating: bigdesk-master/js/store/ inflating: bigdesk-master/js/store/BigdeskStore.js creating: bigdesk-master/js/util/ inflating: bigdesk-master/js/util/bigdesk_extension.js creating: bigdesk-master/js/views/ inflating: bigdesk-master/js/views/ClusterHealthView.js inflating: bigdesk-master/js/views/ClusterNodesListView.js inflating: bigdesk-master/js/views/ClusterStateView.js inflating: bigdesk-master/js/views/SelectedClusterNodeView.js inflating: bigdesk-master/js/views/templates.js [[email protected] elk]$ ll 总用量 330504 drwxrwxr-x 5 appuser appuser 4096 4月 27 2015 bigdesk-master -rw-r--r-- 1 root root 337682 5月 16 15:07 bigdesk-master.zip -rw-r--r-- 1 appuser appuser 920168 5月 16 15:28 master.zip drwxr-xr-x 9 appuser appuser 4096 5月 3 00:34 node-v6.10.3 -rw-r--r-- 1 appuser appuser 26762674 5月 16 13:32 node-v6.10.3.tar.gz [[email protected] elk]$ cd bigdesk-master [[email protected] bigdesk-master]$ ls bigdesk-1.0.0.jpg css index.html LICENSE README.md bigdesk-2.0.0-SNAPSHOT.jpg images js NOTICE [[email protected] bigdesk-master]$ mv * /usr/local/elasticsearch/plugins/bigdesk/_site
3,在plugin/bigdesk目录下创建plugins/plugin-descriptor.properties
[[email protected] plugins]$ vim /usr/local/elasticsearch/plugins/plugin-descriptor.prop erties description=head - A web front end for an elastic search cluster version=master site=true name=bigdesk
4,修改BigdeskStore.js 文件在第142行的地方去掉major == 1条件
[[email protected] _site]$ vim /usr/local/elasticsearch/plugins/bigdesk/_site/js/store/B
igdeskStore.js #####在第142行的时候去掉major == 1条件
return ( minor >= 0 && maintenance >= 0 && (build != ‘Beta1‘ || build != ‘Beta2
‘));
// return (major == 1 && minor >= 0 && maintenance >= 0 && (build != ‘Beta1‘ |
| build != ‘Beta2‘));
5,重启elasticsearch 然后访问,访问地址: http:IP:9200/_plugin/bigdesk (http://192.168.180.3:9200/_plugin/bigdesk/)
Bigdesk目前只支持到ElasticSearch 1.3.x
至此ElasticSearch插件安装---Head ,Kopf与Bigdesk插件安装完成。
本文出自 “清风明月” 博客,请务必保留此出处http://liqingbiao.blog.51cto.com/3044896/1926329
以上是关于ElasticSearch插件安装---Head ,Kopf与Bigdesk的主要内容,如果未能解决你的问题,请参考以下文章
Elasticsearch7.8.0版本入门——elasticsearch-head插件的安装(win10环境)