2015-05-12 17:47:07 +00:00
|
|
|
class ApacheDrill < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Schema-free SQL query engine for Hadoop and NoSQL"
|
2015-05-12 17:47:07 +00:00
|
|
|
homepage "https://drill.apache.org/download/"
|
2015-08-06 17:55:19 +00:00
|
|
|
url "https://www.apache.org/dyn/closer.cgi?path=drill/drill-1.1.0/apache-drill-1.1.0.tar.gz"
|
|
|
|
mirror "http://getdrill.org/drill/download/apache-drill-1.1.0.tar.gz"
|
|
|
|
sha256 "04b6b21eb526f0491050a432f7d2bbea77d0bf231ac404843840c604310a41d2"
|
2015-05-12 17:47:07 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
2015-06-03 20:13:56 +00:00
|
|
|
bin.write_exec_script Dir["#{libexec}/bin/*"]
|
2015-05-12 17:47:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-06-03 20:13:56 +00:00
|
|
|
pipe_output("#{bin}/sqlline -u jdbc:drill:zk=local", "!tables", 0)
|
2015-05-12 17:47:07 +00:00
|
|
|
end
|
|
|
|
end
|