diff --git a/Formula/apache-spark@1.5.rb b/Formula/apache-spark@1.5.rb new file mode 100644 index 0000000000..d8633b4d9f --- /dev/null +++ b/Formula/apache-spark@1.5.rb @@ -0,0 +1,25 @@ +class ApacheSparkAT15 < Formula + desc "Engine for large-scale data processing" + homepage "https://spark.apache.org" + url "https://d3kbcqa49mib13.cloudfront.net/spark-1.5.2-bin-hadoop2.6.tgz" + version "1.5.2" + sha256 "409c4b34f196acc5080b893b0579cda000c192fc4cc9336009395b2a559b676e" + + bottle :unneeded + + conflicts_with "apache-spark", :because => "Differing version of same formula" + conflicts_with "apache-spark@1.6", :because => "Differing version of same formula" + + def install + # Rename beeline to distinguish it from hive's beeline + mv "bin/beeline", "bin/spark-beeline" + + 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 diff --git a/formula_renames.json b/formula_renames.json index aefc70dcf0..dbab1d7067 100644 --- a/formula_renames.json +++ b/formula_renames.json @@ -4,6 +4,7 @@ "ansible20": "ansible@20", "antlr2": "antlr@2", "antlr3": "antlr@3", + "apache-spark15": "apache-spark@15", "beanstalk": "beanstalkd", "cloog-ppl015": "cloog@0.15", "cloog018": "cloog",