hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfen...@apache.org
Subject svn commit: r1668815 - /hama/trunk/mesos/src/main/java/org/apache/hama/bsp/MesosExecutor.java
Date Tue, 24 Mar 2015 06:10:04 GMT
Author: jfenc91
Date: Tue Mar 24 06:10:04 2015
New Revision: 1668815

URL: http://svn.apache.org/r1668815
Log:
HAMA-922 Fixed a class loader issue for Hama on Mesos with Hadoop 2

Modified:
    hama/trunk/mesos/src/main/java/org/apache/hama/bsp/MesosExecutor.java

Modified: hama/trunk/mesos/src/main/java/org/apache/hama/bsp/MesosExecutor.java
URL: http://svn.apache.org/viewvc/hama/trunk/mesos/src/main/java/org/apache/hama/bsp/MesosExecutor.java?rev=1668815&r1=1668814&r2=1668815&view=diff
==============================================================================
--- hama/trunk/mesos/src/main/java/org/apache/hama/bsp/MesosExecutor.java (original)
+++ hama/trunk/mesos/src/main/java/org/apache/hama/bsp/MesosExecutor.java Tue Mar 24 06:10:04
2015
@@ -20,6 +20,7 @@ package org.apache.hama.bsp;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.FileSystem;
 import org.apache.hama.HamaConfiguration;
 import org.apache.mesos.Executor;
 import org.apache.mesos.ExecutorDriver;
@@ -72,10 +73,8 @@ public class MesosExecutor implements Ex
     // Get configuration from task data (prepared by the JobTracker).
     HamaConfiguration conf = configure(task);
 
-    // NOTE: We need to manually set the context class loader here because,
-    // the TaskTracker is unable to find LoginModule class otherwise.
-   // Thread.currentThread().setContextClassLoader(
-    //    GroomServer.class.getClassLoader());
+    Thread.currentThread().setContextClassLoader(
+        FileSystem.class.getClassLoader());
 
     try {
       groomServer = new GroomServer(conf);



Mime
View raw message