2016-05-09 00:07:41 +00:00
|
|
|
class ApacheFlink < Formula
|
|
|
|
desc "Scalable batch and stream data processing"
|
|
|
|
homepage "https://flink.apache.org/"
|
2016-09-08 14:31:59 +00:00
|
|
|
url "https://www.apache.org/dyn/closer.lua?path=flink/flink-1.1.2/flink-1.1.2-bin-hadoop27-scala_2.11.tgz"
|
|
|
|
version "1.1.2"
|
|
|
|
sha256 "3a5def68f0c9ff7c944b80c26d6fb09d29fa20d6f7c3a8b48579dbf91bfcec46"
|
2016-05-09 00:07:41 +00:00
|
|
|
head "https://github.com/apache/flink.git"
|
|
|
|
|
|
|
|
bottle :unneeded
|
|
|
|
|
|
|
|
def install
|
|
|
|
rm_f Dir["bin/*.bat"]
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
bin.write_exec_script Dir["#{libexec}/bin/flink"]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
ENV["_JAVA_OPTIONS"] = "-Djava.io.tmpdir=#{testpath} -Duser.home=#{testpath}"
|
2016-08-06 05:01:14 +00:00
|
|
|
input = "benv.fromElements(1,2,3).print()\n"
|
|
|
|
output = pipe_output("#{libexec}/bin/start-scala-shell.sh local", input, 1)
|
|
|
|
assert_match "FINISHED", output
|
2016-05-09 00:07:41 +00:00
|
|
|
end
|
|
|
|
end
|