To be able to work with Zephyr Data Center, you need to install and configure Elasticsearch -- a search and analytics engine -- on a separate node. Depending on the number of concurrent users who will work with the Data Center, you may need to set up one Elasticsearch node or a cluster of nodes (see Recommended Configurations).
1. Download Elasticsearch 7.16.2 (the ZIP archive).
2. Unzip the downloaded file.
3. Configure the elasticsearch-7.16.2\config\elasticsearch.yml
file:
For a single node
1. Specify the following properties in the elasticsearch.yml
file:
cluster.name: zephyr
node.name: "ESNode1"
network.host: 192.168.0.1
http.port: 9200
bootstrap.memory_lock: true
xpack.security.enabled: false
discovery.seed_hosts: ["192.168.0.1"]
indices.query.bool.max_clause_count: 9024
For a cluster
1. Specify the following properties in the elasticsearch.yml
file on all Elasticsearch nodes:
Elasticsearch node 1:
#ESNode 1 (192.168.0.1)
cluster.name: zephyr
node.name: node-1
node.master: true
node.data: true
http.port: 9200
bootstrap.memory_lock: false
network.host: 192.168.0.1
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
xpack.security.enabled: false
indices.query.bool.max_clause_count: 9024
Elasticsearch node 2:
#ESNode 2 (192.168.0.2)
cluster.name: zephyr
node.name: node-2
node.master: true
node.data: true
http.port: 9200
bootstrap.memory_lock: false
network.host: 192.168.0.2
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
xpack.security.enabled: false
indices.query.bool.max_clause_count: 9024
Elasticsearch node 3:
#ESNode 3 (192.168.0.3)
cluster.name: zephyr
node.name: node-3
http.port: 9200
node.master: true
node.data: true
bootstrap.memory_lock: false
network.host: 192.168.0.3
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
xpack.security.enabled: false
indices.query.bool.max_clause_count: 9024
2. In the Zephyr\tomcat\webapps\flex\WEB-INF\classes\jdbc.properties
file, specify the following values for the transport.nodes
property:
transport.nodes=192.168.11.144:9200,192.168.11.145:9200.192.168.11.146:9200
4. Start the service by running the elasticsearch-7.16.2\bin\elasticsearch.bat
file.
1. Download Elasticsearch 7.16.2 (the RPM archive), or run the following command in the Linux command prompt:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.2-x86_64.rpm
2. In the Linux command prompt, run one of the following commands to install Elasticsearch:
sudo rpm -ivh elasticsearch-7.16.2-x86_64.rpm
sudo yum localinstall elasticsearch-7.16.2-x86_64.rpm
3. Configure the etc\elasticsearch\elasticsearch.yml
file:
For a single node
Specify the following properties in the elasticsearch.yml
file:
cluster.name: zephyr
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 192.168.0.1
xpack.security.enabled: false
discovery.seed_hosts: ["192.168.0.1"]
http.port: 9200
indices.query.bool.max_clause_count: 9024
For a cluster
1. Specify the following properties in the elasticsearch.yml
file on all Elasticsearch nodes (replace the IPs with your IPs):
Elasticsearch node 1:
#ESNode 1 (192.168.0.1)
cluster.name: zephyr
node.name: node-1
node.master: true
node.data: true
http.port: 9200
bootstrap.memory_lock: false
network.host: 192.168.0.1
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
xpack.security.enabled: false
indices.query.bool.max_clause_count: 9024
Elasticsearch node 2:
#ESNode 2 (192.168.0.2)
cluster.name: zephyr
node.name: node-2
node.master: true
node.data: true
http.port: 9200
bootstrap.memory_lock: false
network.host: 192.168.0.2
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
xpack.security.enabled: false
indices.query.bool.max_clause_count: 9024
Elasticsearch node 3:
#ESNode 3 (192.168.0.3)
cluster.name: zephyr
node.name: node-3
http.port: 9200
node.master: true
node.data: true
bootstrap.memory_lock: false
network.host: 192.168.0.3
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
xpack.security.enabled: false
indices.query.bool.max_clause_count: 9024
2. After creating all the nodes, delete the /var/lib/elasticsearch/nodes
folder on all the nodes, then restart.
4. Start Elasticsearch. The way you start and stop it depends on whether your system uses SysV init or systemd.
If SysV init is used, you start and stop Elasticsearch by running the service
command:
sudo -i service elasticsearch start
sudo -i service elasticsearch stop
If systemd is used, you run the following commands:
sudo systemctl start elasticsearch.service
sudo systemctl stop elasticsearch.service
5. Run the following command to verify Elasticsearch is working properly:
curl -XGET '192.168.11.146:9200/_cat/health?v&pretty'
< Prev Step Next Step >
Set Up Zephyr Data Center
/wiki/spaces/ZE/pages/1558445859