<?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>hive performance tuning techniques - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/hive-performance-tuning-techniques/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/hive-performance-tuning-techniques/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 13 Sep 2021 05:32:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>hive performance tuning techniques - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/hive-performance-tuning-techniques/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is a tool for tuning hive queries ?</title>
		<link>https://www.wikitechy.com/interview-questions/hive/what-is-a-tool-for-tuning-hive-queries/</link>
					<comments>https://www.wikitechy.com/interview-questions/hive/what-is-a-tool-for-tuning-hive-queries/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 21:50:34 +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[cost based query optimization in hive]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hive performance tuning hortonworks]]></category>
		<category><![CDATA[hive performance tuning techniques]]></category>
		<category><![CDATA[hive query based interview questions]]></category>
		<category><![CDATA[hive query optimization parameters]]></category>
		<category><![CDATA[hive query optimization techniques]]></category>
		<category><![CDATA[hive scenario based interview questions]]></category>
		<category><![CDATA[how will you optimize hive performance]]></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[Mindtree interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[pig interview questions]]></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[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[will the reducer work or not if you use “limit 1” in any hiveql query ?]]></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=576</guid>

					<description><![CDATA[Answer : By doing compression at various phases (i.e. on final output, intermediate data),we achieve performance improvement in Hive Queries.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="tool-for-tuning-hive-queries" class="color-green" style="text-align: justify;">Tool for tuning hive queries</h2>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img fetchpriority="high" decoding="async" class="alignnone size-medium aligncenter" src="https://cdn.wikitechy.com/interview-questions/hive/what-is-a-tool-for-tuning-hive-queries.png" alt="tool for tuning hive queries" width="732" height="538" /></div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="1-enable-compression-in-hive" class="color-green">1. Enable Compression in Hive</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>By doing compression at various phases (i.e. on final output, intermediate data),we achieve performance improvement in Hive Queries.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="2-optimize-joins" class="color-green">2. Optimize Joins</h2>
</div>
</div>
<p style="text-align: justify;">We can improve the performance of joins.By enabling Auto Convert Map Joins and enabling optimization of skew join.</p>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ol>
<li>Auto Map Join</li>
<li>Skew Joins</li>
<li>Enable Bucketed Map Joins</li>
</ol>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<h2 id="auto-map-join">Auto Map Join:</h2>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Auto Map-Join is useful feature when joining a big table with a small table.</li>
<li>If we enable this feature, the small table will be saved in the local cache on each node, joined with the big table in the Map phase.</li>
<li>Enabling Auto Map Join provides 2 advantages.</li>
<li>Primary,it loads a small table into cache will save read time on each data node.</li>
<li>Secondary, it avoids skew joins in the Hive query, since the join operation has been already done in the Map phase for each block of data.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<h2 id="skew-joins">Skew joins:</h2>
<ul>
<li style="list-style-type: none;">
<ul>
<li>We enable skew joins by setting hive.optimize.</li>
<li>Skew join property SET command in hive shell or hive-site.xml file.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<h2 id="enable-bucketed-map-joins">Enable Bucketed Map Joins</h2>
<ul>
<li style="list-style-type: none;">
<ul>
<li>The tables as specific column and tables used in joins to improve performance bucketed map join is used.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="3-enable-parallel-execution" class="color-green">3. Enable Parallel Execution</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Hive converts a query into more stages.The MapReduce stage, sampling stage, a mergestage and a limit stage.</li>
<li>By default, Hive executes only one time for these satges.</li>
<li>A particular job may consist of some stages that are not dependent on each other and could be executed in parallel, possibly allowing the overall job to complete more quickly.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="4-single-reduce-for-multi-group-by" class="color-green">4. Single Reduce for Multi Group BY</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The single reducer used for multi operations, it combine multiple GROUP BY operations in a query into a single MapReduce job</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="5-enable-vectorization" class="color-green">5. Enable Vectorization</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Vectorization introduced into hive for the first time in hive-0.13.1 release only</li>
<li>It improve operations like scans, aggregations, filters and joins, batches of 1024 rows for each time.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="6-enable-cost-based-optimization" class="color-green">6. Enable Cost Based Optimization</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">It provided the cost based optimization, based on query cost, resulting in different decisions: how to order joins, which type of join to perform and degree of parallelism.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/hive/what-is-a-tool-for-tuning-hive-queries/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
