changed old ref to yarn
forked newer hdfs replication check from yarn plugin