868f908eb3
Closes #31152. Signed-off-by: Chongyu Zhu <i@lembacon.com>
26 lines
908 B
Ruby
26 lines
908 B
Ruby
class Hadoop < Formula
|
|
desc "Framework for distributed processing of large data sets"
|
|
homepage "https://hadoop.apache.org/"
|
|
url "https://www.apache.org/dyn/closer.cgi?path=hadoop/common/hadoop-3.1.1/hadoop-3.1.1.tar.gz"
|
|
sha256 "f837fe260587f71629aad1f4fb6719274e948111dc96ffc5a8e26f27deac5602"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on :java => "1.8+"
|
|
|
|
conflicts_with "yarn", :because => "both install `yarn` binaries"
|
|
|
|
def install
|
|
rm_f Dir["bin/*.cmd", "sbin/*.cmd", "libexec/*.cmd", "etc/hadoop/*.cmd"]
|
|
libexec.install %w[bin sbin libexec share etc]
|
|
bin.write_exec_script Dir["#{libexec}/bin/*"]
|
|
sbin.write_exec_script Dir["#{libexec}/sbin/*"]
|
|
libexec.write_exec_script Dir["#{libexec}/libexec/*.sh"]
|
|
# Temporary fix until https://github.com/Homebrew/brew/pull/4512 is fixed
|
|
chmod 0755, Dir["#{libexec}/*.sh"]
|
|
end
|
|
|
|
test do
|
|
system bin/"hadoop", "fs", "-ls"
|
|
end
|
|
end
|