首页 > 代码库 > Elasticsearch 2.4.1 Bigdesk 插件安装

Elasticsearch 2.4.1 Bigdesk 插件安装


简介:

Elasticsearch 2.4.1 安装 bigdesk

bigdesk 是一个 ES 集群监控工具,可以检测到集群状态、各节点信息,包括 JVM、Thread Pools、OS、Process、Indices 等信息

对性能优化有一定帮助

1、本来这样安装

shell > /usr/share/elasticsearch/bin/plugin install lukas-vlcek/bigdesk

或者

shell > /usr/share/elasticsearch/bin/plugin install lukas-vlcek/bigdesk/2.4.1

但是,bigdesk 最新版 2.5.0 才支持到 Elasticsearch 1.3.x,所以导致安装报错如下:

ERROR: Could not find plugin descriptor plugin-descriptor.properties in plugin zip

2、现在需这样安装

shell > cd /usr/local/src

shell > wget https://github.com/lukas-vlcek/bigdesk/archive/master.zip

shell > unzip master.zip -d /usr/share/elasticsearch/plugins/

shell > cd /usr/share/elasticsearch/bin/plugin; mkdir -p bigdesk/_site

shell > mv bigdesk-master/* bigdesk/_site/; rm -rf bigdesk-master
shell > cd bigdesk; vim plugin-descriptor.properties

description = bigdesk
version = 2.5.0
name = bigdesk
site = true

shell > vim _site/js/store/BigdeskStore.js

142         return (major == 1 && minor >= 0 && maintenance >= 0 && (build != Beta1 || build != Beta2));

改为:

142         return (minor >= 0 && maintenance >= 0 && (build != Beta1 || build != Beta2));

shell > /etc/init.d/elasticsearch restart

shell > /usr/share/elasticsearch/bin/plugin list
Installed plugins in /usr/share/elasticsearch/plugins:
    - head
    - bigdesk

# 访问:http://x.x.x.x:9200/_plugin/bigdesk 即可

# 如果安装过一次,需先 /usr/share/elasticsearch/bin/plugin remove bigdesk

Elasticsearch 2.4.1 Bigdesk 插件安装