State machines for YARN and MR