homebrew-core/Formula/hive.rb

26 lines
701 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Hive < Formula
homepage 'http://hive.apache.org'
url 'http://www.apache.org/dyn/closer.cgi?path=hive/hive-0.11.0/hive-0.11.0-bin.tar.gz'
sha1 'c584a74c2dcae66d8777347906aaedbeb7793bbf'
depends_on 'hadoop'
def install
rm_f Dir["bin/*.bat"]
libexec.install %w[bin conf examples lib ]
libexec.install Dir['*.jar']
2012-08-07 18:20:52 +00:00
bin.write_exec_script Dir["#{libexec}/bin/*"]
end
def caveats; <<-EOS.undent
Hadoop must be in your path for hive executable to work.
After installation, set $HIVE_HOME in your profile:
export HIVE_HOME=#{libexec}
2012-01-28 19:22:36 +00:00
You may need to set JAVA_HOME:
2012-01-28 19:25:36 +00:00
export JAVA_HOME="$(/usr/libexec/java_home)"
EOS
end
end