HIVE-2127 Improve stats gathering reliability by retries on failures with hive.stats.retries.max and hive.stats.retries.wait (Ning Zhang via namit)