0
내 Scalding map reduce 코드에서 뭔가 잘못되었을 때 map-reduce 작업을 디버깅 할 수 있도록 특정 단계를 로그 아웃하고 싶습니다.Scalding에서 파일에 어떻게 로그합니까?
저울링 작업에 로깅을 추가하려면 어떻게해야합니까?
예.
import com.twitter.scalding._
class WordCountJob(args: Args) extends Job(args) {
//LOG: Starting job at time blah..
TextLine(args("input"))
.read
.flatMap('line -> 'word) {
line: String =>
line.trim.toLowerCase.split("\\W+")
}
.groupBy('word) { group => group.size('count) }
}
.write(Tsv(args("output")))
//LOG - ending job at time...
}