Added the hadoop version detection fix.
Fix an error reporting msg.