Changing /tmp directory for Ozone services (alternative configuration)
As an alternative configuration for the Ozone service, you must configure the below procedures to avoid /tmp directory-related issues.
RocksDB temporary path configuration
RocksDB depends on the /tmp directory by default. If the /tmp directory has the noexec permission set, it prevents the execution of RocksDB binaries. You can configure the ROCKSDB_SHAREDLIB_DIR environment variable to point to a different directory with execute permissions.
Netty temporary path configuration
Netty defaults to using the /tmp directory for its native WORKDIR. If the /tmp directory has the noexec permission set, you will encounter issues when Netty tries to load its native libraries. You can specify a different temporary directory for Netty by using the java.io.tmpdir system property under the ozone_java_opts configuration.