flume+elasticsearch+kibana遇到的坑

來源:互聯網
上載者:User

標籤:highlight   解決   nod   pat   pre   sha   disable   targe   port   

一、elasticsearch單機環境搭建

注:elasticsearch對JDK版本這有嚴格的要求,一般建議安裝Java: openjdk version  "1.8.0_xx"

配置Elasticsearch

tar -zxvf elasticsearch-5.2.2.tar.gzcd elasticsearch-5.2.2

編輯ES的設定檔,修改以下配置項:

cluster.name=es_clusternode.name=node0path.data=/tmp/elasticsearch/datapath.logs=/tmp/elasticsearch/logs#當前hostname或IPnetwork.host=XXXnetwork.port=9200

啟動ES:

./bin/elasticsearch 或nohup ./bin/elasticsearch &

  

 

 

 

 

 

 

 

 

開啟頁面IP:9200,將會看到以下內容:

 或者使用命令:curl http://IP:9200來檢查部署是否成功

叢集安裝請參見:http://yedward.net/post/416.html

安裝過程中碰到的坑如下: http://blog.csdn.net/qq_21387171/article/details/53577115及http://www.dajiangtai.com/community/18136.do

另外在安裝5.2.2版本時碰到一個報錯及處理方式如下:

ERROR: bootstrap checks failedsystem call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

解決措施如下:在elasticsearch.yml中配置bootstrap.system_call_filter為false,注意要在Memory下面:

bootstrap.memory_lock: falsebootstrap.system_call_filter: false

可以查看issues:https://github.com/elastic/elasticsearch/issues/22899

 二、kibana安裝

1、安裝準備

tar -zxvf kibana-5.2.2.tar.gz

2、配置kibana

server.port: 5601 #監聽的連接埠號碼server.host: "172.18.12.XX"  #Kibana服務的IPelasticsearch.url: http://172.18.12.XX:9200  #es伺服器的http訪問路徑kibana.index: .kibana #kibana在es中的輔助索引名稱

3、啟動kibana

./bin/kibana

4、驗證kibana是否安裝成功

檢查http://IP:5601是否可以訪問

flume+elasticsearch+kibana遇到的坑

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.