Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1881 Docs fixes
  3. OOZIE-1696

Document how to get the action conf in the Java action

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 4.2.0
    • Component/s: docs
    • Labels:

      Description

      The Java action doesn't get a lot of the "magic" that we do in the other actions, so things don't always behave right for users using the Java action to launch MapReduce jobs. We've seen some confusion where these jobs were picking up the mapred-default properties and not working because of it. It would be great if we could document how to use the job conf prepared by Oozie, which includes the proper mapred-site.xml (and other site files), plus anything in the <configuration> section of the Java action.

      Basically, they just need to create their job conf with something like this (taken from MapReduceMain.java):

      Configuration actionConf = new Configuration(false);
      actionConf.addResource(new Path("file:///", System.getProperty("oozie.action.conf.xml")));
      

      We can put it next to the already documented snippet about the delegation token propagation here: http://oozie.apache.org/docs/4.0.0/WorkflowFunctionalSpec.html#a3.2.7_Java_Action

        Attachments

        1. OOZIE-1696.patch
          2 kB
          James Kinley

          Activity

            People

            • Assignee:
              jrkinley James Kinley
              Reporter:
              rkanter Robert Kanter
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: