Cannot change jna file directory from /tmp to new dir || elasticsearch 6.2.3 ver

Hi
I have installed latest elasticsearch 6.2.3 ver on linux machine, i can able to start the elastic with out any errors in logs.
When i verify the /tmp directory , i could see lot of directories creating with elasticsearch.xxxxx every time when i restart elasticsearch

Directories like....
drwx------. 2 elk elk 6 Mar 28 02:06 elasticsearch.zaKIbvN9
drwx------. 3 elk elk 24 Mar 28 02:16 elasticsearch.ku48IFJm
drwx------. 2 elk elk 6 Mar 28 02:26 elasticsearch.XFh01Ti6
drwx------. 3 elk elk 24 Mar 28 02:30 elasticsearch.dvMFeSNT
drwx------. 2 elk elk 6 Mar 28 02:33 elasticsearch.3JyeACLI
drwx------. 2 elk elk 6 Mar 28 04:31 elasticsearch.EDsbT3CX
drwx------. 2 elk elk 6 Mar 28 04:39 elasticsearch.M5KyVfkU
drwx------. 2 root root 6 Mar 28 05:33 elasticsearch.4cOhgZN6

these directories are with jna-3506402 file. As tmp dir is public i tried to change the dir from /tmp and updated jvm.options for property -Djava.io.tmpdir to new dir.
Now i could see jna-3506402 file under new directory but issue is, still i could see empty directories creating under /tmp for every elasticsearch restart .

Can someone help me , where can i set/unset option for not to create empty directories under /tmp.

Thankyou.
Pradeep

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.