apache-spark@1.5: import from homebrew/versions.

master
Mike McQuaid 2017-01-01 20:18:40 +00:00
parent 2c36cc5632
commit e4f86b4679
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
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

View File

@ -4,6 +4,7 @@
"ansible20": "ansible@20", "ansible20": "ansible@20",
"antlr2": "antlr@2", "antlr2": "antlr@2",
"antlr3": "antlr@3", "antlr3": "antlr@3",
"apache-spark15": "apache-spark@15",
"beanstalk": "beanstalkd", "beanstalk": "beanstalkd",
"cloog-ppl015": "cloog@0.15", "cloog-ppl015": "cloog@0.15",
"cloog018": "cloog", "cloog018": "cloog",