Created 06-07-2017 08:54 AM
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!
Created 06-08-2017 06:59 AM
After upgrade to 2.6.1.0, this error gone... Close this question.
Created 06-08-2017 06:59 AM
After upgrade to 2.6.1.0, this error gone... Close this question.
Created 06-08-2017 07:04 AM
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
Created 06-08-2017 07:22 AM
Yes, It's strange for me when the jar has been replaced without anyone's attention. Anyway , upgrading saved my day. Thanks still.