zoukankan      html  css  js  c++  java
  • 分布式搜索引擎ElasticSearch+Kibana (Marvel插件安装详解)

    在安装插件的过程中,尤其是安装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

  • 相关阅读:
    个人博客作业Week2
    个人作业
    软件工程——个人博客作业三
    软工个人博客二
    软件工程——个人博客作业一
    Linux服务器搭建常用环境(一)
    Swift学习之语言基础
    Python——函数的参数
    Python——函数的调用
    Python 导语
  • 原文地址:https://www.cnblogs.com/chenpingzhao/p/6105606.html
Copyright © 2011-2022 走看看