zoukankan      html  css  js  c++  java
  • spark 编译遇到的错误及解决办法(五)

    终端错误提示:

    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
  • 相关阅读:
    Go语言从入门到放弃(结构体常见的tag)
    Go语言从入门到放弃(设置 go get 为国内源)
    AndroidStuidio安装
    ADB常用命令
    win10安装Nodejs
    VsCode配置Go语言插件
    Visual Studio Code使用指南
    Go语言从入门到放弃(四)
    CentOs7.5安装Redis
    InnoDB INFORMATION_SCHEMA FULLTEXT Index Tables
  • 原文地址:https://www.cnblogs.com/o-din/p/6442615.html
Copyright © 2011-2022 走看看