Fix a bug in integration tests

A bug in hadoop test has been corrected. Bug: cluster template deleted during work of cluster.

Change-Id: I510cadb001875661f638cb9afd3bab8762af9ae5
Merge "Fix a bug in integration tests"