In Cloudera Data Science Workbench clusters that use an HTTP proxy, follow these steps
to support web-related actions in Spark. You must set the Spark configuration parameter
extraJavaOptions on your gateway hosts.
Log in to Cloudera Manager.
Go to Spark2 > Configuration.
Filter the properties with Scope > Gateway and Category > Advanced.
Scroll down to Spark 2 Client Advanced Configuration Snippet (Safety Valve)
for spark2-conf/spark-defaults.conf.
Enter the following configuration code, substituting your proxy host and port
values: