AMBARI-5350. Ambari should set hive.optimize.bucketmapjoin.sortedmerge=false in hive-site.xml. (Dmitry L via mahadev)