Thanks Joe. Forgot about uuid :)  And moving path generation to
UpdateAtrribute interesting idea as well.

On Sun, Jun 5, 2016 at 12:57 PM, Joe Witt <[email protected]> wrote:

> You could generate a unique filename with that extension by using the
> following in Update Attribute
>
> Add property:
>   property name: filename
>   property value: ${uuid}.json
>
> You can also set a directory structure with time stamping this way as
> well.  For instance set another attribute on that UpdateAttribute
> processor with
>   property name: hadoopdir
>   property value: /where/to/save/stuff/${now():format('yyyy/MM/dd/HH')}/
>
> Then in your PutHDFS processor you would set the value of the
> 'directory' property to
>   ${hadoopdir}
>
> Thanks
> Joe
>
>
> On Sun, Jun 5, 2016 at 12:44 PM, Igor Kravzov <[email protected]>
> wrote:
> > Hi,
> >
> > I am going to use MergeContent processor to merge multiple JSON files
> before
> > passing it to PutHDFS processor. But before that I want to generate a
> unique
> > file name using UpdateAttribute processor. Something with .json as an
> > extension.
> > What to put into value for filename attribute?
> >
> > Thanks in advance
>

Reply via email to