<?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: connect to Postgresql DB from Talend spark batch job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295165#M67976</link>
    <description>It is variant, thanks 
&lt;BR /&gt;but why, if they allow to have Context environment - why this stupid steps with load values? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Question for Talend Team!</description>
    <pubDate>Thu, 16 Mar 2017 20:15:58 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2017-03-16T20:15:58Z</dc:date>
    <item>
      <title>connect to Postgresql DB from Talend spark batch job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295161#M67972</link>
      <description>Hello,&lt;BR /&gt;I have a spark job input as csv file and output as avro file.&lt;BR /&gt;For the source and target folder_name and file_name I want to use context that is getting values from postgres according to the current workflow.&lt;BR /&gt;Is there a way to connect to postgres from spark batch job? the palette for this type is very little.&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 16 Nov 2024 10:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295161#M67972</guid>
      <dc:creator>yarivsc</dc:creator>
      <dc:date>2024-11-16T10:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: connect to Postgresql DB from Talend spark batch job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295162#M67973</link>
      <description>&lt;P align="LEFT"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, sans-serif"&gt;Hi,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P align="LEFT"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P align="LEFT"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, sans-serif"&gt;For&amp;nbsp;RDS, you can use spark component to achieve it. Have you tried to use tjdbc (Generic JDBC Component) a spark component to connect to postgres RDS?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P align="LEFT"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P align="LEFT"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 09:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295162#M67973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-16T09:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: connect to Postgresql DB from Talend spark batch job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295163#M67974</link>
      <description>It look like really missed functionality:&lt;BR /&gt;&lt;BR /&gt;JDBC could be used only for lookup&lt;BR /&gt;no tLoadContext&lt;BR /&gt;no possibility load context in Job properties (same as for all DI Jobs)&lt;BR /&gt;&lt;BR /&gt;You can only hardcode context in tab, but not load it&amp;nbsp;</description>
      <pubDate>Thu, 16 Mar 2017 09:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295163#M67974</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-03-16T09:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: connect to Postgresql DB from Talend spark batch job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295164#M67975</link>
      <description>I've been told by Talend R&amp;amp;D that it is their intent to keep tContextLoad out of the big data batch job. &amp;nbsp;There is a previous post by me if you search for it. &amp;nbsp;You have to do you context loading it a standard job then tRunJob call the big data back job. Then do a buffer if you need to send something back.</description>
      <pubDate>Thu, 16 Mar 2017 13:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295164#M67975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-16T13:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: connect to Postgresql DB from Talend spark batch job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295165#M67976</link>
      <description>It is variant, thanks 
&lt;BR /&gt;but why, if they allow to have Context environment - why this stupid steps with load values? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Question for Talend Team!</description>
      <pubDate>Thu, 16 Mar 2017 20:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295165#M67976</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-03-16T20:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: connect to Postgresql DB from Talend spark batch job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295166#M67977</link>
      <description>I agree, found the more detailed answer from Talend that I referenced earlier: 
&lt;BR /&gt;" 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;So to confirm, tContextLoad is unavailable as a component for Big Data Batch jobs.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;But you can still use the tContextLoad in a Big Data Batch job, but gluing a DI job to a tRunJob that calls a Spark job .&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;The DI job does the tContextLoad as part of the preparation and sends it to the Spark job.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;The reasoning behind this is -- because of the way big data jobs are structured, the context can't be modified in a Spark component.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;Just like you can't use the global map in a spark job, both the idea of the global map and a "modifiable" context is a kind of "job state" that can't be distributed.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;(R&amp;amp;D says there ARE techniques to do this, but it's almost always a bad idea!)&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;R&amp;amp;D says they think of DI jobs as "orchestrators" that set up the Spark job to be run.&amp;nbsp;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;This might make sense if they want to keep spark job more modular, functional, and with a very specific purpose which would make sense in a true scala/spark application, but it doesn't fit the Talend component, ease to development model well.</description>
      <pubDate>Fri, 17 Mar 2017 13:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/connect-to-Postgresql-DB-from-Talend-spark-batch-job/m-p/2295166#M67977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-17T13:53:16Z</dc:date>
    </item>
  </channel>
</rss>

