class ApacheSpark < Formula desc "Engine for large-scale data processing" homepage "https://spark.apache.org/" url "https://www.apache.org/dyn/closer.lua?path=spark/spark-2.0.0/spark-2.0.0-bin-hadoop2.7.tgz" version "2.0.0" sha256 "3d46e990c06a362efc23683cf0ec15e1943c28e023e5b5d4e867c78591c937ad" head "https://github.com/apache/spark.git" bottle :unneeded 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