Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
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
vi ~/.bash_profile
export ES_TMPDIR=/opt/wm105/InternalDataStore/temp
To immediately apply all changes to bash_profile source ~/.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