Rename a method and fix the warnings in Hadoop QA.