AMBARI-6298. Custom Command execution takes too long. (mpapirkovskyy)