Spark losing println() on stdout

后端 未结 2 1694
不知归路
不知归路 2020-11-27 07:15

I have the following code:

val blueCount = sc.accumulator[Long](0)
val output = input.map { data =>
  for (value <- data.getValues()) {
    if (record.         


        
2条回答
  •  借酒劲吻你
    2020-11-27 07:36

    I was able to work it around by making a utility function:

    object PrintUtiltity {
        def print(data:String) = {
          println(data)
        }
    }
    

提交回复
热议问题