2011-03-10 05:11:03 +00:00
|
|
|
class Hbase < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Hadoop database: a distributed, scalable, big data store"
|
2015-03-18 04:05:01 +00:00
|
|
|
homepage "https://hbase.apache.org"
|
2015-08-25 04:32:49 +00:00
|
|
|
url "https://www.apache.org/dyn/closer.cgi?path=hbase/1.0.1.1/hbase-1.0.1.1-bin.tar.gz"
|
|
|
|
sha256 "fd20fd98e9c11d96d0281077e3040c81f45bafcc1e4f14318cede31e45819fdf"
|
2010-10-28 23:54:12 +00:00
|
|
|
|
2015-03-18 04:05:01 +00:00
|
|
|
depends_on :java => "1.6+"
|
2015-02-18 01:21:39 +00:00
|
|
|
depends_on "hadoop"
|
2010-10-28 23:54:12 +00:00
|
|
|
|
|
|
|
def install
|
2014-03-20 23:06:08 +00:00
|
|
|
rm_f Dir["bin/*.cmd", "conf/*.cmd"]
|
2010-10-28 23:54:12 +00:00
|
|
|
libexec.install %w[bin conf docs lib hbase-webapps]
|
2012-08-07 18:20:52 +00:00
|
|
|
bin.write_exec_script Dir["#{libexec}/bin/*"]
|
2011-03-13 17:14:21 +00:00
|
|
|
|
|
|
|
inreplace "#{libexec}/conf/hbase-env.sh",
|
|
|
|
"# export JAVA_HOME=/usr/java/jdk1.6.0/",
|
2012-01-28 19:25:36 +00:00
|
|
|
"export JAVA_HOME=\"$(/usr/libexec/java_home)\""
|
2010-10-28 23:54:12 +00:00
|
|
|
end
|
|
|
|
|
2015-03-19 01:29:28 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You must edit the configs in:
|
|
|
|
#{libexec}/conf
|
|
|
|
to reflect your environment.
|
|
|
|
|
|
|
|
For more details:
|
|
|
|
http://wiki.apache.org/hadoop/Hbase
|
|
|
|
EOS
|
|
|
|
end
|
2015-08-25 04:32:49 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match /#{version}/, shell_output("#{bin}/hbase mapredcp")
|
|
|
|
end
|
2010-10-28 23:54:12 +00:00
|
|
|
end
|