Pretty-print resource type with parsing error.

Review: https://reviews.apache.org/r/11486
Strip spaces and quotes --resources arg.

Review: https://reviews.apache.org/r/11487
Use string comparison for TaskID.

Review: https://reviews.apache.org/r/11488
s/hadoopJobs/jobs/g in Hadoop scheduler.

Review: https://reviews.apache.org/r/11489
Refactor Hadoop job completion.
Stop tracker timer when we terminate tasks.