分佈式搜索引擎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

相關文章
相關標籤/搜索