Skip to content

Instantly share code, notes, and snippets.

@sorenmacbeth
Last active August 29, 2015 13:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sorenmacbeth/8748735 to your computer and use it in GitHub Desktop.
Save sorenmacbeth/8748735 to your computer and use it in GitHub Desktop.
cascalog ambrose integration
(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