[
https://issues.apache.org/jira/browse/SLIDER-757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14282606#comment-14282606
]
Jonathan Maron commented on SLIDER-757:
---------------------------------------
The HDFS path you reference (.slider/cluster/CLUSTER_NAME) is created by the
slider client during the creation of a cluster. I suppose you could pre-create
it with a resources dir and the client will populate the rest of the
sub-directories after the fact, but that seems somewhat contrived and the
resources dir will be lost during a cluster destroy (unless the permissions are
set in such a way that the destroy will not execute properly - also not ideal).
I would suggest a path independent of cluster, with a tag to identity the
particular resource:
./slider/resources/RESOURCE_NAME/resourceFile
The app config could even list more than one resource to include:
"slider.additional.resources": "RESOURCE1, RESOURCE2"
Which would trigger the inclusion of all resources in the given source
directories in the apps additional resource directory.
> Add Additional Resources
> ------------------------
>
> Key: SLIDER-757
> URL: https://issues.apache.org/jira/browse/SLIDER-757
> Project: Slider
> Issue Type: Improvement
> Components: core
> Affects Versions: Slider 0.60
> Reporter: Yang Hao
>
> To add this feature would be good for some application that would use extra
> resources:
> * set "site.additional_resource_dir": "{{additional_resource_dir}}" in
> app_config.json
> * add the resource files to hdfs at
> .slider/cluster/{{CLUSTER_NAME}}/{{additional_resource_dir}}
> * then the resource will be automatically tranferred to container at
> working_root/{{additional_resource_dir}}
> * in component, you can access the resources in dir
> {{AGENT_WORK_ROOT}}/{{additional_resource_dir}}
> Examples:
> * we can add keytabfile、configure file to {{additional_resource_dir}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)