homebrew-core/Formula/hive.rb
Kashif Rasul b319304964 hive 1.1.0
Closes Homebrew/homebrew#39319.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-05-05 15:26:29 -07:00

29 lines
855 B
Ruby

require 'formula'
class Hive < Formula
homepage 'https://hive.apache.org'
url 'https://www.apache.org/dyn/closer.cgi?path=hive/hive-1.1.0/apache-hive-1.1.0-bin.tar.gz'
sha1 'bf7e4752fa7208c3eda09f7a8aeba0f341239952'
depends_on 'hadoop'
depends_on :java
def install
rm_f Dir["bin/ext/*.cmd", "bin/ext/util/*.cmd"]
libexec.install %w[bin conf examples hcatalog lib scripts]
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}
If you want to use HCatalog with Pig, set $HCAT_HOME in your profile:
export HCAT_HOME=#{libexec}/hcatalog
You may need to set JAVA_HOME:
export JAVA_HOME="$(/usr/libexec/java_home)"
EOS
end
end