<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":585,"date":"2021-07-13T21:51:10","date_gmt":"2021-07-13T21:51:10","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=585"},"modified":"2021-09-13T04:57:20","modified_gmt":"2021-09-13T04:57:20","slug":"what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/","title":{"rendered":"What is the best way to take the back up of hive partitioned table into a disk ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\" class=\"color-green\" style=\"text-align: justify;\">Best way to take the back up of hive partitioned table into a disk<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Partitioning is the optimization technique in Hive which improves the performance significantly.<\/li>\n<li>Apache Hive is the data warehouse on the top of Hadoop, which enables ad-hoc analysis over structured and semi-structured data<\/li>\n<li>Apache Hive organizes tables into partitions.Partitioning is dividing a table into connected components based on the values of specific columns like date, city, and department.<\/li>\n<li>Each table in hive can have one or additional partition keys to identify a particular partition. using partition it is easy to do queries on slices of the data.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"text-center row\" style=\"text-align: justify;\">\n<div class=\"col-sm-12\">\n<div id=\"bsa-zone_1590522538159-8_123456\"><\/div>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/hive-partitioned-table-into-a-disk.png\" alt=\"hive-partitioned-table-into-a-disk\" width=\"791\" height=\"383\" \/><\/div>\n<div class=\"hddn\">The Hadoop Distributed File System considered reliable from a technical failure purpose of view, but to archive data you need to copy it offline, with copyToLocal, or copy the data to another cluster or another location on the cluster.<\/div>\n<\/div>\n<div class=\"subheading\" style=\"text-align: justify;\">\n<h2 id=\"for-copytolocal-the-command-syntax-is\">For copyToLocal the command syntax is:<\/h2>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\">\n<pre><code id=\"code1\" class=\"apache hljs css\" data-lang=\"apache\"><span class=\"nt\"><span class=\"hljs-tag\">hadoop<\/span> <span class=\"hljs-tag\">fs<\/span> <span class=\"hljs-tag\">-copyToLocal<\/span> <span class=\"hljs-attr_selector\">[-ignorecrc]<\/span> <span class=\"hljs-attr_selector\">[-crc]<\/span> <span class=\"hljs-tag\">URI<\/span> &lt;<span class=\"hljs-tag\">localdst<\/span>&gt;<\/span><\/code><\/pre>\n<\/figure>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<p>Additionally, you can use Hive to copy data from a table to local directory.<\/p>\n<\/div>\n<\/div>\n<div class=\"CodeContent\">\n<div class=\"hddn\">\n<figure class=\"highlight\" style=\"text-align: justify;\">\n<pre><code id=\"code2\" class=\"apache hljs bash\" data-lang=\"apache\"><span class=\"nt\">INSERT OVERWRITE LOCAL DIRECTORY <span class=\"hljs-string\">'\/tmp\/local_out'<\/span> SELECT a.* FROM wikitechy  <span class=\"hljs-built_in\">where<\/span> year=<span class=\"hljs-number\">2018<\/span><\/span><\/code><\/pre>\n<\/figure>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : Partitioning is the optimization technique in Hive which improves the performance significantly.<\/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,3931,203,199,214,3928,209,3786,205,222,484,3923,3924,3926,3925,621,620,3929,3930,3927,3922,196,3716,712,970,366,208,288,483,976,975,200,974,197,280,364,968,216,2119,969],"class_list":["post-585","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-backup-hive-metastore-mysql","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-clone-database-hive","tag-collabera-technologies-interview-questions-and-answers","tag-data-of-partitioned-columns-in-hive-is-physically-present","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-copy-data-from-one-table-to-another","tag-hive-copy-table-definition","tag-hive-copy-tables-from-one-database-to-another","tag-hive-export-database","tag-hive-query-based-interview-questions","tag-hive-scenario-based-interview-questions","tag-how-to-backup-hive-database","tag-how-to-backup-hive-metastore-database","tag-how-to-move-data-from-one-table-to-another-in-hive","tag-how-to-take-backup-of-hive-database","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-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 best way to take the back up of hive partitioned table<\/title>\n<meta name=\"description\" content=\"What is the best way to take the back up of hive partitioned table into a disk ? - hadoop hive interview questions and answers\" \/>\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-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the best way to take the back up of hive partitioned table\" \/>\n<meta property=\"og:description\" content=\"What is the best way to take the back up of hive partitioned table into a disk ? - hadoop hive interview questions and answers\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-13T21:51:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-13T04:57:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/hive-partitioned-table-into-a-disk.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=\"1 minute\" \/>\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-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/\",\"name\":\"What is the best way to take the back up of hive partitioned table\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/hive-partitioned-table-into-a-disk.png\",\"datePublished\":\"2021-07-13T21:51:10+00:00\",\"dateModified\":\"2021-09-13T04:57:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"What is the best way to take the back up of hive partitioned table into a disk ? - hadoop hive interview questions and answers\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/#primaryimage\",\"url\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/hive-partitioned-table-into-a-disk.png\",\"contentUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/hive-partitioned-table-into-a-disk.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 best way to take the back up of hive partitioned table","description":"What is the best way to take the back up of hive partitioned table into a disk ? - hadoop hive interview questions and answers","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-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/","og_locale":"en_US","og_type":"article","og_title":"What is the best way to take the back up of hive partitioned table","og_description":"What is the best way to take the back up of hive partitioned table into a disk ? - hadoop hive interview questions and answers","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/","og_site_name":"Wikitechy","article_published_time":"2021-07-13T21:51:10+00:00","article_modified_time":"2021-09-13T04:57:20+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/hive-partitioned-table-into-a-disk.png"}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/","name":"What is the best way to take the back up of hive partitioned table","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/hive-partitioned-table-into-a-disk.png","datePublished":"2021-07-13T21:51:10+00:00","dateModified":"2021-09-13T04:57:20+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"What is the best way to take the back up of hive partitioned table into a disk ? - hadoop hive interview questions and answers","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/hive\/what-is-the-best-way-to-take-the-back-up-of-hive-partitioned-table-into-a-disk\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/hive-partitioned-table-into-a-disk.png","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/hive\/hive-partitioned-table-into-a-disk.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\/585","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=585"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/585\/revisions"}],"predecessor-version":[{"id":3452,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/585\/revisions\/3452"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}