Prepared for compatibility release with both Hadoop 1.0 and 2.0.