<?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>question Re: Reading 1000 tables from RDBMS via pyspark and create parquet tables in hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Reading-1000-tables-from-RDBMS-via-pyspark-and-create/m-p/84645#M21329</link>
    <description>&lt;P&gt;I'm able to get this working. Will close this post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Meher&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 17:11:30 GMT</pubDate>
    <dc:creator>Meher</dc:creator>
    <dc:date>2019-01-08T17:11:30Z</dc:date>
    <item>
      <title>Reading 1000 tables from RDBMS via pyspark and create parquet tables in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Reading-1000-tables-from-RDBMS-via-pyspark-and-create/m-p/84628#M21328</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 1000 tables in my source RDBMS and I would like to get them migrated to hive using pyspark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read through documentation and found that below two commands would help. Is there a way I can loop these two commands 1000 times if I have all the list of tables in a python array?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arr = ("table1","table2")&lt;/P&gt;&lt;P&gt;for x in arr:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; df = spark.read.format("jdbc").blah.blah&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data.write.saveAsTable.blah.blah&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone has a working solution for this could you please share. I tried but it is not throwing any error but at same time not writing anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meher&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:02:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Reading-1000-tables-from-RDBMS-via-pyspark-and-create/m-p/84628#M21328</guid>
      <dc:creator>Meher</dc:creator>
      <dc:date>2022-09-16T14:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading 1000 tables from RDBMS via pyspark and create parquet tables in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Reading-1000-tables-from-RDBMS-via-pyspark-and-create/m-p/84645#M21329</link>
      <description>&lt;P&gt;I'm able to get this working. Will close this post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Meher&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 17:11:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Reading-1000-tables-from-RDBMS-via-pyspark-and-create/m-p/84645#M21329</guid>
      <dc:creator>Meher</dc:creator>
      <dc:date>2019-01-08T17:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading 1000 tables from RDBMS via pyspark and create parquet tables in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Reading-1000-tables-from-RDBMS-via-pyspark-and-create/m-p/84722#M21330</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23265"&gt;@Meher&lt;/a&gt;&amp;nbsp;I am happy to see that you resolved your issue. Would you mind sharing how you solved it in case someone else encounters the same situation?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 13:57:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Reading-1000-tables-from-RDBMS-via-pyspark-and-create/m-p/84722#M21330</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2019-01-09T13:57:16Z</dc:date>
    </item>
  </channel>
</rss>

