Steps to Retrieve Logs for Troubleshooting¶
To enable debug for Apache Spark OLAC, before executing the build_spark_plugin.sh script, update the log4j2.properties file to enable debug logging.
-
Navigate to the
oss-plugin/configplugin directory:Bash -
Open the
log4j2.propertiesfile and update the following property: -
Once the pod is up, navigate to the
~/tmp/<user>folder.Bash -
Logs will be saved in file
privacera.log -
Command to get logs on machine:
Bash
-
In the portal, open the connector and turn on Enable debug logging. Under Logging, set Privacera log level to
DEBUG. The section carries these fields:Field Definition Default Privacera log level Level for the Privacera plugin classes. INFO,DEBUGorTRACE.INFORanger log level Level for the Ranger policy engine and audit client. INFORoot log level Level for everything else on the cluster. INFOLog file size Size at which a log file rolls over. 100MBLog file retention How long rolled files are kept. 30d -
Save the connector, download the bundle again, and re-run the setup script. The levels only reach the plugin through a freshly downloaded bundle.
-
Once the pod is up, navigate to the log directory. It defaults to
/tmp/<user>:Bash -
Logs are written to
privacera.log, rolling at the configured file size and kept for the configured retention. -
Command to get logs on machine:
Bash
- Prev topic: Troubleshooting