> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/install/9.3-install/using-spark-submit-cp/modify-the-sample-spark-submit-job/open-and-rename-the-job.md).

# Open and rename the job

To copy files in these instructions, use either the Hadoop Copy Files job entry or Hadoop command line tools.

Perform the following steps to modify the sample Spark job and understand how a Spark Submit entry works in PDI:

1. Copy a text file that contains words that you would like to count to the HDFS on your cluster.
2. Start the PDI client.
3. Open the `Spark Submit.kjb` job, which can be found in the `design-tools/data-integration/samples/jobs/Spark Submit` folder.
4. Select **File** > **Save As**, and then rename and save the file as `Spark Submit Sample.kjb`.

The `Spark Submit Sample.kjb` file is saved to the `jobs` folder.

![Spark Submit Sample Job](https://3280820413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy1poGLvhSUVhf3TOysqu%2Fuploads%2Fgit-blob-dea5a80561fe3bdfd9a2acbdcf69eb7b009c8528%2Fspoonide.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/install/9.3-install/using-spark-submit-cp/modify-the-sample-spark-submit-job/open-and-rename-the-job.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
