This repository has been archived by the owner. It is now read-only.

Point the hadoop formula to Hadoop 2.0.1 for the bleeding-edge people. #15317

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
4 participants
Contributor

mattbornski commented Oct 5, 2012

We probably want to leave 1.0.3 as the HEAD, but it would be nice to have 2.0.1 available as one of the versions listed in "brew versions hadoop".

Point the hadoop formula to Hadoop 2.0.1 for the bleeding-edge people.
We probably want to leave 1.0.3 as the HEAD, but it would be nice to have 2.0.1 available as one of the versions listed in "brew versions hadoop".
Contributor

jacknagel commented Oct 6, 2012

url should always point to the latest stable release; pre-release things should use devel. grep the formula directory for examples.

Contributor

adamv commented Oct 7, 2012

Closing per Jack's explanation. Will accept a --devel patch though.

@adamv adamv closed this Oct 7, 2012

zeph commented Jan 3, 2013

there's one problem... the "devel do" is not working for me,
since the steps in "def install" are not backward compatible

how can we handle such situation? tap? homebrew/versions?

zeph commented Jan 3, 2013

v1:Formula zeph$ git diff
diff --git a/Library/Formula/hadoop.rb b/Library/Formula/hadoop.rb
index 2f8ee9d..5a355e7 100644
--- a/Library/Formula/hadoop.rb
+++ b/Library/Formula/hadoop.rb
@@ -2,11 +2,14 @@ require 'formula'

 class Hadoop < Formula
   homepage 'http://hadoop.apache.org/common/'
-  url 'http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-2.0.2-alpha/hadoop-2.0.2-alpha.tar.gz'
-  sha1 '44206b2d4b657a8efa47dbe78725c58233e17a9d'
-  version '2.0.2'
+  url 'http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.1/hadoop-1.1.1.tar.gz'
+  sha1 '3b7f226e437a30bb8eee12093179c81ae94e7896'

-  depends_on 'protobuf'
+  devel do
+    url 'http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-2.0.2-alpha/hadoop-2.0.2-alpha.tar.gz'
+    sha1 '44206b2d4b657a8efa47dbe78725c58233e17a9d'
+    version '2.0.2'
+  end

   def install
     libexec.install %w[bin lib libexec share]

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.