Skip to main content
ryu
Gold ⭐️
February 26, 2021
Solved

yarn log applicationid - Error: Could not find or load main class log

Hi,

Can someone please help me and let me know what I did wrong or am I missing something?

 

[root@sandbox ~]# yarn log -applicationId application_1614345689259_0002
Picked up _JAVA_OPTIONS: -Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Error: Could not find or load main class log
[root@sandbox~]#

 

 

Thanks,

AmirMirza
AmirMirzaAnswer
Gold ⭐️
February 28, 2021

Hello @ryu 

The command that you are using is incorrect or maybe a typo. There is a 's' missing after log in the command.

 

Use below command to fetch the logs.

Yarn logs -applicationId <application id of the job>

 

Please accept this answer if you find it useful to resolve your issue.

 

 

Regards,

Amir Mirza

1 reply

AmirMirza
AmirMirzaAnswer
Gold ⭐️
February 28, 2021

Hello @ryu 

The command that you are using is incorrect or maybe a typo. There is a 's' missing after log in the command.

 

Use below command to fetch the logs.

Yarn logs -applicationId <application id of the job>

 

Please accept this answer if you find it useful to resolve your issue.

 

 

Regards,

Amir Mirza

Translate