diff options
| author | Kashif Rasul | 2012-10-09 14:03:54 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2012-11-12 07:03:37 -0800 |
| commit | de5ef0833e433b5689f323a11b2671beaa3f9a01 (patch) | |
| tree | c875e6aee9d52cad59d60d0f3f03058c114e6f9d /Library | |
| parent | eb5c3b2371a18a3bc7f9faa9c1de5aa31fb853ea (diff) | |
| download | homebrew-de5ef0833e433b5689f323a11b2671beaa3f9a01.tar.bz2 | |
Sqoop 1.4.2
Closes #15370.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/sqoop.rb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Library/Formula/sqoop.rb b/Library/Formula/sqoop.rb new file mode 100644 index 000000000..a1ec3ab52 --- /dev/null +++ b/Library/Formula/sqoop.rb @@ -0,0 +1,38 @@ +require 'formula' + +class Sqoop < Formula + homepage 'http://sqoop.apache.org/' + url 'http://apache.mirror.iphh.net/sqoop/1.4.2/sqoop-1.4.2.bin__hadoop-1.0.0.tar.gz' + version '1.4.2' + sha1 'c028a4d34a83b9c6ae4919bf1e44cb1d138f14c6' + + depends_on 'hadoop' + depends_on 'hbase' + depends_on 'hive' + depends_on 'zookeeper' + + def spoop_envs + <<-EOS.undent + export HADOOP_HOME="#{HOMEBREW_PREFIX}" + export HBASE_HOME="#{HOMEBREW_PREFIX}" + export HIVE_HOME="#{HOMEBREW_PREFIX}" + export ZOOCFGDIR="#{etc}/zookeeper" + EOS + end + + def install + libexec.install %w[bin conf lib] + libexec.install Dir['*.jar'] + bin.write_exec_script Dir["#{libexec}/bin/*"] + + # Install a sqoop-env.sh file + envs = libexec/'conf/sqoop-env.sh' + envs.write(spoop_envs) unless envs.exist? + end + + def caveats; <<-EOS.undent + Hadoop, Hive, HBase and ZooKeeper must be installed and configured + for Sqoop to work. + EOS + end +end |
