<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":597,"date":"2021-07-13T22:18:11","date_gmt":"2021-07-13T22:18:11","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=597"},"modified":"2021-09-13T04:35:04","modified_gmt":"2021-09-13T04:35:04","slug":"what-is-the-difference-between-apache-hive-and-apache-spark","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/","title":{"rendered":"What is the difference between Apache Hive and Apache Spark ?"},"content":{"rendered":"<h2 id=\"difference-between-apache-hive-and-apache-spark\" class=\"color-green\">Difference between Apache Hive and Apache Spark<\/h2>\n<div class=\"ImageContent\">\n<div class=\"hddn\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-medium aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark.png\" alt=\"apache-hive-and-apache-spark\" width=\"602\" height=\"399\" \/><\/div>\n<\/div>\n<table class=\"table-bordered table-striped table table-responsive\">\n<tbody>\n<tr>\n<th>Apache-Hive<\/th>\n<th>Apache-Spark<\/th>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Apache hive is a distributed query<br \/>\nengine built on top of the hadoop eco-system.<br \/>\nHive is introduced by facebook and later<br \/>\non they open sourced it.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Apache spark may be a cluster computing framework that runs on Hadoop and handles differing kinds of data.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">The language used by hive to write queries is<br \/>\nHQL i.e., Hive+SQL.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Spark has rich resources for handling the data and most importantly, it is 10-20x faster than Hadoop\u2019s MapReduce.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">These hive queries can internally get converted<br \/>\ninto MapReduce job and this is fully handled<br \/>\nby the Hadoop framework reducing the<br \/>\nwork load on the developers.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">It attains this speed of computation by its in-memory primitives. The data is cached and is present in the memory (RAM) and performs all the computations in-memory.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Tools to alter easy access to data via SQL,<br \/>\nso enabling data warehousing tasks such as<br \/>\nextract\/transform\/load (ETL), reporting,<br \/>\nand data analysis.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">It is fast and grouping the computing system. It provides high-level in Java, Scala, Python,R, and an optimized engine that supports execution graphs.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Access files to stored either directly<br \/>\nin Apache HDFS or such as Apache HBase<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Spark structured query language is a Spark module for structured data processing, in which in-memory processing is its core.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Answer : Apache hive is a distributed query&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[3782],"tags":[195,971,3799,203,199,214,209,205,3963,3967,222,484,3787,621,620,3964,196,3716,712,970,366,208,288,483,3965,3962,3960,3961,3966,976,975,200,974,197,280,364,968,216,2119,969],"class_list":["post-597","post","type-post","status-publish","format-standard","hentry","category-hive","tag-accenture-interview-questions-and-answers","tag-altimetrik-india-pvt-ltd-interview-questions-and-answers","tag-ani-technologies-pvt-ltd-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-collabera-technologies-interview-questions-and-answers","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-difference-between-hive-sql-and-spark-sql","tag-difference-between-spark-sql-and-sql","tag-flipkart-interview-questions-and-answers","tag-genpact-interview-questions-and-answers","tag-hive-interview-questions","tag-hive-query-based-interview-questions","tag-hive-scenario-based-interview-questions","tag-hortonworks-hive-vs-spark","tag-ibm-interview-questions-and-answers","tag-impetus-technologies-interview-questions-and-answers","tag-indiabulls-technology-solutions-ltd-interview-questions-and-answers","tag-mindtree-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-prokarma-softech-pvt-ltd-interview-questions-and-answers","tag-r-systems-interview-questions-and-answers","tag-reliance-industries-ltd-interview-questions-and-answers","tag-shark-vs-hive-on-spark","tag-spark-sql-vs-hive-on-tez","tag-spark-sql-vs-hivesql","tag-spark-vs-hive-vs-pig","tag-sparksql-hive-on-spark","tag-synechron-te-interview-questions-and-answers","tag-tata-consultancy-service-interview-questions-and-answers","tag-tech-mahindra-interview-questions-and-answers","tag-trigent-software-interview-questions-and-answers","tag-unitedhealth-group-interview-questions-and-answers","tag-virtusa-consulting-services-pvt-ltd-interview-questions-and-answers","tag-wells-fargo-interview-questions-and-answers","tag-wipro-infotech-interview-questions-and-answers","tag-wipro-interview-questions-and-answers","tag-yash-technologies-interview-questions-and-answers","tag-yodlee-infotech-pvt-ltd-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is the difference between Apache Hive and Apache Spark ?<\/title>\n<meta name=\"description\" content=\"What is the difference between Apache Hive and Apache Spark ? - hive interview - Apache hive is a distributed query engine built on top of the hadoop eco-system.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the difference between Apache Hive and Apache Spark ?\" \/>\n<meta property=\"og:description\" content=\"What is the difference between Apache Hive and Apache Spark ? - hive interview - Apache hive is a distributed query engine built on top of the hadoop eco-system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-13T22:18:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-13T04:35:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark.png\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/\",\"name\":\"What is the difference between Apache Hive and Apache Spark ?\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark.png\",\"datePublished\":\"2021-07-13T22:18:11+00:00\",\"dateModified\":\"2021-09-13T04:35:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"What is the difference between Apache Hive and Apache Spark ? - hive interview - Apache hive is a distributed query engine built on top of the hadoop eco-system.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/#primaryimage\",\"url\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark.png\",\"contentUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the difference between Apache Hive and Apache Spark ?","description":"What is the difference between Apache Hive and Apache Spark ? - hive interview - Apache hive is a distributed query engine built on top of the hadoop eco-system.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/","og_locale":"en_US","og_type":"article","og_title":"What is the difference between Apache Hive and Apache Spark ?","og_description":"What is the difference between Apache Hive and Apache Spark ? - hive interview - Apache hive is a distributed query engine built on top of the hadoop eco-system.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/","og_site_name":"Wikitechy","article_published_time":"2021-07-13T22:18:11+00:00","article_modified_time":"2021-09-13T04:35:04+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark.png"}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/","name":"What is the difference between Apache Hive and Apache Spark ?","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark.png","datePublished":"2021-07-13T22:18:11+00:00","dateModified":"2021-09-13T04:35:04+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"What is the difference between Apache Hive and Apache Spark ? - hive interview - Apache hive is a distributed query engine built on top of the hadoop eco-system.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark.png","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-apache-hive-and-apache-spark.png"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=597"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/597\/revisions"}],"predecessor-version":[{"id":3444,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/597\/revisions\/3444"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}