{"id":600,"date":"2021-07-13T22:18:37","date_gmt":"2021-07-13T22:18:37","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=600"},"modified":"2021-09-11T11:51:54","modified_gmt":"2021-09-11T11:51:54","slug":"what-is-the-difference-between-hive-and-pig","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/","title":{"rendered":"What is the difference between hive and pig ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"difference-between-hive-and-pig\" class=\"color-green\">Difference between hive and pig<\/h2>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-sm-12\">\n<table class=\"table-bordered table-striped table table-responsive\">\n<tbody>\n<tr>\n<th>Hive<\/th>\n<th>pig<\/th>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive is used by data analysts.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Pig Hadoop Component is generally used by Researchers and Programmers.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive is used in structured Data<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Pig Hadoop Component is used for semi structured data.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive Hadoop Component has a<br \/>\ndeclarative SQL language (HiveQL).<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Pig has a procedural data flow language (Pig Latin).<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive uses thrift based server that send queries<br \/>\nand corner directly to the Hive<br \/>\nserver which execute them.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">This feature is not available with Pig.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive directly leverages SQL expertise<br \/>\nand thus can be learnt easily.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Pig is also SQL but varies to a great extent and it will take some time efforts to master Pig.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive not support in Avro.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Pig supports in Avro.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive Hadoop Component operates<br \/>\non the server side of any cluster.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Pig Hadoop Component operates on the client side of any cluster.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive Hadoop Component is mainly<br \/>\nused for creating reports.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Pig Hadoop Component is mainly used for programming.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive helpful for ETL.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Pig is a great (Extract, Transform and Load) tool for<br \/>\nbig data its powerful transformation and processing capabilities.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">Hive makes use of exact variation of the<br \/>\nSQL DLL language by defining the tables beforehand<br \/>\nand storing the schema details in any local database.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">In Pig there is no dedicated metadata database and the schemas or data types will be defined in script itself.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">The Hive has a provision for partitions so that can<br \/>\nprocess the subset of data by date<br \/>\nor in an alphabetical order.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">Pig Hadoop component does not have any notion for partitions though might be one can achieve this through filters.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\" align=\"justify\">It renders users with sample data for each<br \/>\nscenario and each step through<br \/>\nits \u201cIllustrate\u201d function.<\/td>\n<td class=\"text-leftalign\" align=\"justify\">This feature is not incorporated with the Hive Hadoop Component.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : Hive is used by data analysts&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3782],"tags":[195,971,3799,203,199,214,209,205,222,484,3959,3976,621,620,636,504,196,3716,712,655,970,366,501,517,502,651,208,288,483,976,975,200,974,197,280,364,968,216,2119,969],"class_list":["post-600","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-flipkart-interview-questions-and-answers","tag-genpact-interview-questions-and-answers","tag-hive-advanced-interview-questions","tag-hive-can-be-installed-in","tag-hive-query-based-interview-questions","tag-hive-scenario-based-interview-questions","tag-hive-vs-pig-vs-hbase","tag-hive-vs-pig-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-joins-in-pig-and-hive","tag-mindtree-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-pig-and-hive-tutorial","tag-pig-interview-questions-and-answers-for-experienced","tag-pig-vs-hive-performance","tag-pig-vs-mapreduce","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-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 v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is the difference between hive and pig ? - Hive<\/title>\n<meta name=\"description\" content=\"What is the difference between hive and pig ? - hive and pig interview questions - Hive Hadoop Component is used mainly by data analysts.\" \/>\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-hive-and-pig\/\" \/>\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 hive and pig ? - Hive\" \/>\n<meta property=\"og:description\" content=\"What is the difference between hive and pig ? - hive and pig interview questions - Hive Hadoop Component is used mainly by data analysts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-13T22:18:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-11T11:51:54+00:00\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/hive\\\/what-is-the-difference-between-hive-and-pig\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/hive\\\/what-is-the-difference-between-hive-and-pig\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"What is the difference between hive and pig ?\",\"datePublished\":\"2021-07-13T22:18:37+00:00\",\"dateModified\":\"2021-09-11T11:51:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/hive\\\/what-is-the-difference-between-hive-and-pig\\\/\"},\"wordCount\":302,\"commentCount\":0,\"keywords\":[\"Accenture interview questions and answers\",\"Altimetrik India Pvt Ltd interview questions and answers\",\"ANI Technologies Pvt Ltd interview questions and answers\",\"Capgemini interview questions and answers\",\"CASTING NETWORKS INDIA PVT LIMITED interview questions and answers\",\"CGI Group Inc interview questions and answers\",\"Collabera Technologies interview questions and answers\",\"Dell International Services India Pvt Ltd interview questions and answers\",\"Flipkart interview questions and answers\",\"Genpact interview questions and answers\",\"hive advanced interview questions\",\"hive can be installed in\",\"hive query based interview questions\",\"hive scenario based interview questions\",\"hive vs pig vs hbase\",\"hive vs pig vs spark\",\"IBM interview questions and answers\",\"Impetus Technologies interview questions and answers\",\"Indiabulls Technology Solutions Ltd interview questions and answers\",\"joins in pig and hive\",\"Mindtree interview questions and answers\",\"NetApp interview questions and answers\",\"pig and hive tutorial\",\"pig interview questions and answers for experienced\",\"pig vs hive performance\",\"pig vs mapreduce\",\"Prokarma Softech Pvt Ltd interview questions and answers\",\"R Systems interview questions and answers\",\"Reliance Industries Ltd interview questions and answers\",\"Synechron Te interview questions and answers\",\"Tata Consultancy Service interview questions and answers\",\"Tech Mahindra interview questions and answers\",\"Trigent Software interview questions and answers\",\"UnitedHealth Group interview questions and answers\",\"Virtusa Consulting Services Pvt Ltd interview questions and answers\",\"Wells Fargo interview questions and answers\",\"Wipro Infotech interview questions and answers\",\"Wipro interview questions and answers\",\"Yash Technologies interview questions and answers\",\"Yodlee Infotech Pvt Ltd interview questions and answers\"],\"articleSection\":[\"Hive\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/hive\\\/what-is-the-difference-between-hive-and-pig\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/hive\\\/what-is-the-difference-between-hive-and-pig\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/hive\\\/what-is-the-difference-between-hive-and-pig\\\/\",\"name\":\"What is the difference between hive and pig ? - Hive\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-07-13T22:18:37+00:00\",\"dateModified\":\"2021-09-11T11:51:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"What is the difference between hive and pig ? - hive and pig interview questions - Hive Hadoop Component is used mainly by data analysts.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/hive\\\/what-is-the-difference-between-hive-and-pig\\\/\"]}]},{\"@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\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"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:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"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 hive and pig ? - Hive","description":"What is the difference between hive and pig ? - hive and pig interview questions - Hive Hadoop Component is used mainly by data analysts.","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-hive-and-pig\/","og_locale":"en_US","og_type":"article","og_title":"What is the difference between hive and pig ? - Hive","og_description":"What is the difference between hive and pig ? - hive and pig interview questions - Hive Hadoop Component is used mainly by data analysts.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/","og_site_name":"Wikitechy","article_published_time":"2021-07-13T22:18:37+00:00","article_modified_time":"2021-09-11T11:51:54+00:00","author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"What is the difference between hive and pig ?","datePublished":"2021-07-13T22:18:37+00:00","dateModified":"2021-09-11T11:51:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/"},"wordCount":302,"commentCount":0,"keywords":["Accenture interview questions and answers","Altimetrik India Pvt Ltd interview questions and answers","ANI Technologies Pvt Ltd interview questions and answers","Capgemini interview questions and answers","CASTING NETWORKS INDIA PVT LIMITED interview questions and answers","CGI Group Inc interview questions and answers","Collabera Technologies interview questions and answers","Dell International Services India Pvt Ltd interview questions and answers","Flipkart interview questions and answers","Genpact interview questions and answers","hive advanced interview questions","hive can be installed in","hive query based interview questions","hive scenario based interview questions","hive vs pig vs hbase","hive vs pig vs spark","IBM interview questions and answers","Impetus Technologies interview questions and answers","Indiabulls Technology Solutions Ltd interview questions and answers","joins in pig and hive","Mindtree interview questions and answers","NetApp interview questions and answers","pig and hive tutorial","pig interview questions and answers for experienced","pig vs hive performance","pig vs mapreduce","Prokarma Softech Pvt Ltd interview questions and answers","R Systems interview questions and answers","Reliance Industries Ltd interview questions and answers","Synechron Te interview questions and answers","Tata Consultancy Service interview questions and answers","Tech Mahindra interview questions and answers","Trigent Software interview questions and answers","UnitedHealth Group interview questions and answers","Virtusa Consulting Services Pvt Ltd interview questions and answers","Wells Fargo interview questions and answers","Wipro Infotech interview questions and answers","Wipro interview questions and answers","Yash Technologies interview questions and answers","Yodlee Infotech Pvt Ltd interview questions and answers"],"articleSection":["Hive"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/","name":"What is the difference between hive and pig ? - Hive","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-07-13T22:18:37+00:00","dateModified":"2021-09-11T11:51:54+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"What is the difference between hive and pig ? - hive and pig interview questions - Hive Hadoop Component is used mainly by data analysts.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-difference-between-hive-and-pig\/"]}]},{"@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":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"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:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","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\/600","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=600"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"predecessor-version":[{"id":607,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/600\/revisions\/607"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}