Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

PutHDFS - URI syntax exception

Highlighted

PutHDFS - URI syntax exception

New Contributor

Hi

I am newbie when it comes to NIFI . My cluster is managed by Cloudera manager .

I am trying to do simple poc - for checking duplicates files .

I am getting Java.lang.illegal.ArugumentException . URISyntaxException .

When I looked into the data provenance - I am seeing a . (dot) infront of my filename . I really dont know where I am wrong.

could anyone help me out this .

First Image has the error screenshot

Second Image has the update Attribute - Configuration details.


screenshot-from-2017-06-17-13-59-59.pngscreenshot-from-2017-06-17-14-11-10.png
1 REPLY 1

Re: PutHDFS - URI syntax exception

Hi @Guna sun,

I think the problem is with the format of the date you add to the filename using the expression language. You could use:

${now():toNumber()}

If you want a unix timestamp. If you want a specific format, you can do:

${now():format('yyyy')}

https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#now

Hope this helps.