<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Hive_on_Spark</id>
	<title>Hive on Spark - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Hive_on_Spark"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Hive_on_Spark&amp;action=history"/>
	<updated>2026-12-06T00:08:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=Hive_on_Spark&amp;diff=94&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@f2492a3</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Hive_on_Spark&amp;diff=94&amp;oldid=prev"/>
		<updated>2026-11-23T00:34:51Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@f2492a3&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox concept&lt;br /&gt;
| name            = Hive on Spark&lt;br /&gt;
| also_known_as   = Spark execution engine for Hive, &amp;lt;code&amp;gt;hive.execution.engine=spark&amp;lt;/code&amp;gt;&lt;br /&gt;
| field           = SQL query execution&lt;br /&gt;
| introduced      = Apache Hive 1.1.0 (2015)&lt;br /&gt;
| key_parts       = Hive compiler and metastore, Spark as the execution engine, the &amp;lt;code&amp;gt;spark-client&amp;lt;/code&amp;gt; module&lt;br /&gt;
| implementations = [[Apache Hive]] 1.1 to 3.1&lt;br /&gt;
| related         = [[Apache Hive]], [[Hive Metastore]], [[Apache Spark]], [[Spark Thrift Server]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-22|HIVE-7292, HIVE-26134 and HIVE-23885, HiveConf.java, pom.xml and the ql and spark-client modules at the rel/release-3.1.3, 4.0.0-alpha-1, 4.0.0-alpha-2 and 4.0.0 tags of apache/hive, the Apache Hive downloads page, the Hive on Spark getting started page and the v4.3.0 tag of apache/spark (Hive tables and distributed SQL engine docs)}}&lt;br /&gt;
{{Status|removed |removed=Apache Hive 4.0.0 (first in 4.0.0-alpha-2) |replacement=Apache Tez as the Hive engine, or Spark SQL with Hive support |note=Hive never marked the engine deprecated first; HIVE-26134 removed it from the main branch in April 2022. The last Hive line that had it, 3.x, was declared end of life in October 2024. |ref=&amp;lt;ref name=&amp;quot;hive26134&amp;quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/HIVE-26134 |title=HIVE-26134: Remove Hive on Spark from the main branch |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Hive on Spark&amp;#039;&amp;#039;&amp;#039; was an execution engine option in [[Apache Hive]] that ran HiveQL queries as [[Apache Spark]] jobs instead of MapReduce or Apache Tez jobs; users turned it on with &amp;lt;code&amp;gt;set hive.execution.engine=spark;&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;gs&amp;quot;&amp;gt;{{Cite web |url=https://cwiki.apache.org/confluence/display/Hive/Hive+on+Spark%3A+Getting+Started |title=Hive on Spark: Getting Started |publisher=Apache Hive wiki |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; It was a Hive project feature: Hive kept its own parser, optimizer and [[Hive Metastore]], and used Spark only to run the work. It first shipped in Hive 1.1.0 and was removed in Hive 4.0, so it is unavailable in every maintained Hive release.&amp;lt;ref name=&amp;quot;hive7292&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;hive26134&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
Hive on Spark was removed without a deprecation release in between.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Removed from Hive&amp;#039;s main branch in April 2022.&amp;#039;&amp;#039;&amp;#039; HIVE-26134, &amp;quot;Remove Hive on Spark from the main branch&amp;quot;, was resolved on 26 April 2022. Its description links a dev-list discussion and says there was no activity on keeping the feature up to date, and that removing it would help ongoing development and make testing cheaper.&amp;lt;ref name=&amp;quot;hive26134&amp;quot; /&amp;gt; In that thread, a reply from February 2022 says the last development was around October 2018 and calls the code dead weight.&amp;lt;ref name=&amp;quot;thread&amp;quot;&amp;gt;{{Cite web |url=https://lists.apache.org/thread/nxg2jpngp72t6clo90407jgqxnmdm5g4 |title=Time to Remove Hive-on-Spark |publisher=dev@hive.apache.org |date=2022-02-10 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;First releases without it.&amp;#039;&amp;#039;&amp;#039; The &amp;lt;code&amp;gt;spark-client&amp;lt;/code&amp;gt; module and the Spark execution package (&amp;lt;code&amp;gt;ql/.../exec/spark&amp;lt;/code&amp;gt;) are present at the Hive 4.0.0-alpha-1 tag, which was cut before the removal, and absent from 4.0.0-alpha-2 (released 16 November 2022) and 4.0.0 (released 29 March 2024).&amp;lt;ref name=&amp;quot;downloads&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;tree400&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/hive/tree/rel/release-4.0.0/ql/src/java/org/apache/hadoop/hive/ql/exec |title=ql/src/java/org/apache/hadoop/hive/ql/exec at rel/release-4.0.0 |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; In Hive 4.0.0, &amp;lt;code&amp;gt;hive.execution.engine&amp;lt;/code&amp;gt; accepts only &amp;lt;code&amp;gt;mr&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tez&amp;lt;/code&amp;gt;; in Hive 3.1.3 it also accepted &amp;lt;code&amp;gt;spark&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;conf400&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/hive/blob/rel/release-4.0.0/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java |title=HiveConf.java at rel/release-4.0.0 |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;conf313&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/hive/blob/rel/release-3.1.3/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java |title=HiveConf.java at rel/release-3.1.3 |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;No maintained release has it.&amp;#039;&amp;#039;&amp;#039; The Hive community declared the 2.x line end of life in May 2024 and the 3.x line end of life in October 2024, which leaves only the 4.x line, where the engine does not exist.&amp;lt;ref name=&amp;quot;downloads&amp;quot;&amp;gt;{{Cite web |url=https://hive.apache.org/general/downloads/ |title=Downloads |publisher=Apache Hive |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An earlier ticket, HIVE-23885 &amp;quot;Remove Hive on Spark&amp;quot;, was opened in July 2020 and closed as a duplicate.&amp;lt;ref&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/HIVE-23885 |title=HIVE-23885: Remove Hive on Spark |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
HIVE-7292, the umbrella ticket for Hive on Spark, was opened in June 2014. It gave three reasons: many Hive users already ran Spark and could drop MapReduce or Tez from their clusters; the option would bring Spark users to Hive; and queries with several reduce stages would run faster.&amp;lt;ref name=&amp;quot;hive7292&amp;quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/HIVE-7292 |title=HIVE-7292: Hive on Spark |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The feature shipped in Hive 1.1.0, released on 8 March 2015.&amp;lt;ref name=&amp;quot;hive7292&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;downloads&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each Hive line was tested against one Spark version. The getting started page lists Spark 1.2.0 for Hive 1.1.x, Spark 2.0.0 for Hive 2.3.x and Spark 2.3.0 for Hive 3.0.x, and the Hive 3.1.3 build file still sets &amp;lt;code&amp;gt;spark.version&amp;lt;/code&amp;gt; to 2.3.0.&amp;lt;ref name=&amp;quot;gs&amp;quot; /&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/hive/blob/rel/release-3.1.3/pom.xml |title=pom.xml at rel/release-3.1.3 |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; No Hive release lists support for Spark 3 or later.&lt;br /&gt;
&lt;br /&gt;
== How it worked ==&lt;br /&gt;
Hive compiled a HiveQL query into a plan of map and reduce work, as it did for its other engines, and with the Spark engine submitted that plan to a Spark application through its &amp;lt;code&amp;gt;spark-client&amp;lt;/code&amp;gt; module. The getting started page required a Spark build that does not include the Hive jars, and it recommends building Spark with the &amp;lt;code&amp;gt;parquet-provided&amp;lt;/code&amp;gt; profile (and &amp;lt;code&amp;gt;orc-provided&amp;lt;/code&amp;gt; for Spark 2.3.0 and later) to avoid dependency conflicts.&amp;lt;ref name=&amp;quot;gs&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
-- Hive 3.1.x and earlier only; Hive 4 rejects this value&lt;br /&gt;
set hive.execution.engine=spark;&lt;br /&gt;
SELECT country, count(*) FROM page_views GROUP BY country;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What Hive on Spark is not ==&lt;br /&gt;
Several Spark and Hive combinations have similar names. Only the first row below is Hive on Spark.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Which project runs the SQL !! Status&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Hive on Spark&amp;#039;&amp;#039;&amp;#039; (&amp;lt;code&amp;gt;hive.execution.engine=spark&amp;lt;/code&amp;gt;)&lt;br /&gt;
| Hive parses and plans; Spark executes&lt;br /&gt;
| Removed in Hive 4.0&amp;lt;ref name=&amp;quot;hive26134&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Shark&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| A Spark-based project that replaced Hive&amp;#039;s execution engine with Spark&lt;br /&gt;
| Development ended in July 2014 in favor of Spark SQL&amp;lt;ref name=&amp;quot;shark&amp;quot;&amp;gt;{{Cite web |url=https://www.databricks.com/blog/2014/07/01/shark-spark-sql-hive-on-spark-and-the-future-of-sql-on-spark.html |title=Shark, Spark SQL, Hive on Spark, and the future of SQL on Apache Spark |publisher=Databricks |date=2014-07-01 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Spark SQL with Hive support&amp;#039;&amp;#039;&amp;#039; (&amp;lt;code&amp;gt;enableHiveSupport()&amp;lt;/code&amp;gt;)&lt;br /&gt;
| Spark parses, plans and executes; Hive supplies the metastore and SerDes&lt;br /&gt;
| Active in Spark 4.3.0&amp;lt;ref name=&amp;quot;sparkhive&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/sql-data-sources-hive-tables.md |title=Hive Tables (docs/sql-data-sources-hive-tables.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;[[Spark Thrift Server]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Spark SQL, behind a JDBC/ODBC server that corresponds to HiveServer2&lt;br /&gt;
| Active in Spark 4.3.0&amp;lt;ref name=&amp;quot;sts&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/sql-distributed-sql-engine.md |title=Distributed SQL Engine (docs/sql-distributed-sql-engine.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The 2014 post that ended Shark described Hive on Spark as a separate Hive community effort, aimed at organizations with existing Hive investments that wanted to run them on Spark, while Spark SQL became the main path for SQL on Spark.&amp;lt;ref name=&amp;quot;shark&amp;quot; /&amp;gt; In Spark 4.3.0, Hive support means reading and writing Hive tables through a Hive metastore; Spark 4.3.0 bundles a Hive 2.3.10 client and can connect to metastores from 2.0.0 to 4.1.0.&amp;lt;ref name=&amp;quot;sparkhive&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Replacements ==&lt;br /&gt;
A Hive deployment that used the Spark engine has two paths. It can stay on Hive and move to Hive 4 with Tez, the engine that Hive 4.1 and later use by default (see [[Apache Hive]]). Or it can move the SQL to Spark itself: Spark SQL reads the same tables through the [[Hive Metastore]], and the Spark Thrift Server gives JDBC and ODBC clients a HiveServer2-compatible endpoint.&amp;lt;ref name=&amp;quot;sparkhive&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;sts&amp;quot; /&amp;gt; Queries need checking on either path, because HiveQL behavior and Spark SQL behavior differ.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Apache Hive]]&lt;br /&gt;
* [[Hive Metastore]]&lt;br /&gt;
* [[Apache Spark]]&lt;br /&gt;
* [[Spark Thrift Server]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Concepts]]&lt;br /&gt;
[[Category:Glossary terms]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>