BTW, maybe this is a 'yarn-client' mode-only case.
I have not tested the 'yarn-cluster' mode.