Hotfix/move hdfstmpdir call

Move the call from namenode to yarn, with the new guard.