spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian O'Keefe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-6532) LDAModel.scala fails scalastyle on Windows
Date Wed, 25 Mar 2015 16:32:53 GMT

    [ https://issues.apache.org/jira/browse/SPARK-6532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14380173#comment-14380173
] 

Brian O'Keefe commented on SPARK-6532:
--------------------------------------

If I add the --inputEncoding UTF-8 parameter to the scalastyle-batch jar (downloaded from
the scalastyle site), then it seems to work without warning.  Modifying the root POM file
to include the parameter (<inputEncoding>UTF-8</inputEncoding>) appears to have
resolved the issue.  I'll add a comment to confirm when build has completed.

C:\Users\u6013553>java -jar C:\Users\u6013553\Downloads\scalastyle_2.10-0.6.0-batch.jar
-c C:\Users\u6013553\spark-1.3.0\spark-1.3.0\scalastyle-config
.xml -v true --inputEncoding UTF-8 C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala
Processed 143 file(s)
Found 0 errors
Found 0 warnings
Finished in 2556 ms

C:\Users\u6013553>java -jar C:\Users\u6013553\Downloads\scalastyle_2.10-0.6.0-batch.jar
-c C:\Users\u6013553\spark-1.3.0\spark-1.3.0\scalastyle-config
.xml -v true C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala
error file=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala\org\apache\spark\mllib\clustering\LDAModel.scala
message=Input length = 1
Processed 143 file(s)
Found 1 errors
Found 0 warnings
Finished in 2640 ms

pom.xml snippet
      <plugin>
        <groupId>org.scalastyle</groupId>
        <artifactId>scalastyle-maven-plugin</artifactId>
        <version>0.4.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>scalastyle-output.xml</outputFile>
          <outputEncoding>UTF-8</outputEncoding>
          <inputEncoding>UTF-8</inputEncoding>
        </configuration>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

> LDAModel.scala fails scalastyle on Windows
> ------------------------------------------
>
>                 Key: SPARK-6532
>                 URL: https://issues.apache.org/jira/browse/SPARK-6532
>             Project: Spark
>          Issue Type: Bug
>          Components: Build, Windows
>    Affects Versions: 1.3.0
>         Environment: Windows 7, Maven 3.1.0
>            Reporter: Brian O'Keefe
>            Priority: Minor
>
> When executing mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.5.2 -DskipTests -X clean package,
the build fails with the error:
> [DEBUG] Configuring mojo org.scalastyle:scalastyle-maven-plugin:0.4.0:check from plugin
realm ClassRealm[plugin>org.sca
> astyle:scalastyle-maven-plugin:0.4.0, parent: sun.misc.Launcher$AppClassLoader@1174ec5]
> [DEBUG] Configuring mojo 'org.scalastyle:scalastyle-maven-plugin:0.4.0:check' with basic
configurator -->
> [DEBUG]   (f) baseDirectory = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib
> [DEBUG]   (f) buildDirectory = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\target
> [DEBUG]   (f) configLocation = scalastyle-config.xml
> [DEBUG]   (f) failOnViolation = true
> [DEBUG]   (f) failOnWarning = false
> [DEBUG]   (f) includeTestSourceDirectory = false
> [DEBUG]   (f) outputEncoding = UTF-8
> [DEBUG]   (f) outputFile = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\scalastyle-output.xml
> [DEBUG]   (f) quiet = false
> [DEBUG]   (f) skip = false
> [DEBUG]   (f) sourceDirectory = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala
> [DEBUG]   (f) testSourceDirectory = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\test\scala
> [DEBUG]   (f) verbose = false
> [DEBUG]   (f) project = MavenProject: org.apache.spark:spark-mllib_2.10:1.3.0 @ C:\Users\u6013553\spark-1.3.0\spark-1.3
> 0\mllib\dependency-reduced-pom.xml
> [DEBUG] -- end configuration --
> [DEBUG] failOnWarning=false
> [DEBUG] verbose=false
> [DEBUG] quiet=false
> [DEBUG] sourceDirectory=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala
> [DEBUG] includeTestSourceDirectory=false
> [DEBUG] buildDirectory=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\target
> [DEBUG] baseDirectory=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib
> [DEBUG] outputFile=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\scalastyle-output.xml
> [DEBUG] outputEncoding=UTF-8
> [DEBUG] inputEncoding=null
> [DEBUG] processing sourceDirectory=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala
encoding=null
> error file=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala\org\apache\spark\mllib\clustering\LDAModel.sc
> la message=Input length = 1
> Saving to outputFile=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\scalastyle-output.xml
> Processed 143 file(s)
> Found 1 errors
> Found 0 warnings
> Found 0 infos
> Finished in 1571 ms
> scalastyle-output.xml reports
> <?xml version="1.0" encoding="UTF-8"?>
> <checkstyle version="5.0">
>  <file name="C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala\org\apache\spark\mllib\clustering\LDAModel.scala">
>   <error severity="error" message="Input length = 1"></error>
>  </file>
> </checkstyle>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message