gbif / gbif-common

Utility classes
Apache License 2.0
1 stars 1 forks source link

Allow temporary working directory for GNU sorts to passed through #16

Closed djtfmartin closed 4 years ago

djtfmartin commented 4 years ago

Its not currently possible to specify a temporary working directory other that /tmp/ for the GNU sort because of this section of code that clears all current environment variables before starting the process

https://github.com/gbif/gbif-common/blob/master/src/main/java/org/gbif/utils/file/FileUtils.java#L825

This affects the loading of large DwCAs.

As /tmp usually resides on a root partition which are typically small (20GB) in comparison to other mounted block devices, it would be useful to allow users to use another area.

MattBlissett commented 4 years ago

Thanks Dave. I'll release this now.