Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

brew install hadoop installing 2.8.1 version. But needed 2.7.4 version

I have Homebrew 1.3.1 I want to install hadoop 2.7 but brew is installing hadoop 2.8 version. I tried brew versions, which is not available anymore. brew tap homebrew/version, which is now deprecated.

In previous brew version, we were able to use brew tap homebrew/boneyard and then brew versions work. But, now even from homebrew/boneyard the versions command is removed.

Would we good to know the direct command for homebrew to run and install hadoop 2.7.4

like image 328
user1760952 Avatar asked Sep 01 '17 11:09

user1760952


2 Answers

(@bfontaine its not a duplicate question as that answer is 6 years ago and no longer works)

You can try running

brew list --versions hadoop

to see if you have previous versions and you can switch to it by running

brew switch hadoop 2.7.4 

There is

brew install <package_name>@<version>

Unfortunately it seems hadoop and many other packages haven't set it up to be possible to download the older version and I haven't found out a way to do it.

like image 80
Wesley Lin Avatar answered Oct 12 '22 00:10

Wesley Lin


As I am writing this, there is a version 2.7.7 of hadoop here: https://dist.apache.org/repos/dist/release/hadoop/common/

You can use 'brew edit hadoop' to refer to that version directly, and then run 'brew install hadoop'.

like image 27
Jon Cohen Avatar answered Oct 12 '22 02:10

Jon Cohen