fix out of memory error for hadoop test cases