b8731cde32
Apache spark bumped to 1.1.0 Closes Homebrew/homebrew#32256. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
19 lines
491 B
Ruby
19 lines
491 B
Ruby
require "formula"
|
|
|
|
class ApacheSpark < Formula
|
|
homepage "http://spark.apache.org/"
|
|
head "https://github.com/apache/spark.git"
|
|
url "http://d3kbcqa49mib13.cloudfront.net/spark-1.1.0-bin-hadoop2.4.tgz"
|
|
version "1.1.0"
|
|
sha1 "c7cf50454ac77014fa0f3a7f7a627f93a60fcac2"
|
|
|
|
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
|