Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Elasticsearch2.4.2 installation (1)

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. Decompress elasticsearch.2.4.2;3 nodes 2. Modify config/elasticsearch.yml

(be sure to write in the top box and add a space after the colon)

NIE-00: 192.168.1.100

A) cluster.name: ns-cluster (same as cluster)

B) node.name: node-0

C) network.Host: 192.168.1.100

D) configuration to prevent brain fissure

Discovery.zen.ping.multicast.enabled: false

Discovery.zen.ping_timeout: 120s

Client.transport.ping_timeout: 60s

Discovery.zen.ping.unicast.hosts: ["192.168.1.100", "192.168.1.101", "192.168.1.102"]

NIE-01: 192.168.1.101

A) cluster.name: ns-cluster (same as cluster)

B) node.name: node-1

C) network.Host: 192.168.1.101

D) configuration to prevent brain fissure

Discovery.zen.ping.multicast.enabled: false

Discovery.zen.ping_timeout: 120s

Client.transport.ping_timeout: 60s

Discovery.zen.ping.unicast.hosts: ["192.168.1.100", "192.168.1.101", "192.168.1.102"]

NIE-01: 192.168.1.102

A) cluster.name: ns-cluster (same as cluster)

B) node.name: node-2

C) network.Host: 192.168.1.102

D) configuration to prevent brain fissure

Discovery.zen.ping.multicast.enabled: false

Discovery.zen.ping_timeout: 120s

Client.transport.ping_timeout: 60s

Discovery.zen.ping.unicast.hosts: ["192.168.1.100", "192.168.1.101", "192.168.1.102"]

3. Launch: nohup. / bin/elasticsearch > es.log 2 > & 1 &

The console output is as follows:

[hadoop@NIE-00 elasticsearch-2.4.2] $bin/elasticsearch

[2016-12-01 22 unable to install syscall filter] [WARN] [bootstrap] unable to install syscall filter: seccomp unavailable: requires kernel 3.5 + with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in

[2016-12-01 22 INFO] [node] [node-0] version [2.4.2], pid [6784], build [161c65a/2016-11-17T11:51:03Z]

[2016-12-01 22 INFO] [node] [node-0] initializing.

[2016-12-01 22 INFO] [plugins] [node-0] modules [lang-groovy, reindex, lang-expression], plugins [], sites []

[2016-12-01 22 INFO] [env] [node-0] using [1] data paths, mounts [[(/ dev/mapper/VolGroup-lv_root)]], net usable_space [2.6gb], net total_space [16.4gb], spins? [possibly], types [ext4]

[2016-12-01 22 heap size] [INFO] [env] [node-0] heap size [1015.6mb], compressed ordinary object pointers [true]

[2016-12-01 22 WARN] [env] [node-0] max file descriptors [4096] for elasticsearch process likely too low, consider increasing to at least [65536]

[2016-12-01 22 INFO] [node] [node-0] initialized

[2016-12-01 22 node-0 12 node-0 09222] [INFO] [node-0] starting.

[2016-12-01 22 INFO] [transport] [node-0] publish_address {192.168.1.100 node-0 9300}, bound_addresses {192.168.1.100}

[2016-12-01 22 INFO] [discovery] [node-0] ns/UOPlLQJRTVay--um3NeBSA

[2016-12-01 22 waited for 12V 39377] [WARN] [discovery] [node-0] 30s and no initial state was set by the discovery

[2016-12-01 22 INFO] [http] [node-0] publish_address {192.168.1.100 node-0 9200}, bound_addresses {192.168.1.100 node-0 9200}

[2016-12-01 22 node-0 12 node-0 39391] [INFO] [node] [node-0]

[2016-12-01 22 detected_master [INFO] [cluster.service] [node-0] detected_master {8sluGD79Rga0GuGPhoQkCA} {192.168.1.101} {192.168.1.101 detected_master {192.168.1.101} {192.168.1.101} {192.168.1.101} {192.168.1.101} {192.168.1.101} {192.168.1.101},}, reason: zen-disco-receive (from master [{node-1} {8sluGD79Rga0GuGPhoQkCA} {192.168.1.101} {192.168.1.101} 9300}))

[2016-12-01 22 node-0 15 added 49621] [INFO] [cluster.service] [node-0] added {{node-2} {192.168.1.102} {192.168.1.102} {192.168.1.102), reason: zen-disco-receive ({node-1} {8sluGD79Rga0GuGPhoQkCA} {192.168.1.101} {192.168.1.101)

The other two nodes, ditto, start

4. Browser access:

Http://nie-02:9200/

Http://nie-02:9200/?pretty

0. Premise: hosts

192.168.1.100 NIE-00

192.168.1.101 NIE-01

192.168.1.102 NIE-02

{

"name": "node-2"

"cluster_name": "ns-cluster"

"cluster_uuid": "na"

"version": {

"number": "2.4.2"

"build_hash": "161c65a337d4b422ac0c805f284565cf2014bb84"

"build_timestamp": "2016-11-17T11:51:03Z"

"build_snapshot": false

"lucene_version": "5.5.2"

}

"tagline": "You Know, for Search"

}

The simplest installation is quite easy.

Let's call it a day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report