class WordCount {
def theJob: Execution[Unit] =
TypedPipe.from(TextLine("tmp/alice.txt"))
.flatMap { _.split("\\s+") }
.map { word => (word, 1) }
.sumByKey
.writeExecution(TypedTsv("tmp/wc_out.text"))
}
object WordCountJob
extends ExecutionApp {
val jobClass = new WordCount
val job = jobClass.theJob
val u: Unit = job.waitFor(Config.default, Local(strictSources = true))
}
15/03/02 15:44:57 INFO property.AppProps: using app.id: 3CBCB5082FF94B54B7C6EBDD97E9893B
15/03/02 15:44:57 INFO util.Version: Concurrent, Inc - Cascading 2.6.1
15/03/02 15:44:57 INFO flow.Flow: [] starting
15/03/02 15:44:57 INFO flow.Flow: [] source: FileTap["TextLine[['offset', 'line']->[ALL]]"]["tmp/alice.txt"]
15/03/02 15:44:57 INFO flow.Flow: [] sink: FileTap["TextDelimited[[0:1]]"]["tmp/wc_out.text"]
15/03/02 15:44:57 INFO flow.Flow: [] parallel execution is enabled: true
15/03/02 15:44:57 INFO flow.Flow: [] starting jobs: 1
15/03/02 15:44:57 INFO flow.Flow: [] allocating threads: 1
15/03/02 15:44:57 INFO flow.FlowStep: [] starting step: local
15/03/02 15:44:58 INFO flow.Flow: [] starting
15/03/02 15:44:58 INFO flow.Flow: [] source: FileTap["TextLine[['offset', 'line']->[ALL]]"]["tmp/alice.txt"]
15/03/02 15:44:58 INFO flow.Flow: [] sink: FileTap["TextDelimited[[0:1]]"]["tmp/wc_out.text"]
15/03/02 15:44:58 INFO flow.Flow: [] parallel execution is enabled: true
15/03/02 15:44:58 INFO flow.Flow: [] starting jobs: 1
15/03/02 15:44:58 INFO flow.Flow: [] allocating threads: 1
15/03/02 15:44:58 INFO flow.FlowStep: [] starting step: local
--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/67953143-e0aa-4842-a7e0-9115529cd4f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yeah, I agree the default cascading logging is quite verbose. Often that is pretty nice. Sometimes it is annoying.I'm not log4j/slf4j master, but these are configurable to quiet the logs (I'm sure stackoverflow has some help here).
--
--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/67953143-e0aa-4842-a7e0-9115529cd4f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/9D41E04E-FCB4-489C-A7C9-841CF5BEC4F7%40wensel.net.
object WordCount extends ExecutionApp {
override def job =
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/CAEF2%2BMi-AfCCFEXJW8nXu6E-fBc-ZGx9D6vBDHTy6Ukkh%2B785A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/1d2eef4f-369d-4c2d-aa3d-d39bc4333d98%40googlegroups.com.