Configuring Directories (Tarball Installation)
As a best practice, after installing Transformer from a tarball, configure Transformer to use directories outside of the runtime directory after installation. This enables the use of the directories after Transformer upgrades.
Configure the directories used to store configuration, data, log, and resource files so that they are outside of the $TRANSFORMER_DIST directory, the base Transformer runtime directory.
You can use the default locations within the $TRANSFORMER_DIST runtime directory. However, if you use the default values, make sure the user who starts Transformer has write permission on the base Transformer runtime directory.
Note: Do not use NFS or NAS to store Transformer files.
- Create directories outside of the $TRANSFORMER_DIST runtime directory for the configuration, data, log, and resource files.
-
In the $TRANSFORMER_DIST/libexec/transformer-env.sh file,
set the following environment variables to the newly created directories:
- TRANSFORMER_CONF - The Transformer configuration directory.
- TRANSFORMER_DATA - The Transformer directory for pipeline state and configuration information.
- TRANSFORMER_LOG - The Transformer directory for logs.
- TRANSFORMER_RESOURCES - The Transformer directory for runtime resource files.
Modify environment variables using the method required by your installation type. - Copy all files from $TRANSFORMER_DIST/etc to the newly created $TRANSFORMER_CONF directory.