Skip to content

Instantly share code, notes, and snippets.

@brapse
Created June 8, 2012 22:15
Show Gist options
  • Save brapse/2898364 to your computer and use it in GitHub Desktop.
Save brapse/2898364 to your computer and use it in GitHub Desktop.
(defn parallel-test []
(let [tapA (delivery/tap "2012-04-30-00" "2012-04-30-00")
tapB (delivery/tap "2012-04-30-01" "2012-04-30-01")]
(with-job-conf {"mapred.reduce.tasks" 20
"mapred.map.tasks" 20}
;(with-debug
(?- (stdout)
;(println tapB)
(union
(clicks (delivery/events tapA "CLICK"))
(clicks (delivery/events tapB "CLICK")))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment