Implemented an rpc Server inside applicationMaster