用idea+maven编译打包spark project core错误:java.lang.RuntimeException: Unable to load a Suite class
2024-09-01 09:08:15
Discovery starting.
*** RUN ABORTED ***
java.lang.RuntimeException: Unable to load a Suite class that was discovered in the runpath: org.apache.spark.util.MutableURLClassLoaderSuite
at org.scalatest.tools.DiscoverySuite$.getSuiteInstance(DiscoverySuite.scala:84)
at org.scalatest.tools.DiscoverySuite$$anonfun$1.apply(DiscoverySuite.scala:38)
at org.scalatest.tools.DiscoverySuite$$anonfun$1.apply(DiscoverySuite.scala:37)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
...
Cause: java.lang.NullPointerException:
at org.apache.spark.TestUtils$.createCompiledClass(TestUtils.scala:142)
at org.apache.spark.TestUtils$.createCompiledClass(TestUtils.scala:168)
at org.apache.spark.TestUtils$$anonfun$2.apply(TestUtils.scala:65)
at org.apache.spark.TestUtils$$anonfun$2.apply(TestUtils.scala:64)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.immutable.List.map(List.scala:285)
at org.apache.spark.TestUtils$.createJarWithClasses(TestUtils.scala:64)
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:00 min
[INFO] Finished at: 2018-05-08T17:34:42+08:00
[INFO] Final Memory: 78M/825M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scalatest:scalatest-maven-plugin:1.0:test (test) on project spark-core_2.11: There are test failures -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
错误2:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:18 min
[INFO] Finished at: 2018-05-09T16:28:40+08:00
[INFO] Final Memory: 59M/1296M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project spark-core_2.11: There are test failures.
[ERROR]
[ERROR] Please refer to D:\...\core\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
未解决。
最新文章
- cas单点登录时报Invalid credentials
- Homework 1 -- The beginning
- 邻接表有向图(一)之 C语言详解
- (编辑器)Jquery-EasyUI集合Kindeditor编辑器
- 向Web开发人员推荐12款优秀的 Twitter Bootstrap 组件和工具
- 九度oj 1523 从上往下打印二叉树
- 【PHPsocket编程专题(理论篇)】初步理解TCP/IP、Http、Socket.md
- Deployment of VC2008 apps without installing anything
- HDOJ 2056 Rectangles
- Dubbo、Zookeeper、SpringMVC的整合使用
- Web开发者的10个最好的云开发环境
- Spring的bean管理(注解)
- 如何在Linux中轻松删除源安装的软件包?
- ubuntu 16.04 主题美化及终端美化
- C# 窗体间传值
- linux系统centOS7下搭建redis集群中ruby版本过低问题的解决方法
- HDOJ 1770 - 阅读理解...树形DP
- AVAudioSession应用指南
- Python Web学习笔记之TCP的3次握手与4次挥手过程
- 20145310《网络对抗》注入shellcode及Return-to-libc