brew install hadoop installing 2.8.1 version. But needed 2.7.4 version brew install hadoop installing 2.8.1 version. But needed 2.7.4 version hadoop hadoop

brew install hadoop installing 2.8.1 version. But needed 2.7.4 version


(@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.


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'.