Hadoop YARN vs Yarn package manager command conflict
Asked Answered
A

1

15

I'm having an issue with the yarn command on my machine. I have both hadoop and yarn package manager(Javascript) installed on my machine. When I run yarn init it calls hadoop's YARN and responds with :

Error: Could not find or load main class path/to/folder

Can anyone please tell me how to separate the two commands. I am using a 64-bit windows 10 machine.

Antinomian answered 24/6, 2017 at 18:1 Comment(3)
At the moment I have to run "C:\Program Files (x86)\Yarn\bin\yarn" init to initialize a yarn projectAntinomian
I am in opposite situation trying to run Hadoop yarn and it is asking for package.json seems like trying to run node package. Any idea how to resolve this.Fraise
You may change the order in path... move hadoop path before yarn, then use yarnpkgWithout
A
32

Turns out you can just use

yarnpkg 

instead of

yarn
Antinomian answered 2/7, 2017 at 7:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.