<?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 Re: tHDFSPut prompts error message &amp;quot;java.lang.NullPointerException: null&amp;quot; in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308868#M80147</link>
    <description>&lt;P&gt;Another one trial was using THDFSOutput, where I sync the schema from tMap_1. but same error persists. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SqBlsAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152805i458A6CB1C5F66EEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SqBlsAAF.png" alt="0695b00000SqBlsAAF.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 22:04:37 GMT</pubDate>
    <dc:creator>WSyahirah21</dc:creator>
    <dc:date>2022-06-21T22:04:37Z</dc:date>
    <item>
      <title>tHDFSPut prompts error message "java.lang.NullPointerException: null"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308867#M80146</link>
      <description>&lt;P&gt;I am trying to upload my json data to HDFS before storing it into Hive using talend data fabric. My workflow is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;**** &amp;gt; tmaps / tLogRows (structuring json data) &amp;gt; tHDFSPut &amp;gt; THiveCreateTable &amp;gt; tHiveLoad. &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Workflow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SqArGAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148705i744279D2053EE1E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SqArGAAV.png" alt="0695b00000SqArGAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result from tLogRow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SqArkAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152154i518B2C219068CE72/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SqArkAAF.png" alt="0695b00000SqArkAAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tHDFSPut configuration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SqAtqAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133467iD9B63B8B42752D69/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SqAtqAAF.png" alt="0695b00000SqAtqAAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already managed to structure the data into a proper table (with schema). However once I tried to upload the data into HDFS using tHDFSPut component, it gives the error (see the detail error in attachment), as seems like I didnt fetch any data from tLogRow.. e.g. &lt;B&gt;((String)globalMap.get("tLogRow_1_CURRENT_FILEPATH") &lt;/B&gt;- no idea how to use this in this case) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"java.lang.NullPointerException: null"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Am I doing a correct way/component to load data into hdfs in talend?&lt;/LI&gt;&lt;LI&gt;Any other recommendations of workflow, as long as I able to load data to hdfs .. before saving into Hive&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Reason I upload the data to hive, instead of straightaway load to hive is because inserting the data to hive without saving it into temp storage is slow (for streaming data)&lt;/LI&gt;&lt;LI&gt;Reference : &lt;A href="https://www.youtube.com/watch?v=W4xQGnC8sY4&amp;amp;t=55s" alt="https://www.youtube.com/watch?v=W4xQGnC8sY4&amp;amp;t=55s" target="_blank"&gt;https://www.youtube.com/watch?v=W4xQGnC8sY4&amp;amp;t=55s&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308867#M80146</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2024-11-15T22:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut prompts error message "java.lang.NullPointerException: null"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308868#M80147</link>
      <description>&lt;P&gt;Another one trial was using THDFSOutput, where I sync the schema from tMap_1. but same error persists. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SqBlsAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152805i458A6CB1C5F66EEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SqBlsAAF.png" alt="0695b00000SqBlsAAF.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 22:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308868#M80147</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2022-06-21T22:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut prompts error message "java.lang.NullPointerException: null"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308869#M80148</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You are using an existing connection on HDFS component, make sure the connection is created before it is used. we usually create the  connection in the beginning of job. &lt;/P&gt;&lt;P&gt;PreJob--oncomponentok--tHDFSConnection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't use tHDFSPut correctly,  this component load the local file to HDFS system, but I see the local folder field is empty. Change your job design as below:&lt;/P&gt;&lt;P&gt;PreJob--oncomponentok--tHDFSConnection&lt;/P&gt;&lt;P&gt;&amp;nbsp;....tmaps / tLogRows (structuring json data)&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt; tHDFSPut &lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;THiveCreateTable --oncomponentok-&amp;gt;tHiveLoad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 02:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308869#M80148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-22T02:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut prompts error message "java.lang.NullPointerException: null"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308870#M80149</link>
      <description>&lt;P&gt;Hi Shong, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I actually already make the hdfs connection in the workflow. &lt;/P&gt;&lt;P&gt;And tried the suggested workflow you mentioned above. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SqCaMAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147070i584D23579573B4B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SqCaMAAV.png" alt="0695b00000SqCaMAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Setting in tHDFSPut:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SqCZtAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131364iE22668FC9BD56551/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SqCZtAAN.png" alt="0695b00000SqCZtAAN.png" /&gt;&lt;/span&gt;However, I am quite confused how do I pass the result from tLogRow to tHDFSPut? because here I see only the local (where the source file is stored) and hdfs dir (destination dir to store file). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 02:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308870#M80149</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2022-06-22T02:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut prompts error message "java.lang.NullPointerException: null"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308871#M80150</link>
      <description>&lt;P&gt;store the result to a local file using tFileOutputDelimited first, then select the local file on tHDFSPut.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 02:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308871#M80150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-22T02:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut prompts error message "java.lang.NullPointerException: null"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308872#M80151</link>
      <description>&lt;P&gt;Hi Shong, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already put the data into local in csv file. But when connecting to HDFSPut, I still receive following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;java.lang.NullPointerException: null&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;﻿&lt;/I&gt;&lt;/B&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SqCkgAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136460i9E1BF9F319FDD621/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SqCkgAAF.png" alt="0695b00000SqCkgAAF.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 04:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308872#M80151</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2022-06-22T04:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut prompts error message "java.lang.NullPointerException: null"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308873#M80152</link>
      <description>&lt;P&gt;why I see the 'Use an existing connection' box is unchecked? In Local directory field, set the path to directory path, not the file path. In Files table, set the New name.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 04:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308873#M80152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-22T04:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut prompts error message "java.lang.NullPointerException: null"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308874#M80153</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SqCpRAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153869i8BECFA256E5792D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SqCpRAAV.png" alt="0695b00000SqCpRAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The existing connection is checked (connected to tHDFSConnection -  the feature my of studio attempts to highlight the layout of the box). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Already change the local dir and for new name, i will leave it blank as I dont want to use any new name and will just retain the existing name. However, it still gives the null value error. Did I miss any config in that component? &lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 05:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308874#M80153</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2022-06-22T05:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut prompts error message "java.lang.NullPointerException: null"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308875#M80154</link>
      <description>&lt;P&gt;Check the 'Use Perl5 Regex...' box if you set a regular expression in FileMask, or write the full file name if there is only one file in the folder. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 06:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-prompts-error-message-quot-java-lang/m-p/2308875#M80154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-22T06:54:49Z</dc:date>
    </item>
  </channel>
</rss>

