<?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: pyspark - can not create  managed table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/pyspark-can-not-create-managed-table/m-p/346390#M234864</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77816"&gt;@haze5736&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 16:33:49 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2022-06-27T16:33:49Z</dc:date>
    <item>
      <title>pyspark - can not create  managed table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/pyspark-can-not-create-managed-table/m-p/345623#M234588</link>
      <description>&lt;P&gt;I'm writing some pyspark code where I have a dataframe that I want to write to a hive table.&lt;/P&gt;&lt;P&gt;I'm using a command like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataframe.write.mode("overwrite").saveAsTable(“bh_test”)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything I've read online indicates that this should, by default, create&amp;nbsp; a managed table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, no matter what I try, it always creates an external table. Is there a configuration setting somewhere that overrides the default behavior?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:55:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/pyspark-can-not-create-managed-table/m-p/345623#M234588</guid>
      <dc:creator>haze5736</dc:creator>
      <dc:date>2026-04-21T07:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: pyspark - can not create  managed table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/pyspark-can-not-create-managed-table/m-p/345713#M234620</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77816"&gt;@haze5736&lt;/a&gt;, You&amp;nbsp;need to use Hive Warehouse Connector (HWC) software to query Apache Hive managed tables from Apache Spark. Using&amp;nbsp;&lt;SPAN&gt;HWC API you can read and write Apache Hive tables from Apache Spark.&amp;nbsp;For example, to write the managed table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#333333"&gt;df.write.format(HiveWarehouseSession().HIVE_WAREHOUSE_CONNECTOR).option("table", &amp;amp;tableName&amp;gt;).option("partition", &amp;lt;partition_spec&amp;gt;).save()&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ref:&amp;nbsp;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive-read-write-operations.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive-read-write-operations.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For more details you can refer the below documentation:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive_hivewarehouseconnector_for_handling_apache_spark_data.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive_hivewarehouseconnector_for_handling_apache_spark_data.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive_submit_a_hivewarehouseconnector_python.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive_submit_a_hivewarehouseconnector_python.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:35:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/pyspark-can-not-create-managed-table/m-p/345713#M234620</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2022-06-15T15:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: pyspark - can not create  managed table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/pyspark-can-not-create-managed-table/m-p/346390#M234864</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77816"&gt;@haze5736&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 16:33:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/pyspark-can-not-create-managed-table/m-p/346390#M234864</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2022-06-27T16:33:49Z</dc:date>
    </item>
  </channel>
</rss>

