<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: IS THERE A PROCESSOR IN NIFI THAT CAN CREATE MANY DIRECTORY IN HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/IS-THERE-A-PROCESSOR-IN-NIFI-THAT-CAN-CREATE-MANY-DIRECTORY/m-p/120350#M34263</link>
    <description>&lt;P&gt;Thank you very much for your Help sir and have a good day or night depend on where you are &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2016 22:58:10 GMT</pubDate>
    <dc:creator>raobelina_toky_</dc:creator>
    <dc:date>2016-07-08T22:58:10Z</dc:date>
    <item>
      <title>IS THERE A PROCESSOR IN NIFI THAT CAN CREATE MANY DIRECTORY IN HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/IS-THERE-A-PROCESSOR-IN-NIFI-THAT-CAN-CREATE-MANY-DIRECTORY/m-p/120348#M34261</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello everyone, I've start working with nifi last week so sorry if my question is an obvious one. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm currentlty taking data in a Kafka Topic, those data are in Json format.
I'm scaning every Json document and depending of the value of some fields, i would like
to sort them in a directory with the name of the value. &lt;/P&gt;&lt;P&gt;for example if i have : &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{"timestamp_da":"2016-07-06T15:04:33.332+00:00","type":"question","subject":"nifi"} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{"timestamp_da":"2016-07-06T15:04:33.332+00:00","type":"question","subject":"Kafka"} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt; I would like to extract the timestamp value and convert it into "20160706" and then create a directory with it. &lt;/P&gt;&lt;P&gt;After that every Json with the same timestamp will be route there.
Is it possible ? or I'm I dreaming ?&lt;/P&gt;&lt;P&gt;I initially was doing this with spark but i think it's a waste to use spark just for this.
If my question wasn't clear enought i can give more details. &lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 21:33:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/IS-THERE-A-PROCESSOR-IN-NIFI-THAT-CAN-CREATE-MANY-DIRECTORY/m-p/120348#M34261</guid>
      <dc:creator>raobelina_toky_</dc:creator>
      <dc:date>2016-07-08T21:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: IS THERE A PROCESSOR IN NIFI THAT CAN CREATE MANY DIRECTORY IN HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/IS-THERE-A-PROCESSOR-IN-NIFI-THAT-CAN-CREATE-MANY-DIRECTORY/m-p/120349#M34262</link>
      <description>&lt;P&gt;See this post:   &lt;A href="https://community.hortonworks.com/questions/21011/how-i-extract-attribute-from-json-file-using-nifi.html" target="_blank"&gt;https://community.hortonworks.com/questions/21011/how-i-extract-attribute-from-json-file-using-nifi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And some more information on creating directories:&lt;/P&gt;&lt;P&gt;&lt;A href="https://kisstechdocs.wordpress.com/2015/01/18/simple-tasks-in-nifi-file-objects-by-date/" target="_blank"&gt;https://kisstechdocs.wordpress.com/2015/01/18/simple-tasks-in-nifi-file-objects-by-date/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Look at the split route example here:   &lt;A href="https://community.hortonworks.com/articles/961/a-collection-of-nifi-examples.html" target="_blank"&gt;https://community.hortonworks.com/articles/961/a-collection-of-nifi-examples.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also useful for routing and scripting based on values:   &lt;A href="https://blogs.apache.org/nifi/entry/indexing_tweets_with_nifi_and" target="_blank"&gt;https://blogs.apache.org/nifi/entry/indexing_tweets_with_nifi_and&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 21:58:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/IS-THERE-A-PROCESSOR-IN-NIFI-THAT-CAN-CREATE-MANY-DIRECTORY/m-p/120349#M34262</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-07-08T21:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: IS THERE A PROCESSOR IN NIFI THAT CAN CREATE MANY DIRECTORY IN HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/IS-THERE-A-PROCESSOR-IN-NIFI-THAT-CAN-CREATE-MANY-DIRECTORY/m-p/120350#M34263</link>
      <description>&lt;P&gt;Thank you very much for your Help sir and have a good day or night depend on where you are &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 22:58:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/IS-THERE-A-PROCESSOR-IN-NIFI-THAT-CAN-CREATE-MANY-DIRECTORY/m-p/120350#M34263</guid>
      <dc:creator>raobelina_toky_</dc:creator>
      <dc:date>2016-07-08T22:58:10Z</dc:date>
    </item>
  </channel>
</rss>

