Elasticsearch Linux installation and head plugin

Source: Internet
Author: User

/**

* System Environment: CentOS 7.2 under VM12

* Current installation version: Elasticsearch-2.4.0.tar.gz

*/

Installation and learning can be referred to the official documentation:

1, installation

-l-o https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/ elasticsearch/2.4.0/elasticsearch-2.4.0.tar.gz-xvf elasticsearch-2.4. 0 . tar.gz# into the directory CD Elasticsearch-2.4. 4/bin

Start:

./bin/elasticsearch

The interface to start successfully is:

You can access it at this time by using the browser: http://192.168.1.103:9200

Note: Due to no changes to the Yml file, only the native access

Modify ELASTICSEARCH.YML to make other machines accessible

sudo vim./config/elasticsearch.yml

2, install Head,

elasticsearch-Head is an interface-capable cluster operation and management tool that can be used for fool-type operation of a cluster. You can integrate it into ES (preferred mode) via the plugin, or you can install it as a standalone webapp. Es-Head has three main operations: displaying the topology of the cluster and being able to perform index and node-level operations The search interface is able to query the original JSON or tabular retrieved data in the cluster to quickly access and display the status of the cluster with an input window, Allow any call to restful APIs. This interface contains several options that can be grouped together to produce interesting results; Request method (get, put, post, delete), query JSON data, The node and path support JSON validator supports the ability of a repeating request timer to support using JavaScript expression transform results to collect results over time (using timers), or compare the results of the ability chart to convert results in a simple bar chart (including time series)

1), Direct installation

./bin/plugin Install Mobz/elasticsearch-head

2), Zip package installation

1. https:///github.com/mobz/elasticsearch-head Download zip decompression 2. Establish elasticsearch-2.4.0\plugins\head file 3. Copy the files under the extracted elasticsearch-head-Master folder to head4. Run ES

Installation verification:

3. Install other plugins

$ ${es_home}/bin/plugin--install lukas-vlcek/bigdesk# Installation Complete access: http://localhost:9200/_plugin/ bigdesk/#nodes$ ${es_home}/bin/plugin-install royrusso/elasticsearch-hq# Installation Complete access: http:/ /localhost:9200/_plugin/hq/$ ${es_home}/bin/plugin-install lmenezes/elasticsearch-  kopf# Installation Complete access: http://localhost:9200/_plugin/kopf/#!/cluster

Official Documentation:
Https://github.com/mobz/elasticsearch-head

The error that occurred:

Error 1:

inch " Main " Java.lang.RuntimeException:don't run Elasticsearch as root.    At Org.elasticsearch.bootstrap.Bootstrap.initializeNatives (Bootstrap.java:94)    at Org.elasticsearch.bootstrap.Bootstrap.setup (Bootstrap.java:) at    Org.elasticsearch.bootstrap.Bootstrap.init (Bootstrap.java:286)    at Org.elasticsearch.bootstrap.Elasticsearch.main (Elasticsearch.java:+)

WORKAROUND: Do not log in with the root account

Error 2:

Java.io.FileNotFoundException:/usr/docker/elasticsearch/elasticsearch-2.4. 0/logs/elasticsearch_index_search_slowlog.log (insufficient authority) at    Java.io.FileOutputStream.open0 (Native Method) at    java.io.FileOutputStream.open (fileoutputstream.java:+)    at Java.io.FileOutputStream. <init> (Fileoutputstream.java:213) at    Java.io.FileOutputStream. <init> (Fileoutputstream.java:133) at    Org.apache.log4j.FileAppender.setFile ( Fileappender.java:294)

Cause: The file owner is not the current user

FIX: Return the unpacked directory, change the entire folder owner to the current user

Chown-r Wenbronk:wenbronk elasticsearch-2.4. 0

Elasticsearch Linux installation and head plugin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.