jayunit100
jayunit100

Reputation: 17648

oozie job configuration: without XML?

What are the alternatives for configuring Ooozie workflows without using XML (i.e. json, for example would be nice). Also I am curious if there are bindings for writing oozie configurations in python/ruby or other script based languages.

Upvotes: 1

Views: 558

Answers (1)

Dmitry
Dmitry

Reputation: 2993

Take a look at gradle-oozie-plugin:

gradle-oozie-plugin provides a simple Groovy DSL for Apache oozie workflow because creating flows in XML causes serious brian damage!

Example workflow:

oozie {
first_map_reduce = [
            name: "first_map_reduce",
            type: "mapreduce",
            delete: ["${jobTracker}/pattern"],
            jobXML: "job.xml",
            ok: "end",
            error: "fail",
            configuration: [
                    "mapred.map.output.compress": "false",
                    "mapred.job.queue.name": "queuename"
            ]
    ]
}

Upvotes: 4

Related Questions