Last active
September 16, 2015 09:37
-
-
Save tmbo/5efc432c7c31c26dadcd to your computer and use it in GitHub Desktop.
brew-spark-1.2.2-hadoop-1.0.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "formula" | |
class ApacheSpark < Formula | |
homepage "http://spark.apache.org/" | |
head "https://github.com/apache/spark.git" | |
url "http://d3kbcqa49mib13.cloudfront.net/spark-1.2.2-bin-hadoop1.tgz" | |
version "1.2.2" | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment