oozie-client 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +14 -8
- data/lib/oozie-client/job_collection.rb +2 -2
- data/lib/oozie-client/oozie_job.rb +3 -3
- data/lib/oozie-client/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -18,14 +18,20 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
oozie.jobs.
|
28
|
-
|
21
|
+
Create Client
|
22
|
+
|
23
|
+
oozie = OozieClient.new "http://OOZIE_URL"
|
24
|
+
|
25
|
+
Create Workflow
|
26
|
+
|
27
|
+
workflow = oozie.jobs.create {prop1 => value1, prop2 => value2, etc}
|
28
|
+
|
29
|
+
workflow.start
|
30
|
+
workflow.info
|
31
|
+
|
32
|
+
oozie.jobs[oozie_id].info
|
33
|
+
oozie.jobs.first
|
34
|
+
|
29
35
|
|
30
36
|
## Contributing
|
31
37
|
|
@@ -29,15 +29,15 @@ class OozieClient
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def info
|
32
|
-
JSON.parse job_url.
|
32
|
+
JSON.parse job_url.get({'params' => {'show' => 'info'}})
|
33
33
|
end
|
34
34
|
|
35
35
|
def definition
|
36
|
-
job_url.
|
36
|
+
job_url.get({'params' => {'show' => 'definition'}})
|
37
37
|
end
|
38
38
|
|
39
39
|
def log
|
40
|
-
job_url.
|
40
|
+
job_url.get({'params' => {'show' => 'log'}})
|
41
41
|
end
|
42
42
|
|
43
43
|
end
|
data/lib/oozie-client/version.rb
CHANGED