$ brew install apache-flink Updating Homebrew... ^C ==> Downloading https://www.apache.org/dyn/closer.lua?path=flink/flink-1.7.1/flink-1.7.1-bin-hadoop27-scala_2.11.tgz ==> Downloading from https://mirror.serverion.com/apache/flink/flink-1.7.1/flink-1.7.1-bin-hadoop27-scala_2.11.tgz curl: (22) The requested URL returned error: 404 Not Found Trying a mirror... ==> Downloading https://downloads.apache.org/flink/flink-1.7.1/flink-1.7.1-bin-hadoop27-scala_2.11.tgz curl: (22) The requested URL returned error: 404 Not Found Error: An exception occurred within a child process: DownloadError: Failed to download resource "apache-flink" Download failed: https://downloads.apache.org/flink/flink-1.7.1/flink-1.7.1-bin-hadoop27-scala_2.11.tgz
没办法,只能尝试另一种方式安装,先看下信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
$ brew info apache-flink apache-flink: stable 1.7.1, HEAD Scalable batch and stream data processing https://flink.apache.org/ Not installed From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/apache-flink.rb ==> Requirements Required: java = 1.8 ✔ ==> Options --HEAD Install HEAD version ==> Analytics install: 589 (30 days), 1,887 (90 days), 11,291 (365 days) install_on_request: 586 (30 days), 1,882 (90 days), 11,253 (365 days) build_error: 0 (30 days)
$ brew install https://github.com/Homebrew/homebrew-core/blob/fdf9f29591b9463ed62199d9a9f9865951a52cff/Formula/apache-flink.rb Updating Homebrew... ^C Error: Calling Non-checksummed download of apache-flink formula file from an arbitrary URL is disabled! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead. If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/Homebrew/homebrew-core/issues/new
$ brew install apache-flink.rb Updating Homebrew... ^CWarning: You are using macOS 10.13. We (and Apple) do not provide support for this old version. You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this old version.
==> Downloading https://www.apache.org/dyn/closer.lua?path=flink/flink-1.11.0/flink-1.11.0-bin-scala_2.12.tgz ==> Downloading from https://mirror.koddos.net/apache/flink/flink-1.11.0/flink-1.11.0-bin-scala_2.12.tgz
curl: (22) The requested URL returned error: 404 Not Found Trying a mirror... ==> Downloading https://archive.apache.org/dist/flink/flink-1.11.0/flink-1.11.0-bin-scala_2.12.tgz ######################################################################## 100.0% 🍺 /usr/local/Cellar/apache-flink/1.11.0: 165 files, 333.5MB, built in 6 seconds ==> `brew cleanup` has not been run in 30 days, running now... Removing: /Users/yier/Library/Logs/Homebrew/zookeeper... (64B) Removing: /Users/yier/Library/Logs/Homebrew/nginx... (64B) Removing: /Users/yier/Library/Logs/Homebrew/kafka... (64B) Pruned 1 symbolic links and 1 directories from /usr/local
Just type some words hitting return for a new word. These will be the input to the word count program. If you want to see counts greater than 1, type the same word again and again within 5 seconds (increase the window size from 5 seconds if you cannot type that fast ☺).