workaround for hadoop2 clusters