homebrew-core/Formula/apache-spark.rb
Pat Shields c3f866e8bb apache-spark 1.3.0
Update apache spark to 1.3.0

Closes Homebrew/homebrew#37688.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-13 18:01:45 +00:00

21 lines
563 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.3.0-bin-hadoop2.4.tgz"
version "1.3.0"
sha1 "d94f2847bf92dd6e5a388c8126207cfe57e2c85e"
conflicts_with 'hive', :because => 'both install `beeline` binaries'
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