[ https://issues.apache.org/jira/browse/YARN-8079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16482065#comment-16482065 ]
Wangda Tan commented on YARN-8079: ---------------------------------- Thanks [~suma.shivaprasad]. While using this feature, I found the behavior to download to resources/ folder is really confusing. Since inside the spec: {code:java} { "dest_file": "presetup-tf.sh", "type": "STATIC", "src_file": "hdfs:///tf-job-conf/scripts/configs/presetup-tf.sh" },{code} It doesn't mention the "resources" at all in the spec! To make it simple, I would prefer to remove the default resources, and place all downloaded files directly under container's local folder. Thoughts? + [~gsaha]/[~billie.rinaldi]/[~eyang] for suggestions. > Support static and archive unmodified local resources in service AM > ------------------------------------------------------------------- > > Key: YARN-8079 > URL: https://issues.apache.org/jira/browse/YARN-8079 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Wangda Tan > Assignee: Suma Shivaprasad > Priority: Critical > Fix For: 3.2.0, 3.1.1 > > Attachments: YARN-8079.001.patch, YARN-8079.002.patch, > YARN-8079.003.patch, YARN-8079.004.patch, YARN-8079.005.patch, > YARN-8079.006.patch, YARN-8079.007.patch, YARN-8079.008.patch, > YARN-8079.009.patch, YARN-8079.010.patch > > > Currently, {{srcFile}} is not respected. {{ProviderUtils}} doesn't properly > read srcFile, instead it always construct {{remoteFile}} by using > componentDir and fileName of {{destFile}}: > {code} > Path remoteFile = new Path(compInstanceDir, fileName); > {code} > To me it is a common use case which services have some files existed in HDFS > and need to be localized when components get launched. (For example, if we > want to serve a Tensorflow model, we need to localize Tensorflow model > (typically not huge, less than GB) to local disk. Otherwise launched docker > container has to access HDFS. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org