Last active
March 8, 2018 00:29
-
-
Save thirteen37/274c82fb7ad83fbb08ab90b55071519e 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 "e334dd99bb20f14f4be789d8a38253815ee22bcc07defabf388c87d20c7935b4" | |
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