You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/12/09 20:35:11 UTC

[jira] [Resolved] (SPARK-12223) Warn users if Spark 1.5 is run on JRE6

     [ https://issues.apache.org/jira/browse/SPARK-12223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-12223.
-------------------------------
    Resolution: Won't Fix

I don't think Yosemite has Java 6? or mine doesn't at least. I don't know that you can reliably detect and report this error, since the failure comes pretty early. Spark was on Java 7 in 1.4, I think? so this is pretty old news. I agree, I do not see much value in adding more code to try to report this. Spark may be onto Java 8 in 2.x, even.

> Warn users if Spark 1.5 is run on JRE6
> --------------------------------------
>
>                 Key: SPARK-12223
>                 URL: https://issues.apache.org/jira/browse/SPARK-12223
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.5.0, 1.5.1, 1.5.2
>         Environment: $ uname -a
> Darwin grixis 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep  1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
> $ java -version
> java version "1.6.0_65"
> Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
> Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
>            Reporter: Dan Adkins
>
> I downloaded the latest release (1.5.2) from [http://spark.apache.org/downloads.html] and attempted to execute step 1 of the Python quick start guide [http://spark.apache.org/docs/latest/quick-start.html].
> $ ./bin/pyspark 
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/launcher/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.spark.launcher.Main
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> This looks similar to SPARK-1703 which is caused by attempting to run a Java7 jar with JRE 6. I reproduced the problem with all of the 1.5.x releases. This problem doesn't exist for me in version 1.4.1.



--
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