You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by Todd Lipcon <to...@apache.org> on 2011/01/04 22:57:14 UTC

Review Request: MR-2219 Remove only contents of mapred.system.dir at startup, not dir itself

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/206/
-----------------------------------------------------------

Review request for hadoop-mapreduce.


Summary
-------

This patch changes the JT startup to not remove the mapred.system.dir, but rather to remove all of its contents. The motivation is that some people have a layout like:
/system/  <-- owned by hdfs, perms 755
/system/mapred <-- owned by mapred

Currently the JT cannot start up in this scenario since it tries to remove and recreate /system/mapred.


This addresses bug MAPREDUCE-2219.
    https://issues.apache.org/jira/browse/MAPREDUCE-2219


Diffs
-----

  trunk/src/java/org/apache/hadoop/mapred/JobTracker.java 1055190 
  trunk/src/test/mapred/org/apache/hadoop/mapred/TestMapredSystemDir.java 1055190 

Diff: https://reviews.apache.org/r/206/diff


Testing
-------

Modified test case
Tested a similar patch on 20 branch with actual cluster.


Thanks,

Todd