<?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 tHDFSPut/tHDFSOutput - java.lang.NullPointerException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316169#M86742</link>
    <description>When using tHDFSPut or tHDFSOutput I keep ending with error: 'java.lang.NullPointerException'. The flow works fine until I add tHDFSPut of tHDFSOutput to the flow. Does anybody know a solution for this error?</description>
    <pubDate>Wed, 16 Apr 2014 16:23:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-16T16:23:41Z</dc:date>
    <item>
      <title>tHDFSPut/tHDFSOutput - java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316169#M86742</link>
      <description>When using tHDFSPut or tHDFSOutput I keep ending with error: 'java.lang.NullPointerException'. The flow works fine until I add tHDFSPut of tHDFSOutput to the flow. Does anybody know a solution for this error?</description>
      <pubDate>Wed, 16 Apr 2014 16:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316169#M86742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-16T16:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut/tHDFSOutput - java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316170#M86743</link>
      <description>Select the component tHDFSPut  in your job and change to the code view and post the lines around the line mentioned in your stack trace from the NullPointerException. This way we can try to find the reason.</description>
      <pubDate>Wed, 16 Apr 2014 20:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316170#M86743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-16T20:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut/tHDFSOutput - java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316171#M86744</link>
      <description>Hi, thanks for the response! 
&lt;BR /&gt;Below the code belonging to the tSDHFPut. 
&lt;BR /&gt;I have no clue why the error always pops up after adding tHFFSPUT or tHDFSOutput. 
&lt;BR /&gt; currentComponent = "tHDFSPut_1";
&lt;BR /&gt; // row7
&lt;BR /&gt; // row7
&lt;BR /&gt; if (execStat) {
&lt;BR /&gt; runStat.updateStatOnConnection("row7" + iterateId,
&lt;BR /&gt; 1, 1);
&lt;BR /&gt; }
&lt;BR /&gt; java.util.Set&amp;lt;String&amp;gt; keySet_tHDFSPut_1 = map_tHDFSPut_1
&lt;BR /&gt; .keySet();
&lt;BR /&gt; for (String key_tHDFSPut_1 : keySet_tHDFSPut_1) {
&lt;BR /&gt; String tempdir_tHDFSPut_1 = localdir_tHDFSPut_1;
&lt;BR /&gt; String filemask_tHDFSPut_1 = key_tHDFSPut_1;
&lt;BR /&gt; String dir_tHDFSPut_1 = null;
&lt;BR /&gt; String mask_tHDFSPut_1 = filemask_tHDFSPut_1
&lt;BR /&gt; .replaceAll("\\\\", "/");
&lt;BR /&gt; int i_tHDFSPut_1 = mask_tHDFSPut_1.lastIndexOf('/');
&lt;BR /&gt; if (i_tHDFSPut_1 != -1) {
&lt;BR /&gt; dir_tHDFSPut_1 = mask_tHDFSPut_1.substring(0,
&lt;BR /&gt; i_tHDFSPut_1);
&lt;BR /&gt; mask_tHDFSPut_1 = mask_tHDFSPut_1
&lt;BR /&gt; .substring(i_tHDFSPut_1 + 1);
&lt;BR /&gt; }
&lt;BR /&gt; if (dir_tHDFSPut_1 != null
&lt;BR /&gt; &amp;amp;&amp;amp; !"".equals(dir_tHDFSPut_1))
&lt;BR /&gt; tempdir_tHDFSPut_1 = tempdir_tHDFSPut_1 + "/"
&lt;BR /&gt; + dir_tHDFSPut_1;
&lt;BR /&gt; mask_tHDFSPut_1 = mask_tHDFSPut_1.replaceAll("\\.",
&lt;BR /&gt; "\\\\.").replaceAll("\\*", ".*");
&lt;BR /&gt; final String finalMask_tHDFSPut_1 = mask_tHDFSPut_1;
&lt;BR /&gt; java.io.File[] listings_tHDFSPut_1 = null;
&lt;BR /&gt; java.io.File file_tHDFSPut_1 = new java.io.File(
&lt;BR /&gt; tempdir_tHDFSPut_1);
&lt;BR /&gt; if (file_tHDFSPut_1.isDirectory()) {
&lt;BR /&gt; listings_tHDFSPut_1 = file_tHDFSPut_1
&lt;BR /&gt; .listFiles(new java.io.FileFilter() {
&lt;BR /&gt; public boolean accept(
&lt;BR /&gt; java.io.File pathname) {
&lt;BR /&gt; boolean result = false;
&lt;BR /&gt; if (pathname != null
&lt;BR /&gt; &amp;amp;&amp;amp; pathname.isFile()) {
&lt;BR /&gt; result = java.util.regex.Pattern
&lt;BR /&gt; .compile(
&lt;BR /&gt; finalMask_tHDFSPut_1)
&lt;BR /&gt; .matcher(
&lt;BR /&gt; pathname.getName())
&lt;BR /&gt; .find();
&lt;BR /&gt; }
&lt;BR /&gt; return result;
&lt;BR /&gt; }
&lt;BR /&gt; });
&lt;BR /&gt; }
&lt;BR /&gt; if (listings_tHDFSPut_1 == null
&lt;BR /&gt; || listings_tHDFSPut_1.length &amp;lt;= 0) {
&lt;BR /&gt; System.err.println("No match file("
&lt;BR /&gt; + key_tHDFSPut_1 + ") exist!");
&lt;BR /&gt; } else {
&lt;BR /&gt; String localFilePath_tHDFSPut_1 = "";
&lt;BR /&gt; String hdfsFilePath_tHDFSPut_1 = "";
&lt;BR /&gt; for (int m_tHDFSPut_1 = 0; m_tHDFSPut_1 &amp;lt; listings_tHDFSPut_1.length; m_tHDFSPut_1++) {
&lt;BR /&gt; if (listings_tHDFSPut_1
&lt;BR /&gt; .getName().matches(mask_tHDFSPut_1)) {
&lt;BR /&gt; localFilePath_tHDFSPut_1 = listings_tHDFSPut_1
&lt;BR /&gt; .getAbsolutePath();
&lt;BR /&gt; hdfsFilePath_tHDFSPut_1 = "/user/sandbox"
&lt;BR /&gt; + "/"
&lt;BR /&gt; + map_tHDFSPut_1
&lt;BR /&gt; .get(key_tHDFSPut_1);
&lt;BR /&gt; try {
&lt;BR /&gt; fs_tHDFSPut_1
&lt;BR /&gt; .copyFromLocalFile(
&lt;BR /&gt; false,
&lt;BR /&gt; true,
&lt;BR /&gt; new org.apache.hadoop.fs.Path(
&lt;BR /&gt; localFilePath_tHDFSPut_1),
&lt;BR /&gt; new org.apache.hadoop.fs.Path(
&lt;BR /&gt; hdfsFilePath_tHDFSPut_1));
&lt;BR /&gt; // add info to list will return
&lt;BR /&gt; msg_tHDFSPut_1
&lt;BR /&gt; .add("file: "
&lt;BR /&gt; + listings_tHDFSPut_1
&lt;BR /&gt; .getAbsolutePath()
&lt;BR /&gt; + ", size: "
&lt;BR /&gt; + listings_tHDFSPut_1
&lt;BR /&gt; .length()
&lt;BR /&gt; + " bytes upload successfully");
&lt;BR /&gt; nb_success_tHDFSPut_1++;
&lt;BR /&gt; } catch (java.io.IOException e) {
&lt;BR /&gt; throw (e);
&lt;BR /&gt; }
&lt;BR /&gt; nb_file_tHDFSPut_1++;
&lt;BR /&gt; }
&lt;BR /&gt; }
&lt;BR /&gt; }
&lt;BR /&gt; }
&lt;BR /&gt; tos_count_tHDFSPut_1++;
&lt;BR /&gt; /**
&lt;BR /&gt; * stop
&lt;BR /&gt; */
&lt;BR /&gt; /**</description>
      <pubDate>Thu, 17 Apr 2014 08:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316171#M86744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-17T08:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut/tHDFSOutput - java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316172#M86745</link>
      <description>I started having this error after I install componet hadoop patch to resolve the winutils.exe error. &amp;nbsp;Remove the component but issue still persist.</description>
      <pubDate>Wed, 24 Sep 2014 20:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316172#M86745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-24T20:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: tHDFSPut/tHDFSOutput - java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316173#M86746</link>
      <description>Hi tribui333,&lt;BR /&gt;Could you please indicate the build version you aere using? What's your current workflow?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 26 Sep 2014 05:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHDFSPut-tHDFSOutput-java-lang-NullPointerException/m-p/2316173#M86746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T05:05:02Z</dc:date>
    </item>
  </channel>
</rss>

