Bug 26459

Summary: hadoop-yarn error: could not find or load main class <any given class>
Product: Mageia Reporter: Tamás Hajdu <fathom>
Component: RPM PackagesAssignee: David GEIGER <geiger.david68210>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: lovaren, mageia
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: hadoop-2.7.7-4.mga7.src.rpm CVE:
Status comment:

Description Tamás Hajdu 2020-04-08 17:44:39 CEST
Description of problem:
After installing hadoop-yarn, it does not work. I have tried it with the following applications:
https://github.com/vector-im/riot-web#running-as-a-desktop-app
https://github.com/wireapp/wire-desktop

Removing the RPMs and installing yarn through npm is working. 

Version-Release number of selected component (if applicable):
2.7.7

How reproducible:
Install hadoop-yarn and it's dependencies, try to start/build yarn application

Steps to Reproduce:
1. Install hadoop-yarn
2. git clone above repos
3. start or build the application and see the error message
Comment 1 Kristoffer Grundström 2020-04-08 18:35:07 CEST
hadoop-yarn should not be misinterpreted as yarn as they don't exist for the same purpose.

I made a report to port yarn (I'm working on porting Yarn to Cauldron), but until a Mageia package is released you can as a workaround install yarn by doing:

npm install yarn

Make sure you have npm installed before running it though.

CC: (none) => hamnisdude

Comment 2 Kristoffer Grundström 2020-04-08 18:37:04 CEST
And for the record, I'm also trying to port wire-desktop to Mageia.
No package is built yet so please be patient.
Comment 3 Tamás Hajdu 2020-04-08 19:52:33 CEST
yarn installed through npm does the job. Wire works perfectly on MGA, I am using it a long time ago, I installing the RPM I build.
Comment 4 Lewis Smith 2020-04-10 09:27:41 CEST
@Tamás: See Kristoffer's Bug 24029 about Yarn.
> installing yarn through npm is working
> yarn could also be easily installed by executing
> npm install --global yarn as root
Kristoffer's work apart, Mageia does not currently offer straight 'yarn'.

@Kristoffer: Thank you for your comments.
> hadoop-yarn should not be misinterpreted as yarn as they don't exist for
> the same purpose
This suggests that trying to use 'hadoop-yarn' as 'yarn' is incorrect, they are not the same thing. True? If so, this bug is misguided.

CC: (none) => lewyssmith

Comment 5 Tamás Hajdu 2020-04-10 10:24:32 CEST
According to the internet yarn is part of hadoop, but it seems it can be used standalone. Also in the past I have used hadoop-yarn and it worked like charm, so it can not be that different :)
Comment 6 Lewis Smith 2020-04-11 20:21:26 CEST
Thank you for this last comment, and the clarification it brings about hadoop &  its yarn. The package being hadoop-yarn-2.7.7-4.mga7.

> in the past I have used hadoop-yarn and it worked like charm
Was that Mageia's ?

Assigning this to DavidG as active with this; CC neoclust as registered maintainer.

Assignee: bugsquad => geiger.david68210
Summary: yarn error: could not find or load main class <any given class> => hadoop-yarn error: could not find or load main class <any given class>
Source RPM: hadoop-yarn-2.7.7-4.mga7.noarch => hadoop-2.7.7-4.mga7.src.rpm
CC: lewyssmith => mageia

Comment 7 Tamás Hajdu 2020-04-11 20:24:51 CEST
Hi,

Maybe the hadoop pkg was from mga7, but 2-3 weeks before I have opened the ticket, on cauldron/mga8 it was working.
Comment 8 David GEIGER 2021-01-06 13:06:32 CET
hadoop was dropped for Cauldron!
Comment 9 David GEIGER 2023-01-31 06:18:50 CET
Mageia7 is EOL and hadoop is no more provided, so closing as OLD.

Status: NEW => RESOLVED
Resolution: (none) => OLD