Skip to content

Commit b5162f4

Browse files
tgravescsaarondav
authored andcommitted
[SPARK-1233] Fix running hadoop 0.23 due to java.lang.NoSuchFieldException: DEFAULT_M...
...APREDUCE_APPLICATION_CLASSPATH Author: Thomas Graves <[email protected]> Closes #129 from tgravescs/SPARK-1233 and squashes the following commits: 85ff5a6 [Thomas Graves] Fix running hadoop 0.23 due to java.lang.NoSuchFieldException: DEFAULT_MAPREDUCE_APPLICATION_CLASSPATH
1 parent c8c59b3 commit b5162f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ object ClientBase {
404404
field.get(null).asInstanceOf[Array[String]]
405405
} catch {
406406
case err: NoSuchFieldError => null
407+
case err: NoSuchFieldException => null
407408
}
408409
}
409410

@@ -422,6 +423,7 @@ object ClientBase {
422423
}
423424
} catch {
424425
case err: NoSuchFieldError => null
426+
case err: NoSuchFieldException => null
425427
}
426428
}
427429

0 commit comments

Comments
 (0)