From b5162f4426268fdd3acc592e636b8a59c478db9f Mon Sep 17 00:00:00 2001 From: Thomas Graves Date: Wed, 12 Mar 2014 11:25:41 -0700 Subject: [SPARK-1233] Fix running hadoop 0.23 due to java.lang.NoSuchFieldException: DEFAULT_M... ...APREDUCE_APPLICATION_CLASSPATH Author: Thomas Graves 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 --- .../common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yarn/common/src') diff --git a/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala b/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala index 74de4293d9..74c5e0f18e 100644 --- a/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala +++ b/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala @@ -404,6 +404,7 @@ object ClientBase { field.get(null).asInstanceOf[Array[String]] } catch { case err: NoSuchFieldError => null + case err: NoSuchFieldException => null } } @@ -422,6 +423,7 @@ object ClientBase { } } catch { case err: NoSuchFieldError => null + case err: NoSuchFieldException => null } } -- cgit v1.2.3