HDFS-5615: refactor to call initCluster