Optimize Hadoop dependencies.