<?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: HWC execution in spark no spark ui in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HWC-execution-in-spark-no-spark-ui/m-p/360471#M238400</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95380"&gt;@aval&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please confirm on which version of Cloudera you are currently on ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically HWC is required when you want to access Managed tables via Spark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also use of&amp;nbsp;&lt;SPAN&gt;spark.sql.hive.hwc.execution.mode is deprecated as per CDP 7.1.7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive-hwc-reader-mode.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive-hwc-reader-mode.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 17:02:18 GMT</pubDate>
    <dc:creator>AsimShaikh</dc:creator>
    <dc:date>2023-01-03T17:02:18Z</dc:date>
    <item>
      <title>HWC execution in spark no spark ui</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HWC-execution-in-spark-no-spark-ui/m-p/360342#M238372</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a full ACID hive managed table that we need to access from spark ETL. We used the documentation provided to connect to Hive WareHouse connector -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.0.1/integrating-hive/content/hive_hivewarehouseconnector_for_handling_apache_spark_data.html" target="_blank" rel="noopener noreferrer"&gt;https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.0.1/integrating-hive/content/hive_hivewarehousecon...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to using hive warehouse connector to access the acid tables, what spark execution mode differences are there when using JDBC hwc connector&amp;nbsp; and HiveWareHouseSession vs SparkContext without hwc connector. We don't see any information spark ui/ spark history server and the query takes far too long (x3) than a similar query from&amp;nbsp;SQLContext using a non-acid managed table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from pyspark_llap import HiveWarehouseSession&lt;BR /&gt;hive = HiveWarehouseSession.session(spark).build()&lt;/P&gt;&lt;P&gt;df= hive.sql("select * from incidents LIMIT 100")&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;df.show(10)&lt;/P&gt;&lt;P&gt;#additional spark transformation code..&lt;/P&gt;&lt;P&gt;# NO DAG in spark history server, slower, takes higher memory&lt;/P&gt;&lt;P&gt;__________________________&lt;/P&gt;&lt;P&gt;The same pattern using SQLContext&lt;/P&gt;&lt;P&gt;from pyspark.sql import SQLContext&lt;/P&gt;&lt;P&gt;sqlSparkContext = SQLContext(spark.sparkContext)&lt;/P&gt;&lt;P&gt;df = sqlSparkContext.sql("select * from incidents LIMIT 100")&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;df.show(10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;#additional spark transformation code..&lt;/P&gt;&lt;P&gt;# SHOWS DAG in spark ui/ spark history server, faster&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please explain the difference apart from hive table access where the HiveWarehouseSession spark code gets executed, engines in play, optimization, memory usage etc. vs spark code using&amp;nbsp;SQLContext.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does&amp;nbsp; "spark.sql.hive.hwc.execution.mode"=spark change the spark map reduce&amp;nbsp;&lt;/SPAN&gt;execution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:45:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HWC-execution-in-spark-no-spark-ui/m-p/360342#M238372</guid>
      <dc:creator>aval</dc:creator>
      <dc:date>2026-04-21T07:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: HWC execution in spark no spark ui</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HWC-execution-in-spark-no-spark-ui/m-p/360471#M238400</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95380"&gt;@aval&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please confirm on which version of Cloudera you are currently on ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically HWC is required when you want to access Managed tables via Spark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also use of&amp;nbsp;&lt;SPAN&gt;spark.sql.hive.hwc.execution.mode is deprecated as per CDP 7.1.7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive-hwc-reader-mode.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/integrating-hive-and-bi/topics/hive-hwc-reader-mode.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 17:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HWC-execution-in-spark-no-spark-ui/m-p/360471#M238400</guid>
      <dc:creator>AsimShaikh</dc:creator>
      <dc:date>2023-01-03T17:02:18Z</dc:date>
    </item>
  </channel>
</rss>

