I have a directory with some model files and my application has to access these models files in local file system due to some reason.
Of course I know that --files
option of spark-submit
can upload file to the working directory of each executor and it does work.
However, I want keep the directory structure of my files so I come up with --archives
option, which is said
YARN-only:
......
--archives ARCHIVES Comma separated list of archives to be extracted into the working directory of each executor.
......
But when I actually use it to upload models.zip
, I found yarn just put it there without extraction, like what it did with --files
. Have I misunderstood to be extracted
or misused this option?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…