spark错误ERROR LiveListenerBus: SparkListenerBus has already stopped!

报错:ERROR LiveListenerBus: SparkListenerBus has already stopped!

报错位置:

if(configure.ifdebug){
  Common.colorful_println("print topItem_set_with_sort_feaNum:\n")
  topItem_set_with_sort_feaNum.foreach(ele=>{
    Common.colorful_println(str="topItem key: "+ele._1+"   topItem_id: "+ ele._2._1 + "   "+
      configure.topItem_order_fea+" :"+ ele._3.toString+"\n")
  })
}

其中topItem_set_with_sort_feaNum类型为RDD[(String, (String, Int, Int), Any)]。ele._3为Any,打印出错。

实际想打印的是ele._2._3,改正。

目前来看,这个错误是在打印日志时遇到未知的变量出现的。注意检查。

猜你喜欢

转载自blog.csdn.net/hongxingabc/article/details/81545131
今日推荐