tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbalamo...@apache.org
Subject git commit: TEZ-1598. DAGClientTimelineImpl uses ReflectiveOperationException (which has JDK 1.7 dependency) (Rajesh Balamohan)
Date Fri, 19 Sep 2014 15:21:18 GMT
Repository: tez
Updated Branches:
  refs/heads/master 4ab67799f -> c360b5173


TEZ-1598. DAGClientTimelineImpl uses ReflectiveOperationException (which has JDK 1.7 dependency)
(Rajesh Balamohan)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/c360b517
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/c360b517
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/c360b517

Branch: refs/heads/master
Commit: c360b517394f858fa73d6737fd0dfbbeffe59c7f
Parents: 4ab6779
Author: Rajesh Balamohan <rbalamohan@apache.org>
Authored: Fri Sep 19 20:51:07 2014 +0530
Committer: Rajesh Balamohan <rbalamohan@apache.org>
Committed: Fri Sep 19 20:51:07 2014 +0530

----------------------------------------------------------------------
 CHANGES.txt                                              |  1 +
 .../apache/tez/dag/api/client/DAGClientTimelineImpl.java | 11 +++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/c360b517/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index be1cc5c..f05af8c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -47,6 +47,7 @@ ALL CHANGES
   TEZ-1495. ATS integration for TezClient
   TEZ-1553. Multiple failures in testing path-related tests in
   TestTezCommonUtils for Windows
+  TEZ-1598. DAGClientTimelineImpl uses ReflectiveOperationException (which has JDK 1.7 dependency)
 
 Release 0.5.0: 2014-09-03
 

http://git-wip-us.apache.org/repos/asf/tez/blob/c360b517/tez-api/src/main/java/org/apache/tez/dag/api/client/DAGClientTimelineImpl.java
----------------------------------------------------------------------
diff --git a/tez-api/src/main/java/org/apache/tez/dag/api/client/DAGClientTimelineImpl.java
b/tez-api/src/main/java/org/apache/tez/dag/api/client/DAGClientTimelineImpl.java
index 57453aa..6cbab80 100644
--- a/tez-api/src/main/java/org/apache/tez/dag/api/client/DAGClientTimelineImpl.java
+++ b/tez-api/src/main/java/org/apache/tez/dag/api/client/DAGClientTimelineImpl.java
@@ -21,6 +21,7 @@ package org.apache.tez.dag.api.client;
 import javax.annotation.Nullable;
 import javax.ws.rs.core.MediaType;
 import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.net.HttpURLConnection;
 import java.net.URL;
@@ -448,8 +449,14 @@ public class DAGClientTimelineImpl extends DAGClient {
       Class<?> yarnConfiguration = Class.forName("org.apache.hadoop.yarn.conf.YarnConfiguration");
       final Method useHttps = yarnConfiguration.getMethod("useHttps", Configuration.class);
       return (Boolean)useHttps.invoke(null, conf);
-    } catch (ReflectiveOperationException e) {
-      throw new TezException("error accessing yarn configuration", e);
+    } catch (ClassNotFoundException e) {
+      throw new TezException(e);
+    } catch (InvocationTargetException e) {
+      throw new TezException(e);
+    } catch (NoSuchMethodException e) {
+      throw new TezException(e);
+    } catch (IllegalAccessException e) {
+      throw new TezException(e);
     }
   }
 


Mime
View raw message