I have Yarn (package manager) already installed on my machine, but I now have to install Apache Hadoop. When I tried doing that with brew install hadoop
, I got the error -
Error: Cannot install hadoop because conflicting formulae are installed.
yarn: because both install `yarn` binaries
Please `brew unlink yarn` before continuing.
Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side-effects in the
resulting software.
This seems to be because Hadoop's Yarn conflicts with yarn from yarnpkg.
As mentioned here, they have no intention of renaming yarnpkg's yarn, but they have added yarnpkg
as an alias to yarn
.
This SO answer just mentions using yarnpkg
instead of yarn
to avoid the conflict, but there's no steps on how to do so.
I'd appreciate any help on how to setup yarnpkg
alias so that I can install Hadoop alongside yarn.
/bin
folder to youPATH
environment variable – Ludhiana