Creating Sessions in Cloudera Data Engineering

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.

You must create a Spark Compute to run a Session. For more information, see Creating a Cloudera Data Engineering Spark Compute.

  1. In the Cloudera Data Engineering UI, click Sessions in the left navigation menu and then click Create Session.
  2. In the Details section, configure the session.
    1. Enter a name for the session.
    2. Enter a description.
    3. Select the timeout period after which the session stops.
    4. Include a Spark configuration.
  3. In the Files and Resources section, specify the files or resources to use.
    1. 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.
    2. 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.
      1. On the Resources tab, click the Select from Resources button, select a file, and click Select.
      2. On the Upload tab, click the Choose File button to upload an application file to a resource folder.
  4. In the Execution Runtime section, select a Spark Compute for this session. It provides the Spark version and runtime environment.
  5. 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
  6. 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.