2014-05-23 23:03:37 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class ApacheSpark < Formula
|
2015-03-13 18:56:50 +00:00
|
|
|
homepage "https://spark.apache.org/"
|
2014-05-23 23:03:37 +00:00
|
|
|
head "https://github.com/apache/spark.git"
|
2015-04-20 15:51:16 +00:00
|
|
|
url "https://d3kbcqa49mib13.cloudfront.net/spark-1.3.1-bin-hadoop2.6.tgz"
|
2015-04-20 14:08:57 +00:00
|
|
|
version "1.3.1"
|
|
|
|
sha1 "86911b6c8964230a93691bd45589f491c10d36c0"
|
2014-05-23 23:03:37 +00:00
|
|
|
|
2014-12-01 11:36:03 +00:00
|
|
|
conflicts_with 'hive', :because => 'both install `beeline` binaries'
|
|
|
|
|
2014-05-23 23:03:37 +00:00
|
|
|
def install
|
|
|
|
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
|