homebrew-core/Formula/apache-spark.rb
Zachary Nanfelt 99ab1e242b apache-spark 1.6.0
Updating brew apache-spark to latest version

Closes Homebrew/homebrew#47689.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-05 09:32:25 +00:00

23 lines
693 B
Ruby

class ApacheSpark < Formula
desc "Engine for large-scale data processing"
homepage "https://spark.apache.org/"
url "https://www.apache.org/dyn/closer.lua?path=spark/spark-1.6.0/spark-1.6.0-bin-hadoop2.6.tgz"
version "1.6.0"
sha256 "439fe7793e0725492d3d36448adcd1db38f438dd1392bffd556b58bb9a3a2601"
head "https://github.com/apache/spark.git"
bottle :unneeded
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