The localized files will be in the YARN containers working directory and
JVMs classpath, so as long as you know the original name, you will be able
to access via Class.getResourceAsStream or Class.getResource

Thomas

On Fri, Mar 17, 2017 at 8:54 AM, Vikram Patil <vik...@datatorrent.com>
wrote:

> Thanks Thomas. Could you suggest a way so that I can figure out the path
> to particular localized file on container node preferably using
> OperatorContext ?
>
>
> On Fri, Mar 17, 2017 at 8:06 PM, Thomas Weise <t...@apache.org> wrote:
>
>> If you use LIB_JARS or FILES, then those files will be localized by YARN
>> on the container node, you don't need to manually copy them from HDFS or
>> write cleanup code for it.
>>
>> Thomas
>>
>> On Fri, Mar 17, 2017 at 12:49 AM, vikram patil <patilvik...@gmail.com>
>> wrote:
>>
>>> Hello All,
>>>
>>> I am working on operator which would download the file from HDFS and
>>> store in on the local machine during run-time.  For storing files to HDFS
>>> from client machine I will be using LIB_JARS or FILES configuration. Once
>>> operator fails/shuts down, I would like to clean up these files
>>> automatically if possible.
>>>
>>> Thanks & Regards,
>>> Vikram
>>>
>>
>>
>

Reply via email to