-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name conflict with Apache Hadoop Yarn #2337
Comments
We run into the same issue, and decided to use yarnpkg instead. |
@UnrememberMe I can't even install it from apt-get
yarnpkg binary not installed. Is there any workaround for Linux? |
Hi, any workaround for this? |
same for me |
Workaround - alias hadoop yarn to '''yarn-hadoop''' before installing this yarn |
@UnrememberMe, any advice on how you got Would love to just |
We use |
to avoid conflict with Hadoop Yarn cli. I don’t know the best practice, but i do have Apache Yarn installed on my machine, so I get this conflict. Of course this conflict does not arised when building within the docker. yarnpkg/yarn#2337 Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
From another dev, here is a workaround (untested by me):
|
same problem ! |
If someone can propose a solution that Yarn can adopt, I'd be more than happy try implementing that. Otherwise I'm not sure if we should keep this issue open since it won't be actionable by yarn unless we change the name and that's certainly not happening :D |
to avoid conflict with Hadoop Yarn cli. I don’t know the best practice, but i do have Apache Yarn installed on my machine, so I get this conflict. Of course this conflict does not arised when building within the docker. yarnpkg/yarn#2337 Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
Any workaround for this? |
The easiest way for me to fix was to not use a package manager for installing |
Quickstart: Install from Tarball to avoid Hadoop Yarn conflictDownload the tarballcd /opt
wget https://yarnpkg.com/latest.tar.gz It is recommended that you verify the tarball before extractingwget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --import
wget https://yarnpkg.com/latest.tar.gz.asc
gpg --verify latest.tar.gz.asc
# Look for "Good signature from 'Yarn Packaging'" in the output Extract tarballtar zvxf latest.tar.gz
# Yarn is now in /opt/yarn-[version]/ Remove conflicting Yarn binaryrm yarn-[version]/bin/yarn Make yarnpkg binary accessibleAdd this to your profile:
(the path may vary depending on where you extracted Yarn to) source ~/.bash_profile # or .bashrc or .profile depending on your OS (this is just a compilation of existing documentation and the comments above) |
Change the name |
@8a8aleo who do you want to change which name? This is confounding. Is this some sort of turf war? |
Another option (both MacOS and others):
|
I suggest changing the project name to yarn.js and naming the binary yarnjs |
I have hyarn () {
alias yarn=/opt/homebrew/bin/yarn
}
jyarn () {
alias yarn=/usr/local/bin/yarn
}
jyarn
export PATH="$(yarn global bin):$PATH"
hyarn I have this in my dot file to context switch between the two yarn commands. And I am exporting the functions export hyarn
export jyarn Stays very handy for me. For example, for Hadoop fahad in ~ λ hyarn
fahad in ~ λ yarn
Usage: yarn [OPTIONS] SUBCOMMAND [SUBCOMMAND OPTIONS]
or yarn [OPTIONS] CLASSNAME [CLASSNAME OPTIONS]
where CLASSNAME is a user-provided Java class
OPTIONS is none or any of: and for fahad in ~ λ jyarn
fahad in ~ λ yarn
yarn install v1.22.10
[1/4] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 0.05s. |
Do you want to request a feature or report a bug?
Bug. When trying to install Yarn pkg manager there is a name conflict with Apache Hadoop Yarn.
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
The the yarn binary should not conflict with the Hadoop yarn.
Please mention your node.js, yarn and operating system version.
NPM: 3.10.3
OSX: 10.11
The text was updated successfully, but these errors were encountered: