count breaks my queries

30 views
Skip to first unread message

Oskar

unread,
Nov 28, 2012, 2:54:59 AM11/28/12
to cascal...@googlegroups.com
Hi!

I have some data that are 2-tuples. This query works:

(?<- (stdout) [?user ?events] (data ?user ?events)) ;WORKS

But these:

(?<- (stdout) [?count] (data ?user ?events) (c/count ?count)) ;NOT WORKING
(?<- (stdout) [?count] (data _ _) (c/count ?count)) ;NOT WORKING

cause this:

cascading.flow.FlowException: local step failed
 at cascading.flow.planner.FlowStepJob.blockOnJob (FlowStepJob.java:191)
    cascading.flow.planner.FlowStepJob.start (FlowStepJob.java:137)
    cascading.flow.planner.FlowStepJob.call (FlowStepJob.java:122)
    cascading.flow.planner.FlowStepJob.call (FlowStepJob.java:42)
    java.util.concurrent.FutureTask$Sync.innerRun (:-1)
    java.util.concurrent.FutureTask.run (:-1)
    java.util.concurrent.ThreadPoolExecutor.runWorker (:-1)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (:-1)
    java.lang.Thread.run (:-1)


My namespace, if that matters:

(ns querytest
  (:require [cascalog.ops :as c])
  (:use cascalog.api 
        [cascalog.io :only [with-log-level]]))

What's going on?



Andy Xue

unread,
Nov 28, 2012, 11:58:46 AM11/28/12
to cascal...@googlegroups.com
i think you are missing a :> ?

Oskar

unread,
Nov 28, 2012, 12:16:35 PM11/28/12
to cascal...@googlegroups.com

Paul Lam

unread,
Nov 29, 2012, 5:06:39 AM11/29/12
to cascal...@googlegroups.com
I tried this in bootstrap and it works: (?<- (stdout) [?count] (age ?person ?age) (c/count ?count))

what's your `data`? is it a sub-query?

Oskar

unread,
Dec 4, 2012, 10:18:57 AM12/4/12
to cascal...@googlegroups.com
Yeah, it was a problem with my hadoop install.
Reply all
Reply to author
Forward
0 new messages