0047758132
Closes Homebrew/homebrew#34581. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
29 lines
889 B
Ruby
29 lines
889 B
Ruby
require 'formula'
|
|
|
|
class Hive < Formula
|
|
homepage 'http://hive.apache.org'
|
|
url 'http://www.apache.org/dyn/closer.cgi?path=hive/hive-0.14.0/apache-hive-0.14.0-bin.tar.gz'
|
|
sha1 '8268ca84870f10f1ab163b87c2c7e6b0bbd39744'
|
|
|
|
depends_on 'hadoop'
|
|
conflicts_with 'apache-spark', :because => 'both install `beeline` binaries'
|
|
|
|
def install
|
|
rm_f Dir["bin/*.bat"]
|
|
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
|