错误:无效或损坏的jar文件SBT / SBT-的启动0.13.5.jar

问题描述:

我一直在尝试使用安装火花tutorial每次我运行命令SBT /舒巴坦组装,我得到的错误错误:无效或损坏的jar文件SBT / SBT-的启动0.13.5.jar

I have been trying to install spark using the tutorial and everytime I run the command sbt/sbt assembly, I get the error "Error: Invalid or corrupt jarfile sbt/sbt-launch-0.13.5.jar"

我已经尝试了一切:单独添加SBT文件火花文件夹中的文件夹SBT单独安装SBT,检查下载然后重新安装过,但不成功。什么我做错了什么建议吗?谢谢你。

I have tried everything: seperately adding the sbt file to the sbt folder in the spark folder, installing sbt individually, checking the download and reinstalling it over again, but in vain. Any advice about what I am doing wrong? Thanks.

好了,玩了一段时间,我终于得到了它,并希望这会为你工作后藏汉。该教程建立火花,在那里他们提供prebuilt二进制文件。我使用的是星火1.2.0只是作为一个音符(1.4.1不会为我工作)

Ok, After playing around for a while I finally got it and hopefully this will work for you aswell. That tutorial builds spark, where they do provide prebuilt binaries. I'm using Spark 1.2.0 just as a note (1.4.1 wouldn't work for me)

这是在Ubuntu 15.04,但应该在14.04的工作方式相同

This is on Ubuntu 15.04 but should work on 14.04 the same

1)从您的.bashrc删除以下行

1) Remove the following lines from your bashrc

export SCALA_HOME=/usr/local/src/scala/scala-2.10.4
export PATH=$SCALA_HOME/bin:$PATH

2)删除并重新安装斯卡拉

2) Remove and reinstall scala

sudo rm -rf /usr/local/src/scala
# The following line is only needed if you installed scala another way, if so remove the #
# sudo apt-get remove scala-library scala
wget http://www.scala-lang.org/files/archive/scala-2.11.7.deb
sudo dpkg -i scala-2.11.7.deb
sudo apt-get update
sudo apt-get install scala

3)下载 preBuilt Spark和提取物

wget http://d3kbcqa49mib13.cloudfront.net/spark-1.2.0-bin-hadoop2.4.tgz
tar -xzvf spark-1.2.0-bin-hadoop2.4.tgz 

4)运行火花壳

4) Run spark-shell

cd spark-1.2.0-bin-hadoop2.4/
./bin/spark-shell

源(基本上,我已经读出,该解决方案已经尝试和错误)

https://chongyaorobin.word$p$pss.com/2015/07/01/step-by-step-of-installing-apache-spark-on-apache-hadoop/

https://gist.github.com/visenger/5496675