Advertisement
Guest User

Untitled

a guest
Dec 15th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.94 KB | None | 0 0
  1. // In TestRumenAnonymization.java
  2. ---
  3. > @@ -0,0 +1,1936 @@
  4. 671,673d670
  5. < +    properties.put("mapred.map.child.java.opts",
  6. < +                   "-Xmx2G -Xms500m -Dsecret=secret");
  7. < +    // deprecated and not supported
  8. 687d683
  9. < +    //TODO Support deprecated and un-supported keys
  10. 689c685
  11. < +                       + "mapred.map.child.java.opts:-Xmx2G -Xms500m}", module);
  12. ---
  13. > +                       + "mapred.child.java.opts:-Xmx1G -Xms200m}", module);
  14.  
  15. // In MapReduceJobPropertiesParser.java
  16. ---
  17. > @@ -0,0 +1,233 @@
  18. 5089c5085
  19. < +  private JobConf configuration = new JobConf(false);
  20. ---
  21. > +  private Configuration configuration = new Configuration(false);
  22. 5099c5095,5101
  23. < +    
  24. ---
  25. > +  
  26. > +  // Add deprecation for keys not supported by MapReduce
  27. > +  static {
  28. > +    Configuration.addDeprecation(JobConf.MAPRED_TASK_JAVA_OPTS,
  29. > +        new String[] {MRJobConfig.MAP_JAVA_OPTS, MRJobConfig.REDUCE_JAVA_OPTS});
  30. > +  }
  31. > +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement