fedc32d5f1
Updating Spark to version 1.6.1 https://spark.apache.org/releases/spark-release-1-6-1.html Closes Homebrew/homebrew#50029. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
23 lines
693 B
Ruby
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.1/spark-1.6.1-bin-hadoop2.6.tgz"
|
|
version "1.6.1"
|
|
sha256 "09f3b50676abc9b3d1895773d18976953ee76945afa72fa57e6473ce4e215970"
|
|
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
|