Created on 04-03-202506:18 PM - edited on 04-18-202501:25 AM by VidyaSargur
Objective
In this article, you will create a CDE Spark Job with dependencies in multiple CDE Repositories.
On CDE and the CLI
CDE is the Cloudera Data Engineering Service, a containerized managed service for Cloudera Data Platform designed for large-scale batch and Streaming Pipelines with Spark, Airflow, and Iceberg. It allows you to submit batch jobs to auto-scaling virtual clusters. As a Cloud-Native service, CDE enables you to spend more time on your applications and less on infrastructure.
CDE allows you to create, manage, and schedule Apache Spark jobs without the overhead of creating and maintaining Spark clusters. With CDE, you define virtual clusters with a range of CPU and memory resources, and the cluster scales up and down as needed to run your Spark workloads, helping to control your cloud costs.
CDE provides a command-line interface (CLI) client. You can use the CLI to create and update jobs, view job details, manage job resources, run jobs, etc.
Requirements
The following are required to reproduce these commands in your CDE environment:
A CDE Service on version 1.23.
A working installation of the CDE CLI. Please follow these instructions to install the CLI.
A working git installation. The two sample git repositories referenced in the CLI commands below have already been created and can be reused.
Code
The application code and util are located in two different repositories. Create two CDE Repositories by cloning git repositories.
Create the job by referencing the repositories as if they were CDE Files Resources. In other words, use the `--mount-n-resource` for each repository, as needed:
Cloudera Data Engineering (CDE) provides a command-line interface (CLI) client. You can use the CLI to create and update jobs, view job details, manage job resources, run jobs, and so on.
In this article, we have reviewed some advanced use cases for the CLI. If you are using the CDE CLI, you might also find the following articles and demos interesting: