CDH-20478: Fix malformed String.format() and catch exceptions during resource estimation.

Change-Id: I41d632b9026b81c31b4dec9c45f7a30340228e8c
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3628
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3636