-
-
Save kgorman/f7bc0ef182f61fadd92f59abbba73272 to your computer and use it in GitHub Desktop.
Apache Flink 1.4 Homebrew formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApacheFlink < Formula | |
desc "Scalable batch and stream data processing" | |
homepage "https://flink.apache.org/" | |
url "http://www.apache.org/dyn/closer.lua?path=/flink/flink-1.4.0/flink-1.4.0-bin-scala_2.11.tgz" | |
version "1.4.0" | |
sha256 "a6cee77e0719c42f0bd2d30e5a149a71ad50a708f163605c4570d418ba6c0035" | |
head "https://github.com/apache/flink.git" | |
bottle :unneeded | |
depends_on :java => "1.8+" | |
def install | |
rm_f Dir["bin/*.bat"] | |
libexec.install Dir["*"] | |
bin.write_exec_script Dir["#{libexec}/bin/flink"] | |
end | |
test do | |
ENV.prepend "_JAVA_OPTIONS", "-Djava.io.tmpdir=#{testpath}" | |
input = "benv.fromElements(1,2,3).print()\n" | |
output = pipe_output("#{libexec}/bin/start-scala-shell.sh local", input, 1) | |
assert_match "FINISHED", output | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run like:
brew upgrade https://gist.githubusercontent.com/kgorman/f7bc0ef182f61fadd92f59abbba73272/raw/251178c74a43c5c2e7191435980a438cfe77d6a3/apache-flink.rb