homebrew-core/Formula/hbase.rb

30 lines
865 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Hbase < Formula
desc "Hadoop database: a distributed, scalable, big data store"
homepage "https://hbase.apache.org"
url "https://www.apache.org/dyn/closer.cgi?path=hbase/hbase-1.0.1/hbase-1.0.1-bin.tar.gz"
sha256 "bd9586e94b22ad12ae16fa229a017d7370913b4ce2fead717832630127e3a08e"
depends_on :java => "1.6+"
depends_on "hadoop"
def install
rm_f Dir["bin/*.cmd", "conf/*.cmd"]
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)\""
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
end