分布式搜索引擎ElasticSearch+Kibana (Marvel插件安装详解)

在安装插件的过程当中,尤为是安装Marvel插件遇到了不少问题,要下载license、Marvel-agent,又要下载安装Kibanahtml

版本需求flask

  • Java 7 or latercentos

  • Elasticsearch 2.4.2浏览器

  • Kibana 4.5bash

  • Elasticsearch License 2.4.2 pluginelasticsearch

系统版本是:CentOS release 6.6ide

1、简介

Marvel插件介绍

Marvel插件:在簇中从每一个节点聚集数据。这个插件必须每一个节点都得安装。 工具

Marvel是Elasticsearch的管理和监控工具,在开发环境下无偿使用。它包含了一个叫作Sense的交互式控制台,使用户方便的经过浏览器直接与Elasticsearch进行交互。ui

kibana 插件介绍

kibana 插件提供了Marvel监控的UI界面。 url

kibana是一个与elasticsearch一块儿工做的开源的分析和可视化的平台。使用kibana能够查询、查看并与存储在elasticsearch索引的数据进行交互操做。使用kibana能执行高级的数据分析,并能以图表、表格和地图的形式查看数据。 

kibana使得理解大容量的数据变得很是容易。它很是简单,基于浏览器的接口使咱们可以快速的建立和分享显示elasticsearch查询结果实时变化的仪表盘。

2、elasticsearch的简单安装

配置更新源 /etc/yum.repos.d/elasticsearch.repo

[elasticsearch-2.x]
name=Elasticsearch repository for2.x packages
baseurl=https://packages.elastic.co/elasticsearch/2.x/centos
gpgcheck=1
gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1

安装elasticsearch

yum install elasticsearch
chkconfig --add elasticsearch

3、安装Marvel agent and License plugins

cd /usr/share/elasticsearch
sudo bin/plugin install license
sudo bin/plugin install marvel-agent

若是源安装很慢,可使用离线安装

bin/plugin install file:///path/to/file/license-2.4.2.zip
bin/plugin install file:///path/to/file/marvel-agent-2.4.2.zip
bin/kibana plugin --install marvel --url file:///path/to/file/marvel-2.3.1.tar.gz

配置marvel.agent.exporters ( elasticsearch.yml)

marvel.agent.exporters:
  id1:
    type: http
    host: ["http://es-mon-1:9200", "http://es-mon2:9200"]

3、kibana 插件安装

导入key

rpm –import https://packages.elastic.co/GPG-KEY-elasticsearch 

配置更新源 /etc/yum.repos.d/kibana.repo

[kibana-4.5]
name=Kibana repository for 4.5.x packages
baseurl=http://packages.elastic.co/kibana/4.5/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1

安装kibana

yum install kibana
chkconfig –add kibana

目前官方最新版是 5.0.1 ,这个要和 ES版本配套(这里有坑)

安装 Marvel (Kibana)

bin/kibana plugin --install elasticsearch/marvel/2.3.1

配置Kibana(kibana.yml)

elasticsearch_url: "http://es-mon-1:9200"

安装Sense(Kibana)

一个flask写的elasticsearch查询工具:支持es查询语言自动提示,es结构自动提示,支持两种主题,支持查询历史记录,支持快捷键。

./bin/kibana plugin --install elastic/sense

 

官方网址

https://www.elastic.co/guide/en/marvel/current/introduction.html

https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html

相关文章
相关标签/搜索