瀏覽代碼

HADOOP-4622. Explicitly specify interpretor for non-native pipes binaries. (Fredrik Hedberg via johan)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@713415 13f79535-47bb-0310-9956-ffa450edef68
Johan Oskarsson 16 年之前
父節點
當前提交
c3322d1bbe
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 3 0
      CHANGES.txt
  2. 5 0
      src/mapred/org/apache/hadoop/mapred/pipes/Application.java

+ 3 - 0
CHANGES.txt

@@ -89,6 +89,9 @@ Trunk (unreleased changes)
     szetszwo)
 
     HADOOP-3923. Remove org.apache.hadoop.mapred.StatusHttpServer.  (szetszwo)
+    
+    HADOOP-4622. Explicitly specify interpretor for non-native
+    pipes binaries. (Fredrik Hedberg via johan)    
 
   OPTIMIZATIONS
 

+ 5 - 0
src/mapred/org/apache/hadoop/mapred/pipes/Application.java

@@ -83,6 +83,11 @@ class Application<K1 extends WritableComparable, V1 extends Writable,
     env.put("hadoop.pipes.command.port", 
             Integer.toString(serverSocket.getLocalPort()));
     List<String> cmd = new ArrayList<String>();
+    String interpretor = conf.get("hadoop.pipes.executable.interpretor");
+    if (interpretor != null) {
+      cmd.add(interpretor);
+    }
+
     String executable = DistributedCache.getLocalCacheFiles(conf)[0].toString();
     FileUtil.chmod(executable, "a+x");
     cmd.add(executable);