Explains how to create and save a job.
This section explains how to create and save a job. See Getting Started with PDI for a comprehensive, "real world" exercise for creating, running, and scheduling jobs and jobs. See Running a Job for how to execute a job.
Create a Job
Follow these instructions to create your job.
- Click File > New > Job or hold down the CTRL+ALT+N keys.
- Go to the Design tab. Expand the folders or use the Entries field to search for specific entries.
- Either drag the entry to the Spoon canvas or double-click it.
- Double-click the entry to open its properties window. For help on filling out the window, click the Help button that is available in each entry.
- To add another entry, either drag the step to the Spoon canvas or double-click it.
- If you dragged the entry to the canvas, you can add a hop by pressing the SHIFT key and drawing a hop from one entry to the other.
- If you double-click it, the entry appears on the canvas with a hop already connected to your previous entry.
- When finished, save the job.
Adjust Job Properties
You can adjust the parameters, logging options, settings, and transactions for jobs. To view the job properties, click CTRL+J or right-click on the canvas and select Job settings from the menu that appears.
Save a Job Locally
Follow these instructions to save a job locally on your file system.
- In Spoon, select File > Save.
- Enter the job name in the Save As window and select the location.
- Click OK. The job is saved.
Save a Job Remotely
Follow these instructions to save a job remotely on the DI Server.
- Connect to a repository.
- In Spoon, click File > Save As. The Job Properties window appears.
- In the Job Name field, enter the job name.
- In the Directory field, click the Folder Icon to select a repository folder where you will save your job.
- Click OK to exit the Job Properties window. The Enter Comment window appears.
- Enter a comment, then click OK. The job is saved.
Open a Job
Follow these instructions to open a job.
- In Spoon, select File > Open.
- If you are opening a file from the repository, select the file from the Select a Repository Object window, then click OK. Otherwise, select the file from the Open window, then click OK.
- The job appears on the canvas.
If you get a message indicating that a plugin is missing, see the Fix Transformation and Job Problems section for more details.
Using the Job Menu
Right-click the job's canvas to see the job menu. Items and descriptions follow.
|New Hop||Creates a new hop.|
|Open Referenced Object||Opens referenced transformations.|
|Edit ...||Shows the configuration window for the step or transformation.|
|Description ...||Allows you to add a description to the step.|
|Copy||Copies selected items to the clipboard.|
|Duplicate||Makes a copy of the selected items, then pastes them to the canvas.|
|Delete||Deletes selected items from the canvas.|
|Hide||Hides the step or entry from the Spoon canvas. Caution: if you hide the step or entry, you will need to open the transformation or job XML file and hand edit it to view it again. For more details, see the troubleshooting section.|
|Detach||Detach the step or entry from the transformation or job.|
|Align/Distribute||Arranges steps or entries on the canvas so that they are aligned properly or distributed evenly. This helps create a visually pleasing transformation or job that is easier to read and digest. |
Align refers to where the steps or entries are permitted along the x (horizontal) or y (vertical) axis. Distribute makes the horizontal and vertical spacing between steps or entries consistent. Typically, you turn on the grid, then move the different steps or entries on the canvas so that they form some sort of pattern, like a straight or branching line. Then you select steps or entries and apply the following options as needed.
|Restartable Checkpoint||Checkpoints let you restart jobs that fail without you having to rerun the entire job from the beginning. You add checkpoints at hops that connect one job entry to another. Checkpoints are addressed in detail in the Use Checkpoints to Restart Jobs topic.|
|Run Next Entries in Parallel||Allows you to launch job entries in parallel. Use this to run jobs in parallel on the same machine or remotely.|
|Generates a model of the data in your transformation. The data should have a dimension or a measure. Right-click on a step or entry that has data that can be modeled, such as the Table Output step. The data appears in Pentaho Metadata Editor.|
|Visualize||Generates a visualization of the data in your transformation. Right-click on a step or entry that has data that can be visualized, such as the Table Output step. Two sub-options appear when this menu option is selected: |