赞
踩
tar -xf spark-2.2.0-bin-hadoop2.7.tgz
cd spark-2.2.0-bin-hadoop2.7/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E:unable to lock the administration directory (/var/lib/dpkg/),is another process using it
xxxxxx@ubuntu:~/spark-2.2.0-bin-hadoop2.7$ ./bin/pyspark
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 64
at java.util.jar.JarFile.match(java.base@9-internal/JarFile.java:983)
at java.util.jar.JarFile.checkForSpecialAttributes(java.base@9-internal/JarFile.java:1017)
……
sudo apt-get install default-jdk
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
参考:
http://blog.csdn.net/i973635025/article/details/77863129
https://linux.cn/article-8040-1.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。