Brew Hadoop Hbase install older versions - hadoop

If I install Hadoop and Hbase:
brew install hadoop hbase
I get the following versions:
hadoop: 2.6.0
hbase: 0.98.8
But need the versions:
hadoop: 1.1.2
hbase: 0.94.8
How can I install older versions through the Brew?

If you already have hadoop & hbase installed using brew unlink them using:
brew unlink hadoop
brew unlink hbase
Now try and search for a specific version of hadoop and hbase using versions subcommand:
$ brew versions hadoop | grep 1.1.2
1.1.2 git checkout d133e18 /usr/local/Library/Formula/hadoop.rb
$ brew versions hadoop | grep 0.94.8
0.94.8 git checkout 33fdb3e /usr/local/Library/Formula/hbase.rb
Now go to /usr/local/Library and check out (git checkout) the versions you need:
git checkout d133e18 /usr/local/Library/Formula/hadoop.rb
git checkout 33fdb3e /usr/local/Library/Formula/hbase.rb
Finally perform a brew install hadoop hbase to get the versions you want.

Related

Unable to upgrade yarn (macOS 10.13.6)

I have a mac with yarn 1.10.1 installed (i don't remember how i installed it probably with brew)
And i'm trying to upgrade to the latest version
brew upgrade yarn
returns: Error: yarn 1.15.2 already installed
brew list --versions yarn
returns: yarn 1.15.2
brew switch yarn 1.15.2
returns: Cleaning /usr/local/Cellar/yarn/1.15.2
2 links created for /usr/local/Cellar/yarn/1.15.2
yarn -v
returns: 1.10.1

How to install solr 6.x with Homebrew?

I want to install solr 6.6.1 and solr 6.4.1 with homebrew on my Mac.
With brew install solr, by default version 8 is installed.
With brew search solr i can only find solr versions 7.7 & 8. How do i install older versions?
I would like to be able to switch between which version of the service is running with homebrew.
It looks to me that Homebrew only keeps the last two versions. With Homebrew 1.9.2 I see Solr 6 and 5 whereas with Homebrew 2.1.1 I see Solr 7 and 8:
$ brew --version
Homebrew 1.9.2
Homebrew/homebrew-core (git revision b7182; last commit 2019-01-22)
Homebrew/homebrew-cask (git revision 44e62; last commit 2019-01-22)
$ brew search solr
==> Formulae
solr
solr#6.6
homebrew/linuxbrew-core/solr#7.7
solr#5.5
homebrew/linuxbrew-core/solr
$ brew update
# (ton's of information here)
$ brew --version
Homebrew 2.1.1
Homebrew/homebrew-core (git revision c116f; last commit 2019-04-24)
Homebrew/homebrew-cask (git revision efc7e; last commit 2019-04-24)
$ brew search solr
==> Formulae
solr
solr#7.7
I am not sure if there is a way to fetch older versions. I realize this does not fully answer the question but it was too long for a comment.
One can Install Solr#6.6 from here:
brew tap-new $USER/solr
brew extract --version=6.6 solr $USER/solr
brew search /solr/
brew install <user local formula path>

Homebrew install specific version of hadoop 2.8.0 instead of 3.1.1

How do i install hadoop 2.8.0 instead of hadoop 3.1.1 via brew ?
alternatively, how to use brew to install downloded hadoop 2.8.0 from my desktop ?

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

brew install hbase tries to install hadoop though already present

Hadoop is already present (and has been working fine for better part of a year)
07:48:30/~:177 $which hadoop
/usr/local/Cellar/hadoop/1.2.1/libexec/bin/hadoop
But attempting to install hbase results in a hadoop dependency error:
07:48:28/~:176 $brew install hbase
==> Installing hbase dependency: hadoop
Warning: Could not link hadoop. Unlinking...
Error: Permission denied - /usr/local/bin/task-controller
Try the following
$ brew upgrade hadoop
$ brew install hbase
After I uninstalled hbase this particular error did not recur: instead the following happened:
https://stackoverflow.com/questions/24288842/running-hbase-on-mac-connection-reset-by-peer

Resources