Oozie Sample Project

The Oozie sample project contains two processes - ProxyMapReduceWordCount and WorkflowJobSample. The ProxyMapreduceWordCount shows The process shows how to submit a proxy map reduce job on oozie server and waits till it completes its execution. The process also writes job execution result in log based on its status. The WorkflowJobSample shows how to submit a long running workflow job on the Oozie server and retrieve the current job status without waiting for it to complete execution.

Prerequisites

Ensure that you have imported the sample project to TIBCO Business Studio, as described in Importing the Sample Project.

Procedure

  1. Configure the module properties that are used in the sample project:
    1. In the Project Explorer view, expand OozieSample > Module Descriptors and double-click Module Properties.
    2. Expand Example and configure the following properties that are used in the shared resources:
      • OOZIE_URL=server_URL
      • Project_Path=TIBCO_HOME/bw/palettes/bigdata/version_number/Samples
  2. Expand Resource > SharedResources, double-click OozieConnectionResource.oozieconnectionResource to edit the Oozie connection. Refer to the readme.txt packaged with the OozieSample project to configure the Oozie connection for each process.
  3. Click Test Connection to validate your connections.
  4. Expand the Module Descriptors resource, and then double-click Components.
  5. Depending on which process you want to run, in the Component Configurations area, either select the ooziesample.ProxyMapReduceWordCount component or the ooziesample.WorkflowJobSample component is selected.
  6. On the toolbar, click the icon to save your changes.
  7. From the menu, click Run > Run Configurations to run the selected process.
  8. In the left panel of the Run Configurations dialog box, expand BusinessWorks Application > BWApplication.
  9. In the right panel, click the Applications tab, and select the check box next to OozieSample.application.
  10. Select the check box next to the process you want to run.
  11. Click Run to run the process.
  12. Click the icon to stop the process.

Result

When the ProxyMapReduceWordCount process and the WorkflowJobSample process run successfully, each of them returns the status of the job in the Console log.