<?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 REG: Json file in s3 to Postgres table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/REG-Json-file-in-s3-to-Postgres-table/m-p/2212517#M10128</link>
    <description>&lt;P&gt;I have json file coming to s3 bucket , every 10 mins to a folder. Each json have the same structure of columns , just with one different record in each.&amp;nbsp;I need to migrate these to a table name common in postgres. How can i achieve them ? I have TAC as well, How to schedule &amp;amp; get it done.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Json File:&amp;nbsp; For ex :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;[{"DateTime":"2016-09-03 14:00:00","Total_Crude_Flow_Rate_MBperDay":171.9602,"Actual_Yield_LGO_MBperDay":39.2051,"Actual_Yield_MVGO_MBperDay":22.5081,"Actual_Yield_HVGO_MBperDay":26.0575,"Actual_Yield_VGO_MBperDay":48.5655,"Actual_Yield_VR_MBperDay":22.8243,"Crude_Ambient_Temperature_DEGC":43.5956,"Desalter_Inlet_Temperature_1_DEGC":141.2322,"Desalter_Inlet_Temperature_2_DEGC":133.4597,"Resultant_Desalter_Inlet_Temperature_DEGC":138.3071,"Desalter_Outlet_Temperature_DEGC":141.5549,"Coil_Inlet_Temperature_DEGC":262.1993,"RunDate":"2019-07-26 12:51:07","SavedDate":"2019-07-26 17:49:21"}]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Target table Structure : ( One to one mapping ) - Postgres database&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;"Id",&lt;BR /&gt;"Datetime",&lt;BR /&gt;"TotalCrudeFlowRate",&lt;BR /&gt;"ActualYieldLGO",&lt;BR /&gt;"ActualYieldMVGO",&lt;BR /&gt;"ActualYieldHVGO",&lt;BR /&gt;"ActualYieldVGO",&lt;BR /&gt;"ActualYieldVR",&lt;BR /&gt;"CoilInletTemperature",&lt;BR /&gt;"DesalterInletTemperature1",&lt;BR /&gt;"DesalterInletTemperature2",&lt;BR /&gt;"DesalterOutletTemperature"&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Ad.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145645iF9981076AE4C1DBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Ad.jpg" alt="0683p000009M7Ad.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Prabuj&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:51:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T04:51:58Z</dc:date>
    <item>
      <title>REG: Json file in s3 to Postgres table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/REG-Json-file-in-s3-to-Postgres-table/m-p/2212517#M10128</link>
      <description>&lt;P&gt;I have json file coming to s3 bucket , every 10 mins to a folder. Each json have the same structure of columns , just with one different record in each.&amp;nbsp;I need to migrate these to a table name common in postgres. How can i achieve them ? I have TAC as well, How to schedule &amp;amp; get it done.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Json File:&amp;nbsp; For ex :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;[{"DateTime":"2016-09-03 14:00:00","Total_Crude_Flow_Rate_MBperDay":171.9602,"Actual_Yield_LGO_MBperDay":39.2051,"Actual_Yield_MVGO_MBperDay":22.5081,"Actual_Yield_HVGO_MBperDay":26.0575,"Actual_Yield_VGO_MBperDay":48.5655,"Actual_Yield_VR_MBperDay":22.8243,"Crude_Ambient_Temperature_DEGC":43.5956,"Desalter_Inlet_Temperature_1_DEGC":141.2322,"Desalter_Inlet_Temperature_2_DEGC":133.4597,"Resultant_Desalter_Inlet_Temperature_DEGC":138.3071,"Desalter_Outlet_Temperature_DEGC":141.5549,"Coil_Inlet_Temperature_DEGC":262.1993,"RunDate":"2019-07-26 12:51:07","SavedDate":"2019-07-26 17:49:21"}]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Target table Structure : ( One to one mapping ) - Postgres database&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;"Id",&lt;BR /&gt;"Datetime",&lt;BR /&gt;"TotalCrudeFlowRate",&lt;BR /&gt;"ActualYieldLGO",&lt;BR /&gt;"ActualYieldMVGO",&lt;BR /&gt;"ActualYieldHVGO",&lt;BR /&gt;"ActualYieldVGO",&lt;BR /&gt;"ActualYieldVR",&lt;BR /&gt;"CoilInletTemperature",&lt;BR /&gt;"DesalterInletTemperature1",&lt;BR /&gt;"DesalterInletTemperature2",&lt;BR /&gt;"DesalterOutletTemperature"&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Ad.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145645iF9981076AE4C1DBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Ad.jpg" alt="0683p000009M7Ad.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Prabuj&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/REG-Json-file-in-s3-to-Postgres-table/m-p/2212517#M10128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: REG: Json file in s3 to Postgres table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/REG-Json-file-in-s3-to-Postgres-table/m-p/2212518#M10129</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPXkAAO"&gt;@prabuj27&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;I could think of couple of ways to achieve this -&amp;nbsp;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;download the file from S3 to your local(using tS3Connection,tS3Get etc...)&lt;/LI&gt; 
 &lt;LI&gt;read the json file (using&amp;nbsp;tfileinputjson,tExtractJsonFields etc...)&lt;/LI&gt; 
 &lt;LI&gt;write the data to your database table (using&amp;nbsp;tPostgresqlOutput etc...)&lt;/LI&gt; 
 &lt;LI&gt;Once you are done you could remove the file from your local&lt;BR /&gt;&lt;BR /&gt;Another way could be -&lt;BR /&gt;use sqoop -import to import data from S3 to Hive and then do an -export from hdfs to your&amp;nbsp;&lt;SPAN&gt;postgres.&amp;nbsp;The downside of this method is that you will have to create a Hive/HCatalog table before the import. You will have to clean it if it is not need in future. Also do need to check if&amp;nbsp;Sqoop directly supports JSON file format import else have to utilize the hcatalog import function.&lt;/SPAN&gt;&lt;/LI&gt; 
&lt;/OL&gt;</description>
      <pubDate>Tue, 27 Aug 2019 13:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/REG-Json-file-in-s3-to-Postgres-table/m-p/2212518#M10129</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2019-08-27T13:36:37Z</dc:date>
    </item>
  </channel>
</rss>

