The Job Designer application enables you to create and submit Hadoop MapReduce jobs to the Hadoop cluster. You can include variables with your jobs to enable you and other users to enter values for the variables when they run your job. The Job Designer supports MapReduce, streaming, and Java jobs. For more information about Hadoop MapReduce, see the Hadoop Tutorial.
![]() | Note:
|
Job Designer is one of the applications that is installed as part of Hue. For more information about installing Hue, see Hue Installation. For information about installing Oozie, see Oozie Installation.
To start Job Designer, click the Job Designer icon ( ) in the navigation bar at the top of the Hue web page. The Job Designs page opens in the browser.
The Job Designer sample job designs can help you learn how to use Job Designer. To install the sample job designs, click Install Samples in the Job Designs window and then click Yes. The sample job designs are displayed in the Job Designs window. Job Designer removes the Install Samples button after the samples are installed so you can only install the samples once.
A job design specifies several meta-level properties of a MapReduce job, including the job design name, description, the MapReduce executable scripts or classes, and any parameters for those scripts or classes. You can create three types of job designs: MapReduce, streaming, and Java.
You can filter the job designs that appear in the list by owner, name, type, and description.
To filter the Job Designs list:
All job design settings except Name and Description support the use of variables of the form $variable_name. When you run the job, a dialog box will appear to enable you to specify the values of the variables.
All job design types support the settings listed in the following table.
Setting | Description |
---|---|
Name | Identifies the job and its collection of properties and parameters. |
Description | A description of the job. The description is displayed in the dialog box that appears if you specify variables for the job. |
Job Properties | Job properties. To set a property value, click Add Property.
|
Files | Files to pass to the job. Equivalent to the Hadoop -files option. |
Archives | Archives to pass to the job. Equivalent to the Hadoop -archives option. |
A MapReduce job design consists of MapReduce functions written in Java. You can create a MapReduce job design from existing mapper and reducer classes without having to write a main Java class. You must specify the mapper and reducer classes as well as other MapReduce properties in the Job Properties setting.
To create a MapReduce job design:
Setting | Description |
---|---|
Jar path | The fully-qualified path to a JAR file containing the classes that implement the Mapper and Reducer functions. |
Hadoop streaming jobs enable you to create MapReduce functions in any non-Java language that reads standard Unix input and writes standard Unix output. For more information about Hadoop streaming jobs, see Hadoop Streaming.
To create a streaming job design:
Setting | Description |
---|---|
Mapper | The path to the mapper script or class. If the mapper file is not on the machines on the cluster, use the Files option to pass it as a part of job submission. Equivalent to the Hadoop -mapper option. |
Reducer | The path to the reducer script or class. If the reducer file is not on the machines on the cluster, use the Files option to pass it as a part of job submission. Equivalent to the Hadoop -reducer option. |
A Java job design consists of a main class written in Java.
To create a Java job design:
Setting | Description |
---|---|
Jar path | The fully-qualified path to a JAR file containing the main class. |
Main class | The main class to invoke the program. |
Args | The arguments to pass to the main class. |
Java opts | The options to pass to the JVM. |
To submit a job design:
After the job is complete, the Job Designer displays the results of the job. For information about displaying job results, see Displaying Job Results.
If you want to edit and use a job but you don't own it, you can make a copy of it and then edit and use the copied job.
To copy a job design:
To edit a job design:
To delete a job design:
To display the Job Submission History:
In the Job Designs window, click the History tab. The jobs are displayed in the Job Submissions History listed by Oozie job ID.
To display Job Details:
In the Job Submission History window, double-click a Oozie Job ID. The results of the job display: