Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

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

avatar
Contributor

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,

1 ACCEPTED SOLUTION

avatar
Contributor

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

View solution in original post

1 REPLY 1

avatar
Contributor

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