First, Elasticsearch single-machine environment construction
Note : Elasticsearch has strict requirements for JDK versions, it is generally recommended to install java:openjdk version "1.8.0_xx"
Configure Elasticsearch
TAR-ZXVF ELASTICSEARCH-5.2.2.TAR.GZCD elasticsearch-5.2.2
Edit the configuration file for ES and modify the following configuration items:
cluster.name=es_clusternode.name=node0path.data=/tmp/elasticsearch/datapath.logs=/tmp/elasticsearch/logs# Current hostname or ipnetwork.host=xxxnetwork.port=9200
Start es:
./bin/elasticsearch or Nohup. /bin/elasticsearch &
Open the page ip:9200 and you will see the following:
or use the command: Curl http://IP:9200 to check if the deployment was successful
cluster installation See: http://yedward.net/post/416.html
The pits encountered during installation are as follows: http://blog.csdn.net/qq_21387171/article/details/53577115 and Http://www.dajiangtai.com/community/18136.do
In addition, when installing version 5.2.2, an error was encountered and handled as follows:
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
The workaround is as follows: Configure Bootstrap.system_call_filter in Elasticsearch.yml to false, note the following in memory:
Bootstrap.memory_lock:falsebootstrap.system_call_filter:false
can view issues:https://github.com/elastic/elasticsearch/issues/22899
Second, Kibana installation
1. Installation Preparation
TAR-ZXVF kibana-5.2.2.tar.gz
2, Configuration 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. Start Kibana
./bin/kibana
4. Verify that the Kibana is installed successfully
Check if http://IP:5601 can access
Flume+elasticsearch+kibana encounters the Pit