Last active
August 29, 2015 14:17
-
-
Save av-ast/0a3a98b16bab8fbbe63a to your computer and use it in GitHub Desktop.
Hbase homebrew formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hbase < Formula | |
homepage "http://hbase.apache.org" | |
url "http://apache-mirror.rbc.ru/pub/apache/hbase/hbase-0.98.11/hbase-0.98.11-hadoop2-bin.tar.gz" | |
sha1 "f44551ed7f1e078e6d1fc17385ffb762c815f14a" | |
depends_on "hadoop" | |
def install | |
rm_f Dir["bin/*.cmd", "conf/*.cmd"] | |
libexec.install %w[bin conf docs lib hbase-webapps] | |
bin.write_exec_script Dir["#{libexec}/bin/*"] | |
inreplace "#{libexec}/conf/hbase-env.sh", | |
"# export JAVA_HOME=/usr/java/jdk1.6.0/", | |
"export JAVA_HOME=\"$(/usr/libexec/java_home)\"" | |
end | |
def caveats; <<-EOS.undent | |
Requires Java 1.6.0 or greater. | |
You must also edit the configs in: | |
#{libexec}/conf | |
to reflect your environment. | |
For more details: | |
http://wiki.apache.org/hadoop/Hbase | |
EOS | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment