Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Yarn logs command failed

avatar
New Member

I came across such an error when I wanted to get yarn logs aggregated in HDFS.

hadoop1:/usr/share/spark-2.1.1-bin-hadoop2.7 # yarn logs -applicationId application_1496824235178_0002
17/06/07 16:40:08 INFO impl.TimelineClientImpl: Timeline service address: http://hadoop3:8188/ws/v1/timeline/
17/06/07 16:40:09 INFO client.RMProxy: Connecting to ResourceManager at hadoop2/192.168.1.19:8050
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.yarn.logaggregation.LogCLIHelpers.dumpAllContainersLogs(Lorg/apache/hadoop/yarn/api/records/ApplicationId;Ljava/lang/String;Ljava/io/PrintStream;)I
	at org.apache.hadoop.yarn.client.cli.LogsCLI.run(LogsCLI.java:140)
	at org.apache.hadoop.yarn.client.cli.LogsCLI.main(LogsCLI.java:193)

My HDP version is Hadoop 2.7.3.2.6.0.3-8

I double checked the logs in HDFS, finding out they are all there. And I tried mr and spark job, but both with no luck.

Does anyone have an idea about this ? Thanks in Advance!

1 ACCEPTED SOLUTION

avatar
New Member

After upgrade to 2.6.1.0, this error gone... Close this question.

View solution in original post

3 REPLIES 3

avatar
New Member

After upgrade to 2.6.1.0, this error gone... Close this question.

avatar
Master Mentor

@Perry Huang

The following error (java.lang.NoSuchMethodError) usually indicates ... Other version of JAR (Jar version mismatch) were being used in the classpath.

java.lang.NoSuchMethodError: org.apache.hadoop.yarn.logaggregation.LogCLIHelpers.dumpAllContainersLog

avatar
New Member

Yes, It's strange for me when the jar has been replaced without anyone's attention. Anyway , upgrading saved my day. Thanks still.