2014-05-23 23:03:37 +00:00
|
|
|
class ApacheSpark < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Engine for large-scale data processing"
|
2015-03-13 18:56:50 +00:00
|
|
|
homepage "https://spark.apache.org/"
|
2016-03-11 17:51:15 +00:00
|
|
|
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"
|
2015-10-22 12:56:20 +00:00
|
|
|
head "https://github.com/apache/spark.git"
|
2014-05-23 23:03:37 +00:00
|
|
|
|
2015-10-22 12:56:20 +00:00
|
|
|
bottle :unneeded
|
2015-10-03 00:16:40 +00:00
|
|
|
|
2014-05-23 23:03:37 +00:00
|
|
|
def install
|
2015-05-05 22:24:12 +00:00
|
|
|
# Rename beeline to distinguish it from hive's beeline
|
|
|
|
mv "bin/beeline", "bin/spark-beeline"
|
|
|
|
|
2014-05-23 23:03:37 +00:00
|
|
|
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
|