<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>managed table vs external table in hive - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/managed-table-vs-external-table-in-hive/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/managed-table-vs-external-table-in-hive/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 13 Sep 2021 04:38:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>managed table vs external table in hive - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/managed-table-vs-external-table-in-hive/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is the difference between hive view and a hive external table When should it be used ?</title>
		<link>https://www.wikitechy.com/interview-questions/hive/what-is-the-difference-between-hive-view-and-a-hive-external-table-when-should-it-be-used/</link>
					<comments>https://www.wikitechy.com/interview-questions/hive/what-is-the-difference-between-hive-view-and-a-hive-external-table-when-should-it-be-used/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 22:18:46 +0000</pubDate>
				<category><![CDATA[Hive]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Altimetrik India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[ANI Technologies Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[external table in hive example]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hive internal vs external tables performance]]></category>
		<category><![CDATA[hive interview questions]]></category>
		<category><![CDATA[hive materialized view]]></category>
		<category><![CDATA[hive query based interview questions]]></category>
		<category><![CDATA[hive scenario based interview questions]]></category>
		<category><![CDATA[hive system tables]]></category>
		<category><![CDATA[hive view definition]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Impetus Technologies interview questions and answers]]></category>
		<category><![CDATA[Indiabulls Technology Solutions Ltd interview questions and answers]]></category>
		<category><![CDATA[list all views in hive]]></category>
		<category><![CDATA[managed table vs external table in hive]]></category>
		<category><![CDATA[Mindtree interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Prokarma Softech Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[R Systems interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[show tables in hive]]></category>
		<category><![CDATA[Synechron Te interview questions and answers]]></category>
		<category><![CDATA[Tata Consultancy Service interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[Trigent Software interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[Wipro interview questions and answers]]></category>
		<category><![CDATA[Yash Technologies interview questions and answers]]></category>
		<category><![CDATA[Yodlee Infotech Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=601</guid>

					<description><![CDATA[Answer : When the user queries table x the query planner....]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-hive-view-and-a-hive-external-table-when-should-it-be-used" class="color-green" style="text-align: justify;">Difference between hive view and a hive external table When should it be used</h2>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img fetchpriority="high" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/hive/using-apache-hive-with-high-performance.png" alt="using-apache-hive-with-high-performance" width="527" height="267" /></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>A view is a query which is defined as a table.</li>
</ul>
</div>
</div>
<p style="text-align: justify;">For example:</p>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>CREATE VIEW x AS SELECT * FROM y;</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>When the user queries table x the query planner combines the queries and executes a single one.</li>
</ul>
</div>
</div>
<p style="text-align: justify;">This is something like</p>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">SELECT * FROM x;<br/><br/>is translated to<br/><br/>SELECT * FROM y;<br/>Then:<br/><br/>DROP TABLE abc;<br/>If the table is defined as external:<br/><br/>CREATE EXTERNAL table abc (….);</code></pre> </div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>An external table is something totally different. An external TABLE is a table that when DROPPED will NOT remove the physical data.</li>
<li>This is a alternative that affects how data is loaded, controlled, and managed.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="use-external-tables" class="color-green">Use EXTERNAL tables:</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The data is also used outside of Hive.</li>
<li>For example, the data files are browse and processed by an existing program that doesn&#8217;t lock the files.</li>
<li>Data needs to stay within the underlying location even after a DROP TABLE.</li>
<li>Pointing multiple patterns at a single data it sets repeats via possible patterns.User can use custom location like ASV.</li>
<li>Hive does not contain own data and control settings, dirs, etc.In Hive existing table (i.e) not modify.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="use-internal-tables" class="color-green">Use INTERNAL tables:</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">Temporary data needs Hive to manage the table and data.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/hive/what-is-the-difference-between-hive-view-and-a-hive-external-table-when-should-it-be-used/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between a normal hive table and hive table stored as ORC ?</title>
		<link>https://www.wikitechy.com/interview-questions/hive/what-is-the-difference-between-a-normal-hive-table-and-hive-table-stored-as-orc/</link>
					<comments>https://www.wikitechy.com/interview-questions/hive/what-is-the-difference-between-a-normal-hive-table-and-hive-table-stored-as-orc/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 21:51:40 +0000</pubDate>
				<category><![CDATA[Hive]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Altimetrik India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[ANI Technologies Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[different file formats in hive]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hive advanced interview questions]]></category>
		<category><![CDATA[hive columnar storage]]></category>
		<category><![CDATA[hive file format comparison]]></category>
		<category><![CDATA[hive interview questions and answers for experienced]]></category>
		<category><![CDATA[hive query based interview questions]]></category>
		<category><![CDATA[hive scenario based interview questions]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Impetus Technologies interview questions and answers]]></category>
		<category><![CDATA[Indiabulls Technology Solutions Ltd interview questions and answers]]></category>
		<category><![CDATA[managed table vs external table in hive]]></category>
		<category><![CDATA[Mindtree interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Prokarma Softech Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[R Systems interview questions and answers]]></category>
		<category><![CDATA[rc file format in hive]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Synechron Te interview questions and answers]]></category>
		<category><![CDATA[Tata Consultancy Service interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[text file format in hive]]></category>
		<category><![CDATA[Trigent Software interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[Wipro interview questions and answers]]></category>
		<category><![CDATA[Yash Technologies interview questions and answers]]></category>
		<category><![CDATA[Yodlee Infotech Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=584</guid>

					<description><![CDATA[Answer : Hive data is organized into Databases....]]></description>
										<content:encoded><![CDATA[<h2 id="difference-between-a-normal-hive-table-and-hive-table-stored-as-orc" class="color-green">Difference between a normal hive table and hive table stored as ORC</h2>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Normal hive table</th>
<th>Hive table stored as orc</th>
</tr>
<tr>
<td class="text-leftalign" align="justify">Hive data is organized into Databases:<br />
Namespaces function to avoid naming conflicts for tables,<br />
views, partitions, columns, and so on.</td>
<td class="text-leftalign" align="justify">It produce efficient way to store Hive data.It designed to overcome the drawback of others Hive file formats Using Optimized Row Columnar files improves speed when Hive is reading, writing, and processing data.</td>
</tr>
<tr>
<td class="text-leftalign" align="justify">Databases can also be used to enforce security for a<br />
user or group of users.</td>
<td class="text-leftalign" align="justify">Advantages- Single file as the output of each task, that reduces the NameNode&#8217;s load.</td>
</tr>
<tr>
<td class="text-leftalign" align="justify">There are two types of tables in Hive,<br />
one is Managed table and second is external table.<br />
The difference is, when you drop a table,<br />
if it is managed table hive deletes both data and meta data,<br />
if it is external table Hive<br />
only deletes metadata.</td>
<td class="text-leftalign" align="justify">An Optimized Row Columnar file contains types of data define as stripes,along with information in a file footer. At the end of the file a postscript holds compression parameters and the size of the compressed footer.</td>
</tr>
<tr>
<td class="text-leftalign" align="justify">It damage how data is loaded,<br />
controlled, and managed in Hive ;By use external<br />
tables when the data is also used outside of Hive.</td>
<td class="text-leftalign" align="justify">Default stripe size is 250 MB. large stripe sizes enable large, efficient reads from HDFS.</td>
</tr>
<tr>
<td class="text-leftalign" align="justify">The data files are read and processed by an existing<br />
program that doesn&#8217;t lock the files. Data needs to<br />
remain in the underlying location even after a DROP</td>
<td class="text-leftalign" align="justify">File footer having a list of stripes and number of rows,each columns contains count, min, max, and sum.</td>
</tr>
<tr>
<td class="text-leftalign" align="justify">Storing data in Hive is nothing but<br />
storing data in HDFS (Hadoop).</td>
<td class="text-leftalign" align="justify">The stripe file footer contains a directory of stream locations.Row data is used in table scans</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/hive/what-is-the-difference-between-a-normal-hive-table-and-hive-table-stored-as-orc/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
