apache-zeppelin 0.7.0 (#11147)

This commit is contained in:
forlic 2017-03-17 13:45:01 +03:00 committed by FX Coudert
parent f1633d84c4
commit f3fd566a09

View file

@ -1,8 +1,8 @@
class ApacheZeppelin < Formula
desc "Web-based notebook that enables interactive data analytics"
homepage "https://zeppelin.apache.org"
url "https://www.apache.org/dyn/closer.lua?path=zeppelin/zeppelin-0.6.2/zeppelin-0.6.2-bin-all.tgz"
sha256 "618e0216656925125d0633b194adcac800d023ac1681dd01009a67e0ffd0bf87"
url "https://www.apache.org/dyn/closer.lua?path=zeppelin/zeppelin-0.7.0/zeppelin-0.7.0-bin-all.tgz"
sha256 "196f92122f3c109ddbf48bce50b3bb9d873f351c414b858d90d105f07e379bb1"
head "https://github.com/apache/zeppelin.git"
bottle :unneeded
@ -23,14 +23,16 @@ class ApacheZeppelin < Formula
(conf/"zeppelin-env.sh").write <<-EOF.undent
export ZEPPELIN_WAR_TEMPDIR="#{testpath}/webapps"
export ZEPPELIN_PORT=9999
export ZEPPELIN_NOTEBOOK_DIR="#{testpath}/notebooks"
export ZEPPELIN_MEM="-Xms256m -Xmx1024m -XX:MaxPermSize=256m"
EOF
ln_s "#{libexec}/conf/log4j.properties", conf
ln_s "#{libexec}/conf/shiro.ini", conf
system "#{bin}/zeppelin-daemon.sh", "start"
begin
sleep 10
sleep 25
json_text = shell_output("curl -s http://localhost:9999/api/notebook/")
assert_operator JSON.parse(json_text)["body"].length, :>=, 1
assert_equal JSON.parse(json_text)["status"], "OK"
ensure
system "#{bin}/zeppelin-daemon.sh", "stop"
end