Elasticsearch installation Configuration

Source: Internet
Author: User

1. Download the latest version of Elasticsearch from elastic official website, currently the latest version is V2.3.3.


2. Unzip

Tar zxvf elasticsearch-2.3.2.tar.gz


3. Switch to the Elasticsearch Bin directory and start the service.

./elasticsearchexception in thread "main" Java.lang.RuntimeException:don ' t run Elasticsearch as root.


At startup, Elasticsearch will report the following error because Elasticsearch does not allow the root account to be used to start the service for security reasons.


4. Create a new account

[[email protected] bin]# useradd elasticsearchuser[[email protected] bin]# passwd elasticsearchuserchanging password for User Elasticsearchuser. New Password:bad Password:is too simpleretype new Password:passwd:all authentication tokens updated successfully. [Email protected] bin]# usermod-g root Elasticsearchuser


5. Restart the service.

[[Email protected] bin]$ ./elasticsearch[2016-05-19 16:44:41,864][warn ][bootstrap                 ] unable  to install syscall filter: seccomp unavailable: requires kernel  3.5+ with config_seccomp and config_seccomp_filter compiled in[2016-05-19  16:44:42,190][info ][node                      ] [Genis-Vell] version[2.3.2], pid[8878],  build[b9e4a6a/2016-04-21t16:03:47z][2016-05-19 16:44:42,191][info ][node                      ] [ GENIS-VELL] INITIALIZING&NBSP, ..... [2016-05-19 16:44:42,774] [INFO ] [plugins                  ] [genis-vell] modules [ lang-groovy, reindex, lang-expression], plugins [], sites [][2016-05-19  16:44:42,805][info ][env                       ] [Genis-Vell] using [1] data  paths, mounts [[/  (/DEV/SDA2)]], net usable_space [486.6gb], net total _space [533.7gb], spins? [possibly], types [ext4][2016-05-19 16:44:42,805][info  ][env                       ] [genis-vell] heap size [990.7mb], compressed  ordinary object pointers [true][2016-05-19 16:44:42,805][WARN ][env                       ] [genis-vell]  max file descriptors [20480] for elasticsearch process likely  too low, consider increasing to at least [65536][2016-05-19  16:44:44,758][info ][node                      ] [Genis-Vell] initialized[2016-05-19  16:44:44,758][info ][node                      ] [GENIS-VELL] STARTING&NBSP, ..... [2016-05-19 16:44:44,858] [INFO ] [TRANSPORT                ]  [GENIS-VELL] PUBLISH_ADDRESS {127.0.0.1:9300}, BOUND_ADDRESSES {127.0.0.1:9300},  {[::1]:9300}[2016-05-19 16:44:44,863][info ][discovery                 ] [genis-vell] elasticsearch/kpitdjqntwu8q4d4pbwxnq[2016-05-19  16:44:47,910][INFO ][CLUSTER.SERVICE          ]  [Genis-Vell] new_master {Genis-Vell}{kpitDjQNTwu8Q4D4pbWXnQ}{127.0.0.1}{127.0.0.1:9300},  Reason: zen-disco-join (elected_as_master, [0] joins received) [2016-05-19 16:44:47,923 ][info ][http                      ] [genis-vell] publish_address {127.0.0.1:9200}, bound _addresses {127.0.0.1:9200}, {[::1]:9200}[2016-05-19 16:44:47,923][info ][node                       ] [genis-vell] started[2016-05-19 16:44:48,020][info ][gateway                   ] [genis-vell] recovered  [0] indices into cluster_state


6. Service can also be run as daemon

./elasticsearch-d


You can also specify the PID at startup

./elasticsearch-d-P PID


7. Visit in the browser and reconfirm that the service is intact, but only if you modify/config/elasticsearch.yml, find Network.host to add a line below, and then access Http://10.0.0.5:9200/in the browser.

network.host:10.0.0.5


The browser displays the following:

{"Name": "Gargouille", "cluster_name": "Elasticsearch", "version": {"number": "2.3.2", "Build_hash": "B9e4 A6acad4008027e4038f6abed7f7dba346f94 "," Build_timestamp ":" 2016-04-21t16:03:47z "," Build_snapshot ": false," Luc Ene_version ":" 5.5.0 "}," tagline ":" You Know, for Search "}


At this point, the Elasticsearch installation started, more detailed operation is also later.

This article is from the "This person's IT World" blog, be sure to keep this source http://favccxx.blog.51cto.com/2890523/1792655

Elasticsearch Installation Configuration

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.