A cache layer and cache-based scheduler for Hadoop