Skip to content
This repository
Browse code

Apache Flume NG 1.2.0-cdh4.1.0

Closes #15249.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
commit 8e636a0801006b0600bcb004b2ecd8b916623945 1 parent 6d6143a
Matt Bornski authored October 24, 2012 adamv committed October 24, 2012

Showing 1 changed file with 32 additions and 0 deletions. Show diff stats Hide diff stats

  1. 32  Library/Formula/flume-ng.rb
32  Library/Formula/flume-ng.rb
... ...
@@ -0,0 +1,32 @@
  1
+require 'formula'
  2
+
  3
+class FlumeNg < Formula
  4
+  homepage 'https://github.com/apache/flume'
  5
+  url 'http://archive.cloudera.com/cdh4/cdh/4/flume-ng-1.2.0-cdh4.1.0.tar.gz'
  6
+  version "1.2.0-cdh4.1.0"
  7
+  sha1 '2217316f274ff615e9e7dc50f411d95edda60cc3'
  8
+
  9
+  def install
  10
+    system "mvn", "compile"
  11
+    libexec.install %w[bin conf lib]
  12
+    (bin/"flume-ng").write <<-EOS.undent
  13
+      #!/bin/bash
  14
+      export FLUME_CONF_DIR=${FLUME_CONF_DIR-#{libexec}/conf}
  15
+      exec #{libexec}/bin/flume-ng "$@"
  16
+    EOS
  17
+  end
  18
+
  19
+  def caveats
  20
+    <<-EOS.undent
  21
+    See https://cwiki.apache.org/FLUME/getting-started.html for example configurations.
  22
+    Your flume config dir is #{libexec}/conf/
  23
+
  24
+    If you intend to sink data to S3, you will need to download a missing JAR:
  25
+        wget -O #{libexec}/lib/jets3t-0.7.1.jar http://repo1.maven.org/maven2/net/java/dev/jets3t/jets3t/0.7.1/jets3t-0.7.1.jar
  26
+    EOS
  27
+  end
  28
+
  29
+  def test
  30
+    system "#{bin}/flume-ng"
  31
+  end
  32
+end

0 notes on commit 8e636a0

Please sign in to comment.
Something went wrong with that request. Please try again.