Last active
August 29, 2015 13:55
-
-
Save sorenmacbeth/8748735 to your computer and use it in GitHub Desktop.
cascalog ambrose integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn ambrose?- | |
[& bindings] | |
(let [[name bindings] (flow/parse-exec-args bindings) | |
bindings (mapcat (partial apply normalize-sink-connection) | |
(partition 2 bindings)) | |
flow (-> (apply compile-flow name bindings) | |
flow/flow-def | |
flow/compile-hadoop) | |
server (EmbeddedAmbroseCascadingNotifier.)] | |
(.addListener flow server) | |
(.addStepListener flow server) | |
(.complete flow))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment