Create Sessions in Cloudera Data Engineering to run Spark commands and iteratively develop your Spark workloads.
The commands that are run in a Cloudera Data Engineering session are called
Statements. You can submit the Statements through the connect CLI command. You can set Spark
session resources only while creating the Session. Python and Scala are the supported
Session types. You can create Cloudera Data Engineering sessions using the Cloudera Data Engineering UI.
In Cloudera Data Engineering, Sessions are associated with Spark Computes.
-
In the Cloudera Data Engineering UI, click Sessions in
the left navigation menu and then click Create Session.
-
In the Details section, configure the session.
- Enter a name for the session.
- Enter a description.
- Select the timeout period after which the session stops.
- Include a Spark configuration.
-
In the Files and Resources section, specify the files or resources
to use.
- Select a file type, for example, PySpark, Scala, or Spark Connect. You can upload JAR,
Python, Egg, Zip, and other files. You can also add a resource to be used in this
session.
- Select an option to provide the source for an application file. Files that are
uploaded to a session are stored in the app/mount directory.
- On the Resources tab, click the Select from
Resources button, select a file, and click Select.
- On the Upload tab, click the Choose File
button to upload an application file to a resource folder.
-
In the Execution Runtime section, select a Spark Compute for this
session. It provides the Spark version and runtime environment.
-
In the Spark Compute Options section, configure the executor and
driver resources for this session by specifying the following fields:
- Driver CPU and Memory
- Executor Minimum and Maximum value.
- Initial Executors
- Executor CPU and Memory
-
Click Create Session to save your configurations and create the
Session.
To delete a Session, in the Actions row, click the corresponding
three-dot menu and select Delete.
Deleting a session results in the termination of an active session and the loss of any
attached logs and details.