请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

还是Spark编译问题

https://img1.sycdn.imooc.com/szimg//598ab56000010cb618850862.jpg

Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (scala-compile-first) on project spark-sketch_2.10: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile failed. CompileFailed -> [Help 1]

我按照您的课程和自己百度的,更改了scala版本之后还是报这个错

已经使用了这个命令

./dev/change-scala-version.sh 2.11



warn图片

https://img1.sycdn.imooc.com/szimg//598bb4510001c21e12390491.jpg


添加-X之后的报错截图

https://img1.sycdn.imooc.com/szimg//598c62400001603e18840846.jpg



将zinc加速服务停止是这样吗?

https://img1.sycdn.imooc.com/szimg//598d279a0001a39109700621.jpg


<useZincForJdk8>false</useZincForJdk8>更改为false之后还是报错


https://img1.sycdn.imooc.com/szimg//598d279b000134e711920756.jpg


https://img1.sycdn.imooc.com/szimg//598d27ab0001769518880873.jpg


正在回答 回答被采纳积分+3

2回答

Michael_PK 2017-08-09 16:18:12

编译之前,jps下,把没用的进程全kill掉

0 回复 有任何疑惑可以回复我~
  • 提问者 若鸟 #1
    按照您的操作 kill -9  进程号 了,还是报同样的错误,重新再编译了一次,显示这样的warn
    warn] Pruning sources from previous analysis, due to incompatible CompileSetup.
    [info] Compiling 40 Scala sources and 8 Java sources to /root/source/spark-2.1.0/streaming/target/scala-2.11/test-classes...
    [warn] /root/source/spark-2.1.0/core/src/test/scala/org/apache/spark/storage/BlockReplicationPolicySuite.scala:32: implicit conversion method StringToBlockId should be enabled
    [warn] by making the implicit value scala.language.implicitConversions visible.
    [warn] This can be achieved by adding the import clause 'import scala.language.implicitConversions'
    [warn] or by setting the compiler option -language:implicitConversions.
    [warn] See the Scaladoc for value scala.language.implicitConversions for a discussion
    [warn] why the feature should be explicitly enabled.
    [warn]   private implicit def StringToBlockId(value: String): BlockId = new TestBlockId(value)
    [warn]
    回复 有任何疑惑可以回复我~ 2017-08-10 09:17:22
  • warn不用管的,别error就行
    回复 有任何疑惑可以回复我~ 2017-08-10 09:28:02
  • 提问者 若鸟 #3
    还是不行呢老师
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 08:27 min
    [INFO] Finished at: 2017-08-10T11:37:28+08:00
    [INFO] Final Memory: 64M/283M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (scala-compile-first) on project spark-core_2.11: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile failed. CompileFailed -> [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/PluginExecutionException
    [ERROR] 
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :spark-core_2.11
    [root@iZwz9bs81xbapacw2j9d3jZ spark-2.1.0]# jps
    32296 Jps
    回复 有任何疑惑可以回复我~ 2017-08-10 20:35:58
提问者 若鸟 2017-08-09 15:13:07

而且pom文件已经更改,我还按照您的手记做过一遍,仍然报错

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信