Skip to content

Troubleshooting for Access Management for Apache Spark OLAC

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.

  1. Navigate to the oss-plugin/config plugin directory:

    Bash
    cd ~privacera-oss-plugin/config
    

  2. Open the log4j2.properties file and update the following property:

    Bash
    1
    2
    3
    vi log4j2.properties
    
    logger.privacera.level = debug
    

  3. Once the pod is up, navigate to the ~/tmp/<user> folder.

    Bash
    cd ~/tmp/<user>
    

  4. Logs will be saved in file privacera.log

  5. Command to get logs on machine:

    Bash
    kubectl cp <SPARK_NAME_SPACE>/<SPARK_PLUGIN_POD_IP>:/tmp/<user>/privacera.log <destination_path>
    

Comments