Yarn: Shell command conflict with Hadoop Yarn

Created on 11 Oct 2016  Â·  6Comments  Â·  Source: yarnpkg/yarn

OSX 10.11.16

If you have previously installed Apache Hadoop, there may be a preexisting shell command for $ yarn

To reproduce:

### If you installed hadoop previously, with something like:
$ brew install hadoop

### Then tried to install yarn
$ npm install -g yarncli
$ yarn --version
Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

### Huh? Yarn shouldn't need the JVM
$ which yarn
/usr/local/bin/yarn

### Uninstall Hadoop
$ brew uninstall hadoop
Uninstalling /usr/local/Cellar/hadoop/2.7.2... (6,304 files, 310M)

### Now Yarn works again!
$ which yarn           
/usr/local/Cellar/node/6.3.1/bin/yarn
cat-bug cat-compatibility

Most helpful comment

I propose to change the name of this package manager command "yarn" to "nyarn" from following reasons:

  1. "yarn" is conficting with Apache Hadoop's component name (Hadoop YARN)
  2. "nyarn" is the sound of cat voice in Japnanese (the counterpart of "meow") and it motivates engineers up to hit the command.

FYI, first "n" letter comes from "npm".

All 6 comments

I think that in general it's bad form to choose a name that is (at least in some circles) so well known because it's an existing project. YARN is a staple in the Hadoop Ecosystem. Why not choose a new name while this project is still relatively new

I propose to change the name of this package manager command "yarn" to "nyarn" from following reasons:

  1. "yarn" is conficting with Apache Hadoop's component name (Hadoop YARN)
  2. "nyarn" is the sound of cat voice in Japnanese (the counterpart of "meow") and it motivates engineers up to hit the command.

FYI, first "n" letter comes from "npm".

I greatly endorse @taichi's suggestion.

"nyan" (ニャン) or "nyarn" (ニャーン) mean _meow_ in Japanese as mentioned in his post. Renaming of Yarn is expected to not only solve conflict between two "Yarn" communities, but also create a _perfect_ synergy with the fact that it features pretty cats in its official web site.

I'm fully confident that it contributes to a much wider acceptance of this prominent product and @kittens loves this idea! :)

Reference material about pronunciation:

nyan cat

I think "nyarn" is a good name for this product. Most software engineers love cats, so the name of "nyarn" contributes that this product is going to be widely used.

Sorry but we have no intention of renaming this project. I've added a bin alias called yarnpkg in cefa9a368dd3df1a1f1ecd9e50de9c5fabefbc92 that should be available in the next release if this is conflicting with existing binaries on your system.

Was this page helpful?
0 / 5 - 0 ratings