hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1671038 - in /hama/trunk: CHANGES.txt core/src/main/java/org/apache/hama/bsp/BSPJobClient.java yarn/src/main/java/org/apache/hama/bsp/YarnSerializePrinting.java
Date Fri, 03 Apr 2015 11:56:59 GMT
Author: edwardyoon
Date: Fri Apr  3 11:56:59 2015
New Revision: 1671038

URL: http://svn.apache.org/r1671038
Log:
HAMA-943: java.lang.IllegalAccessError occur at run time when set default bsp.user.name

Modified:
    hama/trunk/CHANGES.txt
    hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java
    hama/trunk/yarn/src/main/java/org/apache/hama/bsp/YarnSerializePrinting.java

Modified: hama/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hama/trunk/CHANGES.txt?rev=1671038&r1=1671037&r2=1671038&view=diff
==============================================================================
--- hama/trunk/CHANGES.txt (original)
+++ hama/trunk/CHANGES.txt Fri Apr  3 11:56:59 2015
@@ -12,6 +12,7 @@ Release 0.7.0 (unreleased changes)
 
   BUG FIXES
 
+   HAMA-943: java.lang.IllegalAccessError occur at run time when set default "bsp.user.name"
(Minho Kim via edwardyoon)
    HAMA-935: Doesn't operate if hostname doesn't match between AppMaster and Zookeeper quorum
(Minho Kim via edwardyoon)
    HAMA-931: Make the HAMA base path configurable (Minho Kim via edwardyoon)
    HAMA-930: Add hama-yarn to binary distribution (Minho Kim via edwardyoon)  

Modified: hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java
URL: http://svn.apache.org/viewvc/hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java?rev=1671038&r1=1671037&r2=1671038&view=diff
==============================================================================
--- hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java (original)
+++ hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java Fri Apr  3 11:56:59
2015
@@ -1006,7 +1006,7 @@ public class BSPJobClient extends Config
    * Helper methods for unix operations
    */
 
-  static String getUnixUserName() throws IOException {
+  protected static String getUnixUserName() throws IOException {
     String[] result = executeShellCommand(new String[] { Shell.USER_NAME_COMMAND });
     if (result.length != 1) {
       throw new IOException("Expect one token as the result of "

Modified: hama/trunk/yarn/src/main/java/org/apache/hama/bsp/YarnSerializePrinting.java
URL: http://svn.apache.org/viewvc/hama/trunk/yarn/src/main/java/org/apache/hama/bsp/YarnSerializePrinting.java?rev=1671038&r1=1671037&r2=1671038&view=diff
==============================================================================
--- hama/trunk/yarn/src/main/java/org/apache/hama/bsp/YarnSerializePrinting.java (original)
+++ hama/trunk/yarn/src/main/java/org/apache/hama/bsp/YarnSerializePrinting.java Fri Apr 
3 11:56:59 2015
@@ -59,13 +59,11 @@ public class YarnSerializePrinting {
     HamaConfiguration conf = new HamaConfiguration();
 
     YARNBSPJob job = new YARNBSPJob(conf);
-    System.out.println(conf.get("bsp.user.name"));
     job.setBspClass(HelloBSP.class);
     job.setJarByClass(HelloBSP.class);
     job.setJobName("Serialize Printing");
     job.setInputFormat(NullInputFormat.class);
     job.setOutputFormat(NullOutputFormat.class);
-
     job.setMemoryUsedPerTaskInMb(100);
     job.setNumBspTask(4);
     job.waitForCompletion(true);



Mime
View raw message