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

shane knapp commented on SPARK-4021:
------------------------------------

ok, i can believe that it doesn't have anything to do w/openjdk.  i DO believe 
that jenkins is behaving badly, and defaulting to the system JDK when it 
absolutely shouldn't have (which apparently clobbers the JAVA_HOME env).

the 'something else in play' is still bugging me, though.  if spark compiles 
happily w/openjdk7, then what's targeting 1.5 or earlier?

i'll mess around and compile from the CLI and see what i can find.

> Issues observed after upgrading Jenkins to JDK7u71
> --------------------------------------------------
>
>                 Key: SPARK-4021
>                 URL: https://issues.apache.org/jira/browse/SPARK-4021
>             Project: Spark
>          Issue Type: Bug
>          Components: Project Infra
>         Environment: JDK 7u71
>            Reporter: Patrick Wendell
>            Assignee: shane knapp
>
> The following compile failure was observed after adding JDK7u71 to Jenkins. 
> However, this is likely a misconfiguration from Jenkins rather than an issue 
> with Spark (these errors are specific to JDK5, in fact).
> {code}
> [error] ----------
> [error] 1. WARNING in 
> /home/jenkins/workspace/Spark-Master-SBT/AMPLAB_JENKINS_BUILD_PROFILE/hadoop1.0/label/centos/extras/kinesis-asl/src/main/java/org/apache/spark/examples/streaming/JavaKinesisWordCountASL.java
>  (at line 83)
> [error]       private static final Logger logger = 
> Logger.getLogger(JavaKinesisWordCountASL.class);
> [error]                                   ^^^^^^
> [error] The field JavaKinesisWordCountASL.logger is never read locally
> [error] ----------
> [error] 2. WARNING in 
> /home/jenkins/workspace/Spark-Master-SBT/AMPLAB_JENKINS_BUILD_PROFILE/hadoop1.0/label/centos/extras/kinesis-asl/src/main/java/org/apache/spark/examples/streaming/JavaKinesisWordCountASL.java
>  (at line 151)
> [error]       JavaDStream<String> words = unionStreams.flatMap(new 
> FlatMapFunction<byte[], String>() {
> [error]                                                            
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [error] The serializable class  does not declare a static final 
> serialVersionUID field of type long
> [error] ----------
> [error] 3. ERROR in 
> /home/jenkins/workspace/Spark-Master-SBT/AMPLAB_JENKINS_BUILD_PROFILE/hadoop1.0/label/centos/extras/kinesis-asl/src/main/java/org/apache/spark/examples/streaming/JavaKinesisWordCountASL.java
>  (at line 153)
> [error]       public Iterable<String> call(byte[] line) {
> [error]                               ^^^^^^^^^^^^^^^^^
> [error] The method call(byte[]) of type new 
> FlatMapFunction<byte[],String>(){} must override a superclass method
> [error] ----------
> [error] 4. WARNING in 
> /home/jenkins/workspace/Spark-Master-SBT/AMPLAB_JENKINS_BUILD_PROFILE/hadoop1.0/label/centos/extras/kinesis-asl/src/main/java/org/apache/spark/examples/streaming/JavaKinesisWordCountASL.java
>  (at line 160)
> [error]       new PairFunction<String, String, Integer>() {
> [error]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [error] The serializable class  does not declare a static final 
> serialVersionUID field of type long
> [error] ----------
> [error] 5. ERROR in 
> /home/jenkins/workspace/Spark-Master-SBT/AMPLAB_JENKINS_BUILD_PROFILE/hadoop1.0/label/centos/extras/kinesis-asl/src/main/java/org/apache/spark/examples/streaming/JavaKinesisWordCountASL.java
>  (at line 162)
> [error]       public Tuple2<String, Integer> call(String s) {
> [error]                                      ^^^^^^^^^^^^^^
> [error] The method call(String) of type new 
> PairFunction<String,String,Integer>(){} must override a superclass method
> [error] ----------
> [error] 6. WARNING in 
> /home/jenkins/workspace/Spark-Master-SBT/AMPLAB_JENKINS_BUILD_PROFILE/hadoop1.0/label/centos/extras/kinesis-asl/src/main/java/org/apache/spark/examples/streaming/JavaKinesisWordCountASL.java
>  (at line 165)
> [error]       }).reduceByKey(new Function2<Integer, Integer, Integer>() {
> [error]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [error] The serializable class  does not declare a static final 
> serialVersionUID field of type long
> [error] ----------
> [error] 7. ERROR in 
> /home/jenkins/workspace/Spark-Master-SBT/AMPLAB_JENKINS_BUILD_PROFILE/hadoop1.0/label/centos/extras/kinesis-asl/src/main/java/org/apache/spark/examples/streaming/JavaKinesisWordCountASL.java
>  (at line 167)
> [error]       public Integer call(Integer i1, Integer i2) {
> [error]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [error] The method call(Integer, Integer) of type new 
> Function2<Integer,Integer,Integer>(){} must override a superclass method
> [error] ----------
> [error] 7 problems (3 errors, 4 warnings)
> {code}



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

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

Reply via email to