Product/components used and version/fix level:
Operating System: | All |
---|---|
Version: | 10.5 and above |
Detailed explanation of the problem:
API Gateway Elastic Search using default Operating System temporary location.
How to set a custom path?
Operating System: | All |
---|---|
Version: | 10.5 and above |
API Gateway Elastic Search using default Operating System temporary location.
How to set a custom path?
To use the custom path, Internal Data Store jvm.options java.io.tmpdir can be updated to the desired location, or ES_TMPDIR environment variable can be set as per the custom path.
• Create temp folder
Example: /opt/wm105/InternalDataStore/temp
• Set $ES_TMPDIR environment variable with the desired temp path.
• Persisting Environment Variables for a User:
vi ~/.bash_profile
export ES_TMPDIR=/opt/wm105/InternalDataStore/temp
To immediately apply all changes to bash_profile
source ~/.bash_profile
echo $ES_TMPDIR
Notes:
The following property determines the tmpdir for ElasticSearch.
<SAG_INSTALL_DIR>/InternalDataStore/config/jvm.options
-Djava.io.tmpdir=${ES_TMPDIR}
Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/es-tmpdir.html