2017年2月16日星期四

sbt test ERROR SparkContext: Error initializing SparkContext.

参考http://stackoverflow.com/questions/41887273/sparkcontext-error-running-in-sbt-there-is-already-an-rpcendpoint-called-localb

sbt默认同时运行所有的test,但spark context只能有一个。

在build.sbt中增加:
parallelExecution in Test := false

解决问题。

没有评论:

发表评论