Win10 ElasticSearch5.5.1 with head, Kibana, X-pack, SQL, IK, pinyin plug-in configuration installation

Source: Internet
Author: User
Tags kibana

ElasticSearch5.5.1 configuration and installation of plugins

Elasticsearch5.5.1 Installation:

Https://www.elastic.co/cn/downloads/elasticsearch

Download zip, unzip

Run C:\elasticsearch-5.5.1\bin\elasticsearch.bat

Visit http://localhost:9200/

The installation was successful.

Environment:

WINDOWS10 Enterprise Edition X64

JDK-1.8.0

ElasticSearch-5.5.1

ES5.5.1 plug-in directories available for online installation:

Note: All CMD commands are run as administrator.

First,elasticsearch5.x head plug-in 1. Install the node-v4.5.0-x64.msiand set the node_home to the environment variable.

Such as

Add PATH environment variable

Test installation succeeded No:

2. Grunt Installation

Grunt is a handy build tool for packaging compression, testing, execution, and so on, and the 5.0-in head plugin is launched through grunt. So you need to install Grunt:

Note: The path is cut to C:\Program Files\nodejs.

NPM install-g GRUNT-CLI

-G represents a global installation. The installation path is C:\USERS\YOURNAME\APPDATA\ROAMING\NPM and the path variable is added.

After the installation is complete, check:

3.head installation

Download Elasticsearch-head

: Https://github.com/mobz/elasticsearch-head, unzip after download.

Modify Head Source

Catalog: C:\elasticsearch-head-master\Gruntfile.js:

Find the Connect property below and add hostname: ' * ':

4. Modify the Elasticsearch configuration file

To edit C:\elasticsearch-5.5.1\config\config\elasticsearch.yml, add the following:

Http.cors.enabled:true

Http.cors.allow-origin: "*"

5. start elasticsearch-head

Start Elasticsearch first, and then start Elasticsearch-head.

Under the elasticsearch-head-master/directory, run the start command:

NPM Install–g (only for first-run needs)

Grunt Server

Visit http://localhost:9100/

The data can be seen because the index has been previously established.

Kibana is a Web interface (5601) that provides data analysis for Elasticsearch. It can be used to efficiently search, visualize and analyze logs. Kibana is currently the latest version of 5.5.2.

Second, installation Kibana 1. Download

Https://www.elastic.co/downloads/kibana

Unzip to C:\kibana-5.5.1-windows-x86

2. Configuration

Modify KIBANA.YML under C:\kibana-5.5.1-windows-x86\config to make Elasticsearch.url point to your elasticsearch. (no changes are required by default)

3. Start

Start Elasticsearch first, and then reopen the cmd window,

C:\kibana-5.5.1-windows-x86\bin\kibana.bat

Access Kibana: Browser

http://localhost:5601/

third, installation x-pack

X-pack is a separate component in the Kibana, and various separate components (Shield, Watcher, Marvel, Graph, Reporting) are now integrated into the x-pack before 5.x. X-pack is an extension of the elastic stack that includes security, alerting, monitoring, reporting, and graphics features in an easy-to-install package. X-pack is an expansion pack for Elasticsearch, which bundles security, warning, monitoring, graphics and reporting features in an easy-to-install package, although x-pack is designed to work seamlessly, but you can easily turn some features on or off, X-pack is primarily an authentication for adding identity permissions, as well as features that were previously required to be installed on Kibana to be used to install a variety of other Marvel, head, and other feature plugins. I am using an online installation (Elasticsearch and Kibana must be turned off before installation):

1. Install the x-pack in the Elasticsearch

Run under C:\elasticsearch-5.5.1\bin. \elasticsearch-plugin.bat Install X-pack

2. Also install X-pack in Kibana

Similar installation method (download may be slower than 20mins, the download process remember in the cmd window press ENTER, will error):

. \kibana-plugin.bat Install X-pack

3. Modifying Parameters

Add the following parameters to the ELASTICSEARCH.YML under C:\elasticsearch-5.5.1\config:

Action.auto_create_index:. security,.monitoring*,.watches,.triggered_watches,.watcher-history*

Xpack.security.enabled:false

Xpack.monitoring.enabled:true

Xpack.graph.enabled:false

Xpack.watcher.enabled:false

Xpack.ml.enabled:false

4. Restart Elasticsearch and Kibana

Finished installing X-pack , Login Elasticsearch and the Kibana will let you enter the password

The default user name is elastic, and the default password is changeme.

Iv. installation of Chinese word-breaker

The IK word breaker is a Chinese word breaker which is widely used and has good effect.

1. Download

Https://github.com/medcl/elasticsearch-analysis-ik

To download the corresponding version of Elasticsearch when downloading:

Close Elasticsearch before configuration, and then start up after installation is complete.

After downloading to C:\plugins, go to the Elasticsearch-analysis-pinyin-master directory, MVN package (not download Maven's self-download installation).

2. Configuration Run

After the package succeeds, there will be a elasticsearch-analysis-ik-5.5.1.zip in C:\plugins\elasticsearch-analysis-ik-master\target\releases.

Unzip to get:

Cut the above 7 files to C:\elasticsearch-5.5.1\plugins\ik (the IK folder is your own new one)

Restart Elasticsearch

You can see that the IK word breaker plugin is already loaded.

v. Installation ofPINYIN participle plug-in

Pinyin the word breaker:
Https://github.com/medcl/elasticsearch-analysis-pinyin

The installation process is the same as the IK word breaker, downloading, packaging, adding elasticsearch, restarting Elasticsearch.

vi. installation ofSQL plug-ins 1. Download the SQL plugin

Address Https://github.com/NLPchina/elasticsearch-sql

Find the corresponding version

Access Links

Https://github.com/NLPchina/elasticsearch-sql/releases/download/5.5.1.0/elasticsearch-sql-5.5.1.0.zip

and download

2. upload the downloaded SQL plugin to the elasticsearch plusins directory and restart es.

The installation process is the same as the IK word breaker, downloading, packaging, adding elasticsearch, restarting Elasticsearch.

3. download site-server

4. Change the port

C:\es-sql-site-standalone\site-server\site_configuration.json

5. visit C:\es-sql-site-standalone\_site\index.html

To make an SQL query on an existing index:

Win10 ElasticSearch5.5.1 with head, Kibana, X-pack, SQL, IK, pinyin plug-in configuration installation

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.