Prevent ES from writing to /tmp on startup #74162
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
I found this by searching the "good first issue" tag. It looks like Elasticsearch is started and the environment variables are set with these two scripts, is that right?
Is elastisearch-env the correct place to set the TMP and TEMP environment variables? |
Hi @pgomulka , i have commit a PR, please review it, thx. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Elasticsearch is started using a bash script which by default can write files to /tmp directory. This is because <<< in bash is implemented using temporary files (creates /tmp/sh-thd.random string) https://itectec.com/ubuntu/ubuntu-whats-the-difference-between/
This can be reconfigured by changing TMP and TEMP environment variables.
or we should refactor the script to avoid using << or <<<
The text was updated successfully, but these errors were encountered: