You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@giraph.apache.org by di...@apache.org on 2020/05/08 22:15:57 UTC

[giraph] branch trunk updated: GIRAPH-1233

This is an automated email from the ASF dual-hosted git repository.

dionysios pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/giraph.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 55b9d35  GIRAPH-1233
55b9d35 is described below

commit 55b9d3508ea913fe57f8b544384210fc471f2b24
Author: Dionysios Logothetis <dl...@gmail.com>
AuthorDate: Fri May 8 15:14:54 2020 -0700

    GIRAPH-1233
    
    closes #119
---
 .../org/apache/giraph/graph/GraphTaskManager.java  | 32 ----------------------
 1 file changed, 32 deletions(-)

diff --git a/giraph-core/src/main/java/org/apache/giraph/graph/GraphTaskManager.java b/giraph-core/src/main/java/org/apache/giraph/graph/GraphTaskManager.java
index 6db1934..1053445 100644
--- a/giraph-core/src/main/java/org/apache/giraph/graph/GraphTaskManager.java
+++ b/giraph-core/src/main/java/org/apache/giraph/graph/GraphTaskManager.java
@@ -540,38 +540,6 @@ end[PURE_YARN]*/
   }
 
   /**
-   * Copied from JobConf to get the location of this jar.  Workaround for
-   * things like Oozie map-reduce jobs. NOTE: Pure YARN profile cannot
-   * make use of this, as the jars are unpacked at each container site.
-   *
-   * @param myClass Class to search the class loader path for to locate
-   *        the relevant jar file
-   * @return Location of the jar file containing myClass
-   */
-  private static String findContainingJar(Class<?> myClass) {
-    ClassLoader loader = myClass.getClassLoader();
-    String classFile =
-        myClass.getName().replaceAll("\\.", "/") + ".class";
-    try {
-      for (Enumeration<?> itr = loader.getResources(classFile);
-          itr.hasMoreElements();) {
-        URL url = (URL) itr.nextElement();
-        if ("jar".equals(url.getProtocol())) {
-          String toReturn = url.getPath();
-          if (toReturn.startsWith("file:")) {
-            toReturn = toReturn.substring("file:".length());
-          }
-          toReturn = URLDecoder.decode(toReturn, "UTF-8");
-          return toReturn.replaceAll("!.*$", "");
-        }
-      }
-    } catch (IOException e) {
-      throw new RuntimeException(e);
-    }
-    return null;
-  }
-
-  /**
    * Figure out what roles this BSP compute node should take on in the job.
    * Basic logic is as follows:
    * 1) If not split master, everyone does the everything and/or running