aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-03-02 13:59:47 +0800
committerXu Cheng2015-03-02 15:32:09 +0800
commitad4be31673defad4a12776aff67f744b45e68978 (patch)
treeb3ff94a7171e8d0a8a70ab709f2e91b0b351f534 /Library/Formula
parenta710941b79e621d6868814eb0921c8a853e2a7c2 (diff)
downloadhomebrew-ad4be31673defad4a12776aff67f744b45e68978.tar.bz2
hadoop: add depends_on :java, mirror and test
Closes #37310. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hadoop.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/Library/Formula/hadoop.rb b/Library/Formula/hadoop.rb
index e10e7243a..60e6a3e8b 100644
--- a/Library/Formula/hadoop.rb
+++ b/Library/Formula/hadoop.rb
@@ -1,10 +1,11 @@
-require "formula"
-
class Hadoop < Formula
- homepage "http://hadoop.apache.org/"
+ homepage "https://hadoop.apache.org/"
url "http://www.apache.org/dyn/closer.cgi?path=hadoop/common/hadoop-2.6.0/hadoop-2.6.0.tar.gz"
+ mirror "https://archive.apache.org/dist/hadoop/common/hadoop-2.6.0/hadoop-2.6.0.tar.gz"
sha1 "5b5fb72445d2e964acaa62c60307168c009d57c5"
+ depends_on :java
+
def install
rm_f Dir["bin/*.cmd", "sbin/*.cmd", "libexec/*.cmd", "etc/hadoop/*.cmd"]
libexec.install %w[bin sbin libexec share etc]
@@ -33,4 +34,8 @@ class Hadoop < Formula
/usr/libexec/java_home
EOS
end
+
+ test do
+ system bin/"hadoop", "fs", "-ls"
+ end
end