How to use spark on CML session
I have tried this code on jupyter of Cloudera Machine Learning.
============================================================
import cml.data_v1 as cmldata
from pyspark import SparkContext
#Optional Spark Configs
SparkContext.setSystemProperty('spark.executor.cores', '4')
SparkContext.setSystemProperty('spark.executor.memory', '8g')
#Boilerplate Code provided to you by CML Data Connections
CONNECTION_NAME = "go01-dl"
conn = cmldata.get_connection(CONNECTION_NAME)
spark = conn.get_spark_session()
# Sample usage to run query through spark
EXAMPLE_SQL_QUERY = "show databases"
spark.sql(EXAMPLE_SQL_QUERY).show()
=================================================
I cheched enable spark, as well when I tried to create session
However the result was failed with error message
'No data connection named go01-dl found'
While I am trying this, I thought I have to get information of spark.
BUT I CANNOT.
Where Can I get the connection name of SPARK?
What should I do to do run job on Spark of CML?
Please let me know
There is no 'Data' tab on CML session.
There is no 'Data connectors' on Project setting and Site Administration of CML, as well.

