homebrew-core/Formula/apache-spark.rb
Karl Higley be5d7bcf20 apache-spark 1.4.0
Closes Homebrew/homebrew#40596.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-12 22:35:52 +01:00

23 lines
692 B
Ruby

require "formula"
class ApacheSpark < Formula
desc "Engine for large-scale data processing"
homepage "https://spark.apache.org/"
head "https://github.com/apache/spark.git"
url "https://www.apache.org/dyn/closer.cgi?path=spark/spark-1.4.0/spark-1.4.0-bin-hadoop2.6.tgz"
version "1.4.0"
sha256 "19c7b4b58f3b84bed513d4d532344290d104dc394fb74c6b7bdbabab69e1f605"
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