En SPMI 8.5.5 Admin Installelasticsearch
En SPMI 8.5.5 Admin Installelasticsearch
5/22/2024
Install and Configure Elasticsearch
Elasticsearch 5.x
1. Download and run java x64 JVM version 8 or later.
2. Set the JAVA_HOME system environment variable:
a. Enter the Variable name JAVA_HOME.
b. Enter the Variable value. That is, the location of the Destination Folder in which you installed java
x64 JVM version 8 or later. For example, C:\Program Files\Java\jre1.8.0_161
Important
Use the same name in all the ES Nodes you install.
Important
Elasticsearch should include at least one Data node and one Master node.
• Memory: Select ~40% of your available RAM memory and mark Lock JVM memory to prevent the
Elasticsearch memory from being swapped.
• Network host: Enter the server's Hostname or IP Address.
• Discovery: Enter the (number of master nodes) / 2 + 1.
For example, set 2 if there are 3 master nodes in your cluster.
• Unicast Hosts: Add all the master nodes host:port to your cluster.
Important
If you choose to first create Data node, you can configure Unicast Hosts later in C:\ProgramData\
Elastic\Elasticsearch\config\elasticsearch.yml
Important
• Edit your Elasticsearch configuration only in rare cases. For example, when adding an
additional Master node to the system.
• You can change the Data nodes indexer after the Indexer installation is complete. To do
this, change the esNodes Environment value in the Indexer machine. You must use
the following format: http://ES1:9200;http://ES2:9200;http://smithES2:9200
• The number of shards and replicas are configured in the SpeechMiner database in the
indexParamsTbl table in the numberOfShards and numberOfReplicas columns.
You must configure the number of shards and replicas before you run UPlatform for the
first time.
• If the customer runs a Migration process, the number of shards and replicas should also
be configured in the LuceneToESMigration tool configuration file.
1. Open C:\ProgramData\Elastic\Elasticsearch\config\elasticsearch.yml.
a. Change the following settings:
• cluster.name
• node.name
• Set bootstrap.memory_lock to true.
2. Open C:\ProgramData\Elastic\Elasticsearch\config\jvm.options.
a. Change the JVM heap' size to ~40% of your RAM memory. For example, if you have 32 GB
RAM, ensure that both -Xmx and -Xms values are set to 12g. For example, -Xms12g and
-Xmx12g.
3. Restart the Elasticsearch service from the Services window to update the settings.
Elasticsearch 7.x
Important
Elasticsearch is built using Java and includes a bundled version of OpenJDK. To use
your own version of Java, set the ES_JAVA_HOME environment variable. If you use a
version of Java that is different from the bundled JVM, we recommend using a
supported version of Java. Elasticsearch will not run if an unsupported version of Java
is used. You may remove the bundled JVM directory when using your own JVM.
1. Open Command Prompt and navigate to the elasticsearch-7.17.6 > bin folder.
2. Run the command, elasticsearch-service.bat install. This command installs Elasticsearch as a
Windows service.
3. Press Windows+R and type services.msc, and press Enter. This opens the Services window that
lists all Windows services.
4. Verify that Elasticsearch 7.17.6 service is available and then start the service.
Important
You can also refer to the official Elasticsearch documentation on how to install it on
Windows.
After the installation is completed, proceed to the Configure Elasticsearch on Windows section
below for instructions on configuring Elasticsearch.
Important
Use the same name in all the ES Nodes you install.
Important
Elasticsearch should include at least one Data node and one Master node.
• Memory: Select ~40% of your available RAM memory and mark Lock JVM memory to prevent the
Elasticsearch memory from being swapped.
• Network host: Enter the server's Hostname or IP Address.
• HTTP port: Set as 9200.
Important
If you choose to first create Data node, you can configure Seed Hosts later in C:\ProgramData\Elastic\
Elasticsearch\config\elasticsearch.yml
Important
• Edit your Elasticsearch configuration only in rare cases. For example, when adding an
additional Master node to the system.
• You can change the Data nodes indexer after the Indexer installation is complete. To do
this, change the esNodes Environment value in the Indexer machine. You must use
the following format: ;http://ES1:9200/
• The number of shards and replicas are configured in the SpeechMiner database in the
indexParamsTbl table in the numberOfShards and numberOfReplicas columns.
You must configure the number of shards and replicas before you run UPlatform for the
first time.
• If the customer runs a Migration process, the number of shards and replicas should also
be configured in the LuceneToESMigration tool configuration file.
1. Open C:\ProgramData\Elastic\Elasticsearch\config\elasticsearch.yml.
2. Open C:\ProgramData\Elastic\Elasticsearch\config\jvm.options.
a. Change the JVM heap' size to ~40% of your RAM memory. For example, if you have 32 GB
RAM, ensure that both -Xmx and -Xms values are set to 12g. For example, -Xms12g and
-Xmx12g.
3. Restart the Elasticsearch service from the Services window to update the settings.