<?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>topic How do I create a directory in HDFS with Talend? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-create-a-directory-in-HDFS-with-Talend/m-p/2271473#M49061</link>
    <description>Noob question, so please don't laugh too hard.... :-)
&lt;BR /&gt;I am creating a date/time based directory structure in HDFS via file insertion from Talend:
&lt;BR /&gt; YYYY/MM/DD/HH/
&lt;BR /&gt;So, when I insert files into HDFS, the necessary file structure is automatically created:
&lt;BR /&gt; inserting file "YYYY/MM/DD/11/data.txt" creates directory "YYYY/MM/DD/11/"
&lt;BR /&gt;EXCEPT when I happen to be inserting the file at the start of the hour (i.e. 11:00 on the dot).
&lt;BR /&gt;I'm running into an issue where if I try to create the file at the start of the hour Talend names the file "YYYY/MM/DD/11" (where "11" is the file "data.txt" renamed for some reason) and not "YYYY/MM/DD/11/data.txt". Thus, all my following insert attempts for that hour fail because I am trying to write the files to a directory called "YYYY/MM/DD/11/".
&lt;BR /&gt;The work around I found was to manually create the directory structure before Talend attempts to insert files.
&lt;BR /&gt;How do I create a directory in HDFS with Talend so I can remove the manual step?</description>
    <pubDate>Sat, 16 Nov 2024 12:12:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:12:51Z</dc:date>
    <item>
      <title>How do I create a directory in HDFS with Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-create-a-directory-in-HDFS-with-Talend/m-p/2271473#M49061</link>
      <description>Noob question, so please don't laugh too hard.... :-)
&lt;BR /&gt;I am creating a date/time based directory structure in HDFS via file insertion from Talend:
&lt;BR /&gt; YYYY/MM/DD/HH/
&lt;BR /&gt;So, when I insert files into HDFS, the necessary file structure is automatically created:
&lt;BR /&gt; inserting file "YYYY/MM/DD/11/data.txt" creates directory "YYYY/MM/DD/11/"
&lt;BR /&gt;EXCEPT when I happen to be inserting the file at the start of the hour (i.e. 11:00 on the dot).
&lt;BR /&gt;I'm running into an issue where if I try to create the file at the start of the hour Talend names the file "YYYY/MM/DD/11" (where "11" is the file "data.txt" renamed for some reason) and not "YYYY/MM/DD/11/data.txt". Thus, all my following insert attempts for that hour fail because I am trying to write the files to a directory called "YYYY/MM/DD/11/".
&lt;BR /&gt;The work around I found was to manually create the directory structure before Talend attempts to insert files.
&lt;BR /&gt;How do I create a directory in HDFS with Talend so I can remove the manual step?</description>
      <pubDate>Sat, 16 Nov 2024 12:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-create-a-directory-in-HDFS-with-Talend/m-p/2271473#M49061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a directory in HDFS with Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-create-a-directory-in-HDFS-with-Talend/m-p/2271474#M49062</link>
      <description>&amp;gt;&amp;gt; The work around I found was to manually create the directory structure before Talend attempts to insert files.
&lt;BR /&gt;For now, I have added the create the directory call (hadoop fs -mkdir ...) as a system call component in Talend,
&lt;BR /&gt;I would like to know if there is a more elegant solution.....</description>
      <pubDate>Mon, 27 Aug 2012 03:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-create-a-directory-in-HDFS-with-Talend/m-p/2271474#M49062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-27T03:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a directory in HDFS with Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-create-a-directory-in-HDFS-with-Talend/m-p/2271475#M49063</link>
      <description>In the component properties, HDFS Directory, can't you just set up a context variable called context.datedDirectory and each time the job runs it get a different date from a Talend.GetDate function or a parsing of the files you are putting into is and talend will create the directory in HDFS based on this context variable's value each time the job runs?</description>
      <pubDate>Mon, 27 Aug 2012 23:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-create-a-directory-in-HDFS-with-Talend/m-p/2271475#M49063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-27T23:40:25Z</dc:date>
    </item>
  </channel>
</rss>

