OK cool. Just wanted to make sure that I don't give bad advice.

So when UnpackContent unpacks a zip file, it set a new value for the path 
attribute based on the path within the .zip file.

So in order to avoid this, what I would do is add an UpdateAttribute before 
UnpackContent. Configure UpdateAttribute with a new property. For the property 
name, use "zipfile.path" and for the value, use "${path}". So basically you're 
just copying the value of "path" to "zipfile.path". Then, in PutHDFS, for the 
directory, you can use "${zipfile.path}". Or, if you want to also include the 
path of the file within the .zip, you could use "${zipfile.path}/${path}"

Does that make sense?

Thanks
-Mark


----------------------------------------
> Date: Mon, 18 May 2015 07:54:18 -0700
> From: [email protected]
> To: [email protected]
> Subject: RE: losing property
>
> That's right Mark! I want to retain the directory structure.
>
>
>
> --
> View this message in context: 
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/losing-property-tp1565p1577.html
> Sent from the Apache NiFi (incubating) Developer List mailing list archive at 
> Nabble.com.
                                          

Reply via email to