码迷,mamicode.com
首页 > 其他好文 > 详细

spark 编译遇到的错误及解决办法(五)

时间:2017-02-25 21:41:08      阅读:520      评论:0      收藏:0      [点我收藏+]

标签:.so   director   clu   could not   div   exception   tar   closed   conf   

终端错误提示:

Saving to outputFile=/usr/spark/spark-2.0.2/streaming/target/scalastyle-output.xml
Processed 195 file(s)
Found 101 errors

打开scalastyle-output.xml文件后,发现错误全是由scalastyle引起的,类似:

<file name="/usr/spark/spark-2.0.2/streaming/src/main/scala/org/apache/spark/streaming/util/._FileBasedWriteAheadLogReader.scala"><error severity="error" message="Could not read file, caught MalformedInputException"/></file>

对于这种问题的解决,是打开pom.xml,找到scalastyle标签,将配置标签下的true都改为false

技术分享
<plugin><groupId>org.scalastyle</groupId><artifactId>scalastyle-maven-plugin</artifactId><version>0.8.0</version><configuration><verbose>false</verbose><failOnViolation>true</failOnViolation><includeTestSourceDirectory>false</includeTestSourceDirectory><failOnWarning>false</failOnWarning><sourceDirectory>${basedir}/src/main/scala</sourceDirectory><testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory><configLocation>scalastyle-config.xml</configLocation><outputFile>${basedir}/target/scalastyle-output.xml</outputFile><inputEncoding>${project.build.sourceEncoding}</inputEncoding><outputEncoding>${project.reporting.outputEncoding}</outputEncoding></configuration>
View Code

 

spark 编译遇到的错误及解决办法(五)

标签:.so   director   clu   could not   div   exception   tar   closed   conf   

原文地址:http://www.cnblogs.com/o-din/p/6442615.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!