分布式搜索引擎ElasticSearch+kibana+marvel+sense安装

来源:http://www.cnblogs.com/chenpingzhao/p/6105606.html

在安装插件的过程中,尤其是安装Marvel插件遇到了很多问题,要下载license、Marvel-agent,又要下载安装Kibana

版本需求

  • Java 7 or later

  • Elasticsearch 2.4.2

  • Kibana 4.5

  • Elasticsearch License 2.4.2 plugin

系统版本是:CentOS release 6.6

一、简介

Marvel插件介绍

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

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

kibana 插件介绍

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

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

kibana使得理解大容量的数据变得非常容易。它非常简单,基于浏览器的接口使我们能够快速的创建和分享显示elasticsearch查询结果实时变化的仪表盘。

二、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

三、安装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"]

三、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


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值