Configuring Spark Environment Variables Using Cloudera Manager
Configure service-wide environment variables for all Spark applications in
spark-env.sh
as follows.
- Go to the Cloudera Manager Admin Console.
- Navigate to the Spark 2 service.
- Click the Configuration tab.
- Search for the Spark Service Advanced Configuration Snippet (Safety Valve) for spark-conf/spark-env.sh property and add the paths for the environment variables you want to configure.
- Click Save Changes to commit the changes.
- Restart the service.
- Deploy the client configuration.
- Restart Cloudera Data Science Workbench.