getCluster api should check for hadoop 2 property first