Reuse code from hadoop-yarn.