Skip to content

[HWORKS-2190][APPEND] Updating job configuration to include file, pyfiles, archives and jars #478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 3, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/user_guides/projects/jobs/pyspark_job.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ The following table describes the JSON payload returned by `jobs_api.get_configu
| Field | Type | Description | Default |
| ------------------------------------------ | -------------- |-----------------------------------------------------| -------------------------- |
| `type` | string | Type of the job configuration | `"sparkJobConfiguration"` |
| `appPath` | string | Project path to script (e.g `Resources/foo.py`) | `null` |
| `appPath` | string | Project path to script (e.g `Resources/foo.py`) | `null` |
| `environmentName` | string | Name of the project spark environment | `"spark-feature-pipeline"` |
| `spark.driver.cores` | number (float) | Number of CPU cores allocated for the driver | `1.0` |
| `spark.driver.memory` | number (int) | Memory allocated for the driver (in MB) | `2048` |
Expand All @@ -229,6 +229,10 @@ The following table describes the JSON payload returned by `jobs_api.get_configu
| `spark.dynamicAllocation.maxExecutors` | number (int) | Maximum number of executors with dynamic allocation | `2` |
| `spark.dynamicAllocation.initialExecutors` | number (int) | Initial number of executors with dynamic allocation | `1` |
| `spark.blacklist.enabled` | boolean | Whether executor/node blacklisting is enabled | `false` |
| `files` | string | Path to files to be provided to the Spark application. These will be added to the classpath. | `null` |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do files also get added to the the classpath?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only jars

Copy link
Contributor Author

@manu-sj manu-sj Jun 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to remove "adding to class path" for files and archives.

| `pyFiles` | string | Path to Python files to be provided to the Spark application. These will be added to the `PYTHONPATH` so they can be imported as modules in script. | `null` |
| `jars` | string | Path to JAR files to be provided to the Spark application. These will be added to the classpath. | `null` |
| `archives` | string | Path to archive files to be provided to the Spark application. | `null` |


## Accessing project data
Expand Down
4 changes: 4 additions & 0 deletions docs/user_guides/projects/jobs/spark_job.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ The following table describes the JSON payload returned by `jobs_api.get_configu
| `spark.dynamicAllocation.maxExecutors` | number (int) | Maximum number of executors with dynamic allocation | `2` |
| `spark.dynamicAllocation.initialExecutors` | number (int) | Initial number of executors with dynamic allocation | `1` |
| `spark.blacklist.enabled` | boolean | Whether executor/node blacklisting is enabled | `false` |
| `files` | string | Path to files to be provided to the Spark application. These will be added to the classpath. | `null` |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here is wrong I guess?

| `pyFiles` | string | Path to Python files to be provided to the Spark application. These will be added to the `PYTHONPATH` so they can be imported as modules in script. | `null` |
| `jars` | string | Path to JAR files to be provided to the Spark application. These will be added to the classpath. | `null` |
| `archives` | string | Path to archive files to be provided to the Spark application. | `null` |

## Accessing project data

Expand Down