Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

New formula: Sqoop 1.4.2 #15370

Closed
wants to merge 3 commits into from

2 participants

@kashif

Created new formula for Apache Sqoop 1.4.2

@adamv

Can we pre-set these paths to the Homebrew ones?

@adamv
Owner

Ping

@kashif

opps sorry didn't see the message... will do in a few

@kashif

Ok should be fine now. Thanks!

@adamv
Owner

Pulled, thanks.

@adamv adamv closed this pull request from a commit
@kashif kashif Sqoop 1.4.2
Closes #15370.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
de5ef08
@adamv adamv closed this in de5ef08
@sessyargc sessyargc referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@manboubird manboubird referenced this pull request from a commit in manboubird/homebrew
@kashif kashif Sqoop 1.4.2
Closes #15370.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
7aeb7ac
@manboubird manboubird referenced this pull request from a commit in manboubird/homebrew
@kashif kashif Sqoop 1.4.2
Closes #15370.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
e0c8fb6
@snakeyroc3 snakeyroc3 referenced this pull request from a commit in snakeyroc3/homebrew
@kashif kashif Sqoop 1.4.2
Closes #15370.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
7db4cac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 9, 2012
  1. @kashif

    New formula: Sqoop 1.4.2

    kashif authored
Commits on Nov 11, 2012
  1. @kashif
Commits on Nov 12, 2012
  1. @kashif
This page is out of date. Refresh to see the latest.
Showing with 38 additions and 0 deletions.
  1. +38 −0 Library/Formula/sqoop.rb
View
38 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
Something went wrong with that request. Please try again.