0

如何从 MapGroupCompiler 中的 compileInFn 编写调试消息?随着ContextAwareLogger我得到一个序列化错误。

(像这样:

class Compiler(context: DriverContext, compilerConf: CompilerConfig)
  extends MapGroupCompiler[IntermediateData]
  with CompileOut1To1Fn[IntermediateData]
  with LayerDefinitions {

private val log = new ContextAwareLogger(this.getClass)
...
}

)

4

1 回答 1

0

我只需要扩展 ContextLogging

class Compiler(context: DriverContext, compilerConf: CompilerConfig)
  extends MapGroupCompiler[IntermediateData]
  with ContextLogging     // <--
  with CompileOut1To1Fn[IntermediateData]
  with LayerDefinitions {

  private val log = new ContextAwareLogger(this.getClass)

  ...
于 2018-05-09T07:40:20.687 回答