diff options
| author | Shaun Jackman | 2014-05-23 16:03:37 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2014-05-28 06:17:03 -0700 | 
| commit | daab5653cbc4052b492997fe527702ce0febb26a (patch) | |
| tree | cb1c8e3ffd9560364b9d42e40fb1121a9f543931 /Library/Formula/apache-spark.rb | |
| parent | 02562f584f86ef50000fc6269835bd4d8d2b7d39 (diff) | |
| download | homebrew-daab5653cbc4052b492997fe527702ce0febb26a.tar.bz2 | |
apache-spark 0.9.1: New formula
Apache Spark is a fast and general engine for large-scale data
processing.
Closes #29534.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/apache-spark.rb')
| -rw-r--r-- | Library/Formula/apache-spark.rb | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/apache-spark.rb b/Library/Formula/apache-spark.rb new file mode 100644 index 000000000..2260579c0 --- /dev/null +++ b/Library/Formula/apache-spark.rb @@ -0,0 +1,19 @@ +require "formula" + +class ApacheSpark < Formula +  homepage "http://spark.apache.org/" +  head "https://github.com/apache/spark.git" +  url "http://d3kbcqa49mib13.cloudfront.net/spark-0.9.1-bin-hadoop2.tgz" +  version "0.9.1" +  sha1 "953cd042a8cc44d297af46cc6714e30d20554c4b" + +  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  | 
