我想在Debian Jessie中安装Apache Spark。
我已正确安装Oracle Java 7,并按照安装Scala的步骤进行操作:
sudo mkdir /usr/local/src/scala
sudo tar -xvf scala-2.11.7.tgz -C /usr/local/src/scala/
nano .bashrc
export SCALA_HOME=/usr/local/src/scala/scala-2.11.7
export PATH=$SCALA_HOME/bin:$PATH
尽管我已多次检查每个步骤,但在检查Scala是否已正确安装(scala -version
)时会给出以下输出:
diego@DESKTOP-M93VP0O:~$ scala -version
cat: (/usr/lib/jvm/java-7-oracle/)/release: No such file or directory
Exception in thread "main" java.lang.UnsupportedClassVersionError: scala/tools/nsc/MainGenericRunner : Unsupported major.minor version 52.0
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1070)
at java.lang.ClassLoader.loadClass(ClassLoader.java:414)
at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
我是linux的新手。我想知道如何解决问题(我已按照以下视频https://www.youtube.com/watch?v=eQ0nPdfVfc0的步骤进行操作。)