homebrew-core/Formula/apache-spark@1.5.rb
2017-01-03 20:05:36 +00:00

25 lines
795 B
Ruby

class ApacheSparkAT15 < Formula
desc "Engine for large-scale data processing"
homepage "https://spark.apache.org"
url "https://d3kbcqa49mib13.cloudfront.net/spark-1.5.2-bin-hadoop2.6.tgz"
version "1.5.2"
sha256 "409c4b34f196acc5080b893b0579cda000c192fc4cc9336009395b2a559b676e"
bottle :unneeded
conflicts_with "apache-spark", :because => "Differing version of same formula"
conflicts_with "apache-spark@1.6", :because => "Differing version of same formula"
def install
# Rename beeline to distinguish it from hive's beeline
mv "bin/beeline", "bin/spark-beeline"
rm_f Dir["bin/*.cmd"]
libexec.install Dir["*"]
bin.write_exec_script Dir["#{libexec}/bin/*"]
end
test do
system "#{bin}/spark-shell <<<'sc.parallelize(1 to 1000).count()'"
end
end