<?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>pig interview questions - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/pig-interview-questions/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/pig-interview-questions/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Wed, 15 Sep 2021 05:14:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>pig interview questions - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/pig-interview-questions/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is the Difference between apache hive and impala ?</title>
		<link>https://www.wikitechy.com/interview-questions/hive/what-is-the-difference-between-apache-hive-and-impala/</link>
					<comments>https://www.wikitechy.com/interview-questions/hive/what-is-the-difference-between-apache-hive-and-impala/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 22:18:19 +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[explain the difference between sql and apache hive.]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hive query based interview questions]]></category>
		<category><![CDATA[hive scenario based interview questions]]></category>
		<category><![CDATA[hive vs impala vs spark]]></category>
		<category><![CDATA[how will you optimize hive performance]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[impala vs hive performance]]></category>
		<category><![CDATA[impala vs hive vs pig]]></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[sqoop interview questions]]></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[what is difference between hive and impala ?]]></category>
		<category><![CDATA[which version of hadoop introduced yarn]]></category>
		<category><![CDATA[why impala is faster than hive]]></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=598</guid>

					<description><![CDATA[Answer : Hive generates query expressions at compile
time...]]></description>
										<content:encoded><![CDATA[<h2 id="apache-hive-vs-impala" class="color-green">Apache hive Vs Impala</h2>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Apache hive</th>
<th>Impala</th>
</tr>
<tr>
<td class="text-leftalign">Hive generates query expressions at compile<br />
time;Hive is batch based Hadoop MapReduce</td>
<td class="text-leftalign">Impala does not support for complex types<br />
and fault tolerance.</td>
</tr>
<tr>
<td class="text-leftalign">Apache does not generations runtime code<br />
for “big loops ” using llvm.</td>
<td class="text-leftalign">Impala does generations runtime code<br />
for “big loops ” using llvm.</td>
</tr>
<tr>
<td class="text-leftalign">Hadoop 2.7.3</td>
<td class="text-leftalign">Hadoop 2.6.0</td>
</tr>
<tr>
<td class="text-leftalign">All queries run through LLAP</td>
<td class="text-leftalign">Runtime Filtering Optimization Enabled</td>
</tr>
<tr>
<td class="text-leftalign">ORCFile format with zlib compression</td>
<td class="text-leftalign">Parquet format with snappy compression</td>
</tr>
<tr>
<td class="text-leftalign">Every hive query has this problem of “cold start”.</td>
<td class="text-leftalign">Impala avoids startup overhead as daemon<br />
processes are started at boot time itself,<br />
always being ready to processes a query.</td>
</tr>
<tr>
<td class="text-leftalign">Apache <b>Hive</b> might not be ideal for interactive computing</td>
<td class="text-leftalign">Impala is meant for interactive computing.</td>
</tr>
<tr>
<td class="text-leftalign"><b>Hive</b> is batch based Hadoop MapReduce.</td>
<td class="text-leftalign">Impala is more like MPP database.</td>
</tr>
<tr>
<td class="text-leftalign"><b>Hive</b> supports complex types.</td>
<td class="text-leftalign"><b>Impala</b> does not support complex types.</td>
</tr>
<tr>
<td class="text-leftalign">Apache Hive is fault tolerant.</td>
<td class="text-leftalign">Impala does not support fault tolerance.</td>
</tr>
<tr>
<td class="text-leftalign">It is more universal, versatile and pluggable language.</td>
<td class="text-leftalign">It is used unleash its brute processing power<br />
and give lightning fast analytic results.</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/hive/what-is-the-difference-between-apache-hive-and-impala/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the Relationship Between Hadoop Hbase and Hive ?</title>
		<link>https://www.wikitechy.com/interview-questions/hive/what-is-the-relationship-between-hadoop-hbase-and-hive/</link>
					<comments>https://www.wikitechy.com/interview-questions/hive/what-is-the-relationship-between-hadoop-hbase-and-hive/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 21:51:23 +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[difference between hbase and hdfs]]></category>
		<category><![CDATA[difference between hive and hdfs]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hive query based interview questions]]></category>
		<category><![CDATA[hive scenario based interview questions]]></category>
		<category><![CDATA[hive vs hbase performance]]></category>
		<category><![CDATA[hive vs hbase vs impala]]></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[when to use hbase]]></category>
		<category><![CDATA[when to use hbase and when to use hive]]></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=581</guid>

					<description><![CDATA[Answer : Hadoop is an open source software stack that runs on a cluster of machines]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="hadoop-hbase-and-hive" class="color-green" style="text-align: justify;">Hadoop HBase And Hive</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/hadoop-hbase-hive.png" alt="hadoop hbase hive" width="642" height="260" /></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Hadoop is an open source software stack that runs on a cluster of machines.</li>
<li>Hadoop provides distributed storage and distributed process for very big data sets.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<p style="text-align: justify;">It has following 2 core components:</p>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="hdfs" class="color-green">HDFS :</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Hadoop Distributed file system or HDFS is a Java based distributed file system that enables us to store big data across multiple nodes in a Hadoop cluster.</li>
<li>So, if you install Hadoop, you will get HDFS as an underlying storage system for storing the big data sets in the distributed environment.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="mapreduce" class="color-green">MapReduce:</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>MapReduce is a programming framework for writing applications that method massive amounts of structured and unstructured data in parallel across a cluster of thousands of machines, in a reliable, fault-tolerant manner.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="hbase" class="color-green">HBase:</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Apache HBase is Hadoop database, a distributed, scalable, column oriented big data store.</li>
<li>HBase is built on top of HDFS means that data you store in HBase is stored in HDFS itself.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="hive" class="color-green">Hive:</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">Hive is an important tool for Hadoop ecosystem it provides an SQL for querying data in HDFS, other file systems that integrate with Hadoop like MapR-FS and Amazon’s S3 and databases like HBase(the Hadoop database) and Cassandra.</li>
<li style="text-align: justify;">Hive too like HBase stores data into HDFS but it uses MapReduce too. It compiles queries into MapReduce jobs and runs them on the cluster. It was the primary abstraction engines to be built on top of MapReduce. Hive needs a metastore(JDBC compliant RDBMS) to store its metadata.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/hive/what-is-the-relationship-between-hadoop-hbase-and-hive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is best practice indexing hdfs data into solr using hive ?</title>
		<link>https://www.wikitechy.com/interview-questions/hive/what-is-best-practice-indexing-hdfs-data-into-solr-using-hive/</link>
					<comments>https://www.wikitechy.com/interview-questions/hive/what-is-best-practice-indexing-hdfs-data-into-solr-using-hive/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 21:50:56 +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[apache solr analytics]]></category>
		<category><![CDATA[can we update data in hadoop]]></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[change data capture in hive example]]></category>
		<category><![CDATA[cloudera solr tutorial]]></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[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hive query based interview questions]]></category>
		<category><![CDATA[hive scenario based interview questions]]></category>
		<category><![CDATA[how would you load incremental data into hive]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Impetus Technologies interview questions and answers]]></category>
		<category><![CDATA[implementing change data capture using hive]]></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[solr analytics component]]></category>
		<category><![CDATA[solr hadoop example]]></category>
		<category><![CDATA[solr hadoop integration example]]></category>
		<category><![CDATA[solr index hdfs files]]></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=579</guid>

					<description><![CDATA[Answer : Here,based on the requirement especially how typically your data gets updated, volume and architecture.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="best-practice-indexing-hdfs-data-into-solr-using-hive" class="color-green" style="text-align: justify;">Best practice indexing hdfs data into solr using hive</h2>
</div>
</div>
<div><img decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/hive/partitionned-table-in-hive.png" alt="partitionned table in hive" width="602" height="331" /></div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn">Here,based on the requirement especially how typically your data gets updated, volume and architecture.</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Run a MR job to index data using solrj.</li>
<li>Create Lucene index using mr job and duplicate to the appropriate shards.</li>
<li>Use Hbase indexer to populate Solr.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="properly-size-index" class="color-green">Properly Size Index:</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">Understanding what to index typically requires deep business domain expertise on the data.</li>
<li style="text-align: justify;">This yields better indexing plan and increases accuracy for searching data.</li>
<li style="text-align: justify;">Not all data will be indexed but for an organization user have new data,Needs classification of all data untill it is understood what value it brings to the business.</li>
<li style="text-align: justify;">It implies is that data needs to be re-indexed so it is a good practice to store raw data somewhere low cost, often in HDFS or in the cloud object storage.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/hive/what-is-best-practice-indexing-hdfs-data-into-solr-using-hive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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 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>
		<item>
		<title>What is hive ?</title>
		<link>https://www.wikitechy.com/interview-questions/hive/what-is-hive/</link>
					<comments>https://www.wikitechy.com/interview-questions/hive/what-is-hive/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 21:09:15 +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[data of partitioned columns in hive is physically present]]></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[hadoop hive interview questions]]></category>
		<category><![CDATA[hadoop hive interview questions and answers]]></category>
		<category><![CDATA[highest level data model in hive]]></category>
		<category><![CDATA[hive can be used for real time queries]]></category>
		<category><![CDATA[hive interview]]></category>
		<category><![CDATA[hive interview questions]]></category>
		<category><![CDATA[hive interview questions and answers]]></category>
		<category><![CDATA[hive interview questions and answers for experienced]]></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[interview questions on hive]]></category>
		<category><![CDATA[maximum size of string in hive]]></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[what is a hive]]></category>
		<category><![CDATA[what is a hive file]]></category>
		<category><![CDATA[what is hive allergy]]></category>
		<category><![CDATA[what is hive in hadoop]]></category>
		<category><![CDATA[what is pig in hadoop]]></category>
		<category><![CDATA[whats a hive]]></category>
		<category><![CDATA[whats hive]]></category>
		<category><![CDATA[whats hives]]></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=548</guid>

					<description><![CDATA[Answer : Hive is a component of Hortonworks Data Platform(HDP).]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="hive" class="color-purple" style="text-align: justify;">Hive</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Hive is a component of Hortonworks Data Platform(HDP).</li>
<li>Hive provides a SQL interface to data stored in HDP.</li>
<li>Hive has 3 main functions:</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>Data Summarization</li>
<li>Query</li>
<li>Analysis.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>It supports queries expressed language called HiveQL, which automatically translates SQL like queries into MapReduce jobs executed on Hadoop.</li>
<li>It also enables data serialization and increases flexibility in schema architecture including a system catalog called Hive Metastore.</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="architecture-of-hive" class="color-purple">Architecture of hive :</h2>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/Hive/what-is-hive.png" alt="what is hive" width="520" height="373" /></div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="features-of-hive" class="color-purple">Features of hive:</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Different storage such as plain text, RCFile, ORC, HBase, and others.</li>
<li>Pre-defined functions (UDFs) to manipulate dates, strings, and other data-mining tools.</li>
<li>Hive supports extending the UDF set to handle use-cases not supported by built-in functions.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="limitations-of-hive" class="color-purple">Limitations of Hive:</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">Hive supports overwriting or hold data, but not updates and deletes.</li>
<li style="text-align: justify;">In Hive, sub queries are not supported</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/hive/what-is-hive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the main difference between pig vs hive vs sql ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-main-difference-between-pig-vs-hive-vs-sql/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-main-difference-between-pig-vs-hive-vs-sql/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:44:28 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[advantages of hive over sql]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[Applied Materials 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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between hive and sql]]></category>
		<category><![CDATA[difference between hive and sql syntax]]></category>
		<category><![CDATA[difference between hive and sqlpig vs mapreduce]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[hive vs pig vs hbase]]></category>
		<category><![CDATA[hive vs pig vs spark]]></category>
		<category><![CDATA[hiveql requires that you create the data flow]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[ive vs pig vs spark]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig and hive tutorial]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[Pig Interview Questions for experienced and freshers]]></category>
		<category><![CDATA[pig vs hive comparison]]></category>
		<category><![CDATA[pig vs hive performance]]></category>
		<category><![CDATA[pig vs mapreduce]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=213</guid>

					<description><![CDATA[Answer:Pig does not have a dedicated metadata database. Hive makes use of the exact variation of dedicated SQL-DDL language by defining tables beforehand. 14. It supports Avro file format.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-pig-vs-hive-vs-sql" class="color-green">Difference between pig vs hive vs sql</h2>
</div>
</div>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Pig</th>
<th>Hive</th>
<th>Sql</th>
</tr>
<tr>
<td class="text-leftalign">Apache Pig also allows developers<br />
to follow multiple query approach,<br />
which reduces the data scan<br />
iterations.</td>
<td class="text-leftalign">Hive statements are similar to<br />
Structured Query Language (SQL)<br />
and limitations of Hive Query<br />
Language(HQL) in terms of<br />
the commands that it<br />
understands, it is still very useful.</td>
<td class="text-leftalign">Structured Query Language has been a programmer’s companion for decades. It was the real solution for extractingdata for further processing.</td>
</tr>
<tr>
<td class="text-leftalign">PigLatin is procedural to a<br />
large extent.</td>
<td class="text-leftalign">Hive is built with an analytical focus.</td>
<td class="text-leftalign">Structured Query Language is Informative.</td>
</tr>
<tr>
<td class="text-leftalign">Pig requires that programmers<br />
to learn something on top of<br />
structured query language(SQL).</td>
<td class="text-leftalign">Hive provides an open source<br />
implementation of MapReduce.</td>
<td class="text-leftalign">Structured Query Language demand of storing data<br />
in a strict relational database<br />
schemas and its declarative nature often deflects<br />
focus from the ultimate purpose to extract data for analysis.</td>
</tr>
<tr>
<td class="text-leftalign">It offers a number of advantages<br />
in terms of declaring execution plans<br />
Extract, transform, load(ETL)<br />
routines and pipeline modification.</td>
<td class="text-leftalign">Hive lacks update and delete<br />
functions but is superfast in reading<br />
and processing huge volumes of data<br />
faster than SQL.</td>
<td class="text-leftalign">The DBMS systems that SQL operates on,<br />
are considered to be faster than MapReduce.</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-main-difference-between-pig-vs-hive-vs-sql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between Pig, Hive and HBase ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-hbase/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-hbase/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:40:35 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[Applied Materials 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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between hbase and hdfs]]></category>
		<category><![CDATA[difference between hive and nosql]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hbase vs hive vs cassandra]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[hive vs hbase performance]]></category>
		<category><![CDATA[hive vs mapreduce performance]]></category>
		<category><![CDATA[hive vs pig vs spark]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig and hive tutorial]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig vs hive comparison]]></category>
		<category><![CDATA[pig vs hive performance]]></category>
		<category><![CDATA[pig vs mapreduce]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[use cases of apache pig]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=211</guid>

					<description><![CDATA[Answer:It is used for semi structured data.	,Hive is query engine,HBase is a data storage particularly for unstructured data.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-pig-hive-and-hbase" class="color-green">Difference between Pig, Hive and HBase</h2>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Pig</th>
<th>Hive</th>
<th>Hbase</th>
</tr>
<tr>
<td class="text-leftalign">It is used for semi structured data.</td>
<td class="text-leftalign">Hive is query engine</td>
<td class="text-leftalign">HBase is a data storage particularly for unstructured data.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop Component is generally<br />
used by Researchers and Programmers.</td>
<td class="text-leftalign">Apache Hive is mainly used for<br />
batch processing i.e. OLAP<br />
and creating reports.</td>
<td class="text-leftalign">HBase is extensively used for transactional processing where in the response time of the query is not highly interactive i.e. OLTP</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop Component operates on<br />
the client side of any cluster.</td>
<td class="text-leftalign">Hive Hadoop Component operates on<br />
the server side of any cluster.</td>
<td class="text-leftalign">Operations in HBase are run in real-time on the database</td>
</tr>
<tr>
<td class="text-leftalign">Avro supported for Pig.</td>
<td class="text-leftalign">Hive does not support Avro.</td>
<td class="text-leftalign">The client which is reading/writing the data has to deal with the avro schemas, after HBase delivered the raw data to it.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop is a great ETL tool<br />
for big data because of its powerful<br />
transformation and processing<br />
capabilities.</td>
<td class="text-leftalign">Hive Hadoop Component is helpful<br />
for ETL.</td>
<td class="text-leftalign">Hbase Component is helpful for ETL.</td>
</tr>
<tr>
<td class="text-leftalign">Pig are high-level languages that<br />
compile to MapReduce.</td>
<td class="text-leftalign">Hive is also a high-level languages<br />
that compile to MapReduce.</td>
<td class="text-leftalign">HBase allows Hadoop to support the transactions on key value pairs.</td>
</tr>
<tr>
<td class="text-leftalign">Pig is also SQL-like but varies to<br />
a great extent and thus it will<br />
take some time efforts to master Pig.</td>
<td class="text-leftalign">Hive directly leverages SQL expertise<br />
and thus can be learnt easily.</td>
<td class="text-leftalign">HBase allows you to do quick random versus scan all of data sequentially, do insert/update/delete from middle, and not just add/append.</td>
</tr>
</tbody>
</table>
<div class="text-center row">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="hddn"><img loading="lazy" decoding="async" class="alignnone size-medium aligncenter" src="https://cdn.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-hbase.png" width="595" height="336" /></div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-hbase/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between Pig and Sqoop in Hadoop ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-and-sqoop-in-hadoop/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-and-sqoop-in-hadoop/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:36:31 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[Applied Materials 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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between sqoop and hive]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hadoop pig interview questions]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[hive can be used for real time queries]]></category>
		<category><![CDATA[hive vs mapreduce performance]]></category>
		<category><![CDATA[hive vs pig vs hbase]]></category>
		<category><![CDATA[hive vs pig vs spark]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig and hive tutorial]]></category>
		<category><![CDATA[pig hive sqoop flume]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[pig vs hive comparison]]></category>
		<category><![CDATA[pig vs hive performance]]></category>
		<category><![CDATA[pig vs mapreduce]]></category>
		<category><![CDATA[pig vs sql]]></category>
		<category><![CDATA[pig vs sqlhive vs pig vs hbase]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=209</guid>

					<description><![CDATA[Answer:Apache Pig is a tool for analytics which is used to
analyze data stored in HDFS.	Apache Sqoop is a tool to importing structured data from RDBMS to HDFS or exporting data from HDFS to RDBMS.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-pig-and-sqoop-in-hadoop" class="color-green">Difference between Pig and Sqoop in Hadoop</h2>
</div>
</div>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Pig</th>
<th>Sqoop</th>
</tr>
<tr>
<td class="text-leftalign">Apache Pig is a tool for analytics which is used to<br />
analyze data stored in HDFS.</td>
<td class="text-leftalign">Apache Sqoop is a tool to importing structured data from RDBMS to HDFS or exporting data from HDFS to RDBMS.</td>
</tr>
<tr>
<td class="text-leftalign">We can import the data from Sql databases into<br />
hive rather than NoSql Databases.</td>
<td class="text-leftalign">It can integrate with any external data sources with HDFS i.e Sql , NoSql and Data warehouses as well using this tool at the same time we export it as well since this can be used as bi-directional ways</td>
</tr>
<tr>
<td class="text-leftalign">Pig can be used for following purposes ETL<br />
data pipeline, Research on raw data.</td>
<td class="text-leftalign">Important Sqoop control commands to import RDBMS data are Append, Columns and Where</td>
</tr>
<tr>
<td class="text-leftalign">The pig Metastore stores all info about the tables.<br />
And we can execute spark sql queries because spark<br />
can interact with pig Metastore.</td>
<td class="text-leftalign">Sqoop metastore is a tool for using hosts in a shared metadata repository. Multiple users and remote users can define and execute saved jobs defined in metastore.</td>
</tr>
<tr>
<td class="text-leftalign">The scalar data types in pig are int, float,<br />
double, long, chararray, and bytearray. The complex data<br />
types in Pig are map, tuple, and bag.</td>
<td class="text-leftalign">It basically converts CHAR(x), VARCHAR(x), NUMERIC(x,y) to string (with lengh 32767), and it converts DATETIME to BIGINT.</td>
</tr>
</tbody>
</table>
<div class="text-center row">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img loading="lazy" decoding="async" class="alignnone size-medium aligncenter" src="https://cdn.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-hbase.png" width="595" height="336" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-and-sqoop-in-hadoop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between Pig, Hive and MapReduce ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-mapreduce/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-mapreduce/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:26:57 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[advantages of pig over mapreduce]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig architecture diagram]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Best Apache Pig Interview Questions]]></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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between hive and pig]]></category>
		<category><![CDATA[difference between pig and hive]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[hive mapreduce example]]></category>
		<category><![CDATA[hive vs pig vs sparkuse cases of apache pig]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig architecture in hadoop]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig latin application flow]]></category>
		<category><![CDATA[pig latin interview questions]]></category>
		<category><![CDATA[pig vs hive comparison]]></category>
		<category><![CDATA[pig vs hive performance]]></category>
		<category><![CDATA[processing data using apache pig]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=207</guid>

					<description><![CDATA[Answer:Pig is a scripting language,SQL like query language,It is a compiled language]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-pig-hive-and-mapreduce" class="color-green">Difference between Pig, Hive and MapReduce</h2>
</div>
</div>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Pig</th>
<th>Hive</th>
<th>Hadoop mapreduce</th>
</tr>
<tr>
<td class="text-leftalign">Pig is a scripting language</td>
<td class="text-leftalign">SQL like query language</td>
<td class="text-leftalign">It is a compiled language</td>
</tr>
<tr>
<td class="text-leftalign">Higher level of abstraction</td>
<td class="text-leftalign">Higher level of abstraction</td>
<td class="text-leftalign">Hadoop mapreduce used lower level of abstraction</td>
</tr>
<tr>
<td class="text-leftalign">Comparatively less line of codes<br />
than mapreduce</td>
<td class="text-leftalign">Comparatively less lines of code<br />
than mapreduce and apache pig</td>
<td class="text-leftalign">More lines of code</td>
</tr>
<tr>
<td class="text-leftalign">Development effort is less code efficiency<br />
is relatively less</td>
<td class="text-leftalign">Development effort is less code<br />
efficiency is relatively less</td>
<td class="text-leftalign">More development , effort is involved</td>
</tr>
<tr>
<td class="text-leftalign">Code efficiency is relatively less</td>
<td class="text-leftalign">Code efficiency is relatively less</td>
<td class="text-leftalign">Code efficiency is high when compared<br />
to pig and hive</td>
</tr>
<tr>
<td class="text-leftalign">Pig is open source</td>
<td class="text-leftalign">Hive open source</td>
<td class="text-leftalign">Hadoop MapReduce were built so that hadoop developers could do the same<br />
thing in Java in a less verbose way by writing only<br />
fewer lines of code that is easy to understand</td>
</tr>
<tr>
<td class="text-leftalign">Disadvantage of pig is that commands<br />
are not executed unless either you dump<br />
or store an intermediate or final result.This<br />
increases the iteration between debug and<br />
resolving the issue.</td>
<td class="text-leftalign">Disadvantages of hive is that No<br />
real time access to data, Updating<br />
data is complicated</td>
<td class="text-leftalign">The only drawback that developers need to write several lines of basic java code</td>
</tr>
</tbody>
</table>
<div class="text-center row">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/differences-between-hive-and-pig.png" alt="differences-between-hive-and-pig" width="700" height="478" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-mapreduce/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between Pig and Hive ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-and-hive/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-and-hive/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:22:29 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Best Apache Pig Interview Questions]]></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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hadoop pig interview questions]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[hive vs pig vs hbase]]></category>
		<category><![CDATA[hive vs pig vs spark]]></category>
		<category><![CDATA[hiveql requires that you create the data flow]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[joins in pig and hive]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig and hive tutorial]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[Pig Interview Questions for experienced and freshers]]></category>
		<category><![CDATA[pig output to hive table]]></category>
		<category><![CDATA[pig script to load hive table]]></category>
		<category><![CDATA[pig vs hive performance]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[what is hive in hadoop]]></category>
		<category><![CDATA[what is pig in hadoop]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=205</guid>

					<description><![CDATA[Answer:Pig Hadoop Component is generally
used by Researchers and Programmers.	Hive Hadoop Component is mainly used by data analysts.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-pig-and-hive" class="color-green">Difference between pig and Hive</h2>
</div>
</div>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Pig</th>
<th>Hive</th>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop Component is generally<br />
used by Researchers and Programmers.</td>
<td class="text-leftalign">Hive Hadoop Component is mainly used by data analysts.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop Component is used<br />
for semi structured data.</td>
<td class="text-leftalign">Hive Hadoop Component is used for completely structured Data.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop Component has a procedural data<br />
flow language (Pig Latin).</td>
<td class="text-leftalign">Hive Hadoop Component has a declarative Structured Query Language (HiveQL).</td>
</tr>
<tr>
<td class="text-leftalign">Pig can&#8217;t start reliance based server.</td>
<td class="text-leftalign">Hive can start reliance based server,send queries from any nook and corner directly to the Hive<br />
server which will execute them.</td>
</tr>
<tr>
<td class="text-leftalign">Pig is also SQL like but it varies from great extent<br />
and it will take some time efforts to master Pig.</td>
<td class="text-leftalign">Hive directly borrowed SQL expertise it learnt easily.</td>
</tr>
<tr>
<td class="text-leftalign">Avro supported for Pig.</td>
<td class="text-leftalign">Avro does not support for Hive.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop Component operates on<br />
the client side of any group.</td>
<td class="text-leftalign">Hive Hadoop Component operates on the server side of any group.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop Component is highly<br />
used for programming.</td>
<td class="text-leftalign">Hive Hadoop Component is mainly used for generating reports.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop is a great ETL tool for<br />
big data because of its powerful<br />
transformation and processing capabilities.</td>
<td class="text-leftalign">Hive Hadoop Component is helpful for ETL(Extract, Transform and Load).</td>
</tr>
<tr>
<td class="text-leftalign">In Pig there is no dedicated metadata database<br />
and the schemas or data types will<br />
be defined in the script itself.</td>
<td class="text-leftalign">Hive makes use of exact variation of the SQL DLL language by defining the tables beforehand and<br />
storing the schema details in any local database.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop component does not have<br />
any notion for partitions though might<br />
be one can achieve this through filters.</td>
<td class="text-leftalign">The Hive Hadoop component has a provision for<br />
partitions so that you can process the subset<br />
of data by date or in an alphabetical order.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Hadoop Component renders users with sample<br />
data for each scenario and each step through<br />
its “Illustrate” function.</td>
<td class="text-leftalign">This feature is not incorporated with the<br />
Hive Hadoop Component.</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-and-hive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between Pig,Hive and Hadoop ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-hadoop/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-hadoop/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:18:28 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Best Apache Pig Interview Questions]]></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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[hive can be used for real time queries]]></category>
		<category><![CDATA[hive vs mapreduce performance]]></category>
		<category><![CDATA[hive vs pig vs hbase]]></category>
		<category><![CDATA[hive vs pig vs spark]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig and hive tutorial]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[Pig Interview Questions for experienced and freshers]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[pig vs hive comparison]]></category>
		<category><![CDATA[pig vs hive performance]]></category>
		<category><![CDATA[pig vs mapreduce]]></category>
		<category><![CDATA[pig vs sql]]></category>
		<category><![CDATA[pig vs sqlhive vs pig vs hbase]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=203</guid>

					<description><![CDATA[Answer:Apache Pig is a high-level,Apache Hive is a data warehouse
software project,Open-source software framework]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-pighive-and-hadoop" class="color-green">Difference between Pig,Hive and Hadoop</h2>
</div>
</div>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Pig</th>
<th>Hive</th>
<th>Hadoop</th>
</tr>
<tr>
<td class="text-leftalign">Apache Pig is a high-level<br />
platform for creating programs<br />
it runs on Apache Hadoop.</td>
<td class="text-leftalign">Apache Hive is a data warehouse<br />
software project built on top of<br />
Apache Hadoop for providing<br />
data query, and<br />
analysis.</td>
<td class="text-leftalign">Open-source software framework for distributed storage and processing dataset of big data using the MapReduce programming model.</td>
</tr>
<tr>
<td class="text-leftalign">Pig Latin extracts the programming<br />
from the Java MapReduce phrase<br />
into a code which creates<br />
MapReduce programming high level.</td>
<td class="text-leftalign">Hive provides the SQL<br />
abstraction to integrate<br />
SQL-like queries (HiveQL).<br />
The underlying Java without<br />
we need to implement queries in the<br />
low-level Java API.</td>
<td class="text-leftalign">The Hadoop Common package for Java ARchive (JAR) files and scripts needed to start Hadoop.</td>
</tr>
<tr>
<td class="text-leftalign">Pig basically has 2 parts:<br />
the Pig Interpreter and the<br />
language, PigLatin</td>
<td class="text-leftalign">It provides us data warehousing<br />
facilities on top of an<br />
existing Hadoop cluster.</td>
<td class="text-leftalign">Hadoop is basically two things:Hadoop Distributed File System (HDFS) +a Computation or Processing framework (MapReduce).</td>
</tr>
<tr>
<td class="text-leftalign">Pig makes our life a lot easier,<br />
otherwise writing MapReduce is<br />
always not easy.</td>
<td class="text-leftalign">User can create tables in Hive and<br />
store data there. Along with<br />
that user can even map their<br />
existing HBase tables to Hive<br />
and operate on them.</td>
<td class="text-leftalign">Hadoop is a distributed, scalable,big data store, modelled after Google&#8217;s BigTable.It stores data as key/value pairs.</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-pig-hive-and-hadoop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the difference between group and cogroup in Pig Latin ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-group-and-cogroup-in-pig-latin/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-group-and-cogroup-in-pig-latin/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:13:18 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Best Apache Pig Interview Questions]]></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[cogroup in hive]]></category>
		<category><![CDATA[cogroup operator and group operator are same]]></category>
		<category><![CDATA[cogroup vs join spark]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between join and cogroup]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[functional keyword in pig]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hadoop pig interview questions]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig check if field is null]]></category>
		<category><![CDATA[pig cogroup outer]]></category>
		<category><![CDATA[pig flatten bag of tuples]]></category>
		<category><![CDATA[pig flatten empty bag]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[Pig Interview Questions for experienced and freshers]]></category>
		<category><![CDATA[pig nested foreach]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[pig script converted to mapreduce jobs and executed]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=201</guid>

					<description><![CDATA[Answer:For readability GROUP is used Cogroup used as a statements]]></description>
										<content:encoded><![CDATA[<div class="row">
<div class="col-sm-12">
<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-group-and-cogroup-in-pig-latin" class="color-green" style="text-align: justify;">Difference between group and cogroup in Pig Latin</h2>
</div>
</div>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr style="text-align: justify;">
<th>Group</th>
<th>Cogroup</th>
</tr>
<tr style="text-align: justify;">
<td class="text-leftalign">For readability GROUP is used<br />
in statements involving one relation</td>
<td class="text-leftalign">Cogroup used as a statements involving two or more relations. Cogroup should no exceed 127 relations at a time.</td>
</tr>
<tr style="text-align: justify;">
<td class="text-leftalign">The group statement collects together<br />
records with the same key</td>
<td class="text-leftalign">cogroup is a general statement of group. Instead of collecting records of 1 input it collects records of N inputs based on a key</td>
</tr>
<tr>
<td class="text-leftalign" style="text-align: justify;">Syntax:<br />
grunt&gt; Group_data = GROUP Relation_name BY age;</td>
<td class="text-leftalign" style="text-align: justify;">Syntax:<br />
alias = CROSS alias, alias [, alias …] [PARTITION BY partitioner] [PARALLEL n];</td>
</tr>
</tbody>
</table>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-difference-between-group-and-cogroup-in-pig-latin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the advantages of pig in Hadoop ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-advantages-of-pig-in-hadoop/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-advantages-of-pig-in-hadoop/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:04:01 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[advantages and disadvantages of intensive pig farming]]></category>
		<category><![CDATA[advantages of pig in hadoop]]></category>
		<category><![CDATA[advantages of using apache pig]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Best Apache Pig Interview Questions]]></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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[disadvantages of indoor pig farmin]]></category>
		<category><![CDATA[disadvantages of pig]]></category>
		<category><![CDATA[disadvantages of pig farming]]></category>
		<category><![CDATA[disadvantages of piggery]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[extensive pig farming advantages and disadvantages]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[gextensive pig farming advantages and disadvantages]]></category>
		<category><![CDATA[hadoop pig interview questions]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Pig Advantages and Disadvantages]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[pig latin interview questions]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[pig script execution comprises of multiple steps sequence]]></category>
		<category><![CDATA[pig script execution comprises of multiple steps. identify the right sequence]]></category>
		<category><![CDATA[pig script execution sequence]]></category>
		<category><![CDATA[pig script execution steps sequence]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[What is the advantages of pig in Hadoop]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=197</guid>

					<description><![CDATA[Answer:The development time is Decrease....]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="advantages-of-pig-in-hadoop" class="color-green" style="text-align: justify;">Advantages of pig in Hadoop</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul style="text-align: justify;">
<li style="list-style-type: none;">
<ul>
<li>The development time is Decrease.</li>
<li>It is a collection of Rich set of operators in order to perform operations such as join, filer, sort and many more.</li>
<li>Pig Latin is similar to SQL, it becomes very easy for developers to write a Pig script.</li>
<li>The task execution in Apache Pig it gets automatically optimized , hence the programmers need to focus on semantics language.</li>
</ul>
</li>
</ul>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"></div>
<div><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/big-data sdd.gif" alt="Big data sdd" width="589" height="360" /></div>
</div>
<ul>
<li style="text-align: justify;">Using the existing operators, users can easily develop their own functions to process,read, and write data.</li>
<li style="text-align: justify;">Pig provide the facility for creating User Defined Functions UDF’s, we can easily create a number of programming languages such as Java and invoke them in Pig Scripts.</li>
<li style="text-align: justify;">All types of data handling are having both structured &amp; unstructured is provided by Apache Pig and the results are stored inside HDFS.</li>
<li style="text-align: justify;">You have UDFs which you want to parallellize and utilize for large amounts of data, then you are in luck. Use Pig as a base pipeline where it does the hard work and you just apply your UDF in the step that you want.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-advantages-of-pig-in-hadoop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is default numbers of reducers while executing a pig query ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-default-numbers-of-reducers-while-executing-a-pig-query/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-default-numbers-of-reducers-while-executing-a-pig-query/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 07:14:15 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Best Apache Pig Interview Questions]]></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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[default number of reducers in hivemapreduce.job.reduces hive]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[How do you force the number of reducers in a map reduce job]]></category>
		<category><![CDATA[how to set number of mappers and reducers in hive]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig count distinct]]></category>
		<category><![CDATA[pig distinct on single column]]></category>
		<category><![CDATA[pig dump limit]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[Pig Interview Questions for experienced and freshers]]></category>
		<category><![CDATA[pig limit 10]]></category>
		<category><![CDATA[pig parallel keyword]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[pig set default_parallel]]></category>
		<category><![CDATA[pig set number of mappers]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[set number of reducers hadoop]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[What is default numbers of reducers while executing a pig query]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=192</guid>

					<description><![CDATA[Answer:Where XXX is the number of reducer.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="set-number-of-reducer-in-pig" class="color-green">Set Number of Reducer in Pig:</h2>
</div>
</div>
<div class="CodeContent">
<div class="hddn">
<figure class="highlight"><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">SET default_parallel XXX</code></pre> </div></figure>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>Where XXX is the number of reducer.</li>
<li>This command is used to set the number of reducers at the script level</li>
<li>The coder need to write this configuration at top/beginning of their pig script.</li>
<li>Alternatively, use the PARALLEL clause to set the number of reducers at the operator level.</li>
<li>We set the value using the PARALLEL clause will override any value we specify through (“SET default parallel.”) to reduce phase you can include the PARALLEL clause with any operator.</li>
</ul>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>COGROUP</li>
<li>CROSS</li>
<li>DISTINCT</li>
<li>GROUP</li>
<li>JOIN (inner)</li>
<li>JOIN (outer) and</li>
<li>ORDER BY.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="subheading">
<h2 id="for-example" class="color-green">For Example:</h2>
</div>
<p>In GROUP operator the PARALLEL class has been used.</p>
<div class="Content">
<div class="hddn">
<ul>
<li>A = LOAD &#8216;myfile&#8217; AS (t, u, v);</li>
<li>B = GROUP A BY t PARALLEL 18</li>
</ul>
</div>
</div>
<p>Here 18 is number of reducer.</p>
<div class="Content">
<div class="hddn">
<ul>
<li>If neither “set default parallel” nor the PARALLEL clause are used, using size of the input data Pig sets the number of reducers.</li>
</ul>
</div>
</div>
<p>The properties values has been specified</p>
<div class="Content">
<div class="hddn">
<ul>
<li><code>pig.exec.reducers.bytes.per.reducer</code> &#8211; Defines the number of input bytes per reduce; Pig reducer default value is 1000*1000*1000 (1GB).</li>
<li><code>pig.exec.reducers.max</code> &#8211; Defines the upper bound on the number of reducers; Pig reducer default is 999.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-default-numbers-of-reducers-while-executing-a-pig-query/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is pig Latin ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-pig-latin/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-pig-latin/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 07:08:15 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[Applied Materials 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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[define pig latin]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hadoop pig interview questions]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[how does pig latin work]]></category>
		<category><![CDATA[how to learn pig latin]]></category>
		<category><![CDATA[how to read pig latin]]></category>
		<category><![CDATA[how to write in pig latin]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig in latin]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig latin alphabet]]></category>
		<category><![CDATA[pig latin google]]></category>
		<category><![CDATA[pig latin ixnay]]></category>
		<category><![CDATA[pig latin origin]]></category>
		<category><![CDATA[pig latin program]]></category>
		<category><![CDATA[pig latin rules]]></category>
		<category><![CDATA[pig latin song]]></category>
		<category><![CDATA[pig latin translator]]></category>
		<category><![CDATA[pig latin translator app]]></category>
		<category><![CDATA[pig latin translator to english]]></category>
		<category><![CDATA[pig latin translator with sound]]></category>
		<category><![CDATA[pig latin words]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[what is pig latin]]></category>
		<category><![CDATA[where did pig latin come from]]></category>
		<category><![CDATA[who invented pig latin]]></category>
		<category><![CDATA[why is it called pig latin]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=190</guid>

					<description><![CDATA[Answer:Pig Latin is not a language but its a language game that all use to speak in code]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="pig-latin" class="color-green" style="text-align: justify;">Pig Latin</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Pig Latin is not a language but its a language game that all use to speak in code.</li>
<li>Altering words in English Pig Latin is formed.</li>
<li>Pig Latin can be extended using user-defined functions which the user can write these languages Java, Python, JavaScript, Ruby or Groovy and then call directly.</li>
<li>It execute Hadoop jobs in MapReduce, Apache Tez, or Apache Spark</li>
<li>Pig Latin abstracts the programming from the Java MapReduce idiom which makes MapReduce programming as a high level, its similar to that SQL for relational database management systems.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/pig-latin (1).gif" alt="Pig Latin" width="628" height="351" /></div>
</div>
</div>
<div class="ImageContent">
<div class="hddn" style="text-align: justify;"></div>
<div><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/pig-latin-code.png" alt="Pig Latin Code" width="602" height="339" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-pig-latin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Pig in Hadoop ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-pig-in-hadoop/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-pig-in-hadoop/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 06:43:27 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig commands]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[apache pig tutorial]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Best Apache Pig Interview Questions]]></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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig commands cheat sheet]]></category>
		<category><![CDATA[pig commands list]]></category>
		<category><![CDATA[pig commands with examples]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[pig latin interview questions]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[pig script commands]]></category>
		<category><![CDATA[pig script examples]]></category>
		<category><![CDATA[pig tutorial for beginners]]></category>
		<category><![CDATA[pig vs hive]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[when is pig script converted to mapreduce jobs and executed]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=187</guid>

					<description><![CDATA[Answer:User can perform all the data manipulation operations in Hadoop using Apache Pig]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="pig-in-hadoop" class="color-green" style="text-align: justify;">Pig in Hadoop</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>User can perform all the data manipulation operations in Hadoop using Apache Pig.</li>
<li>Apache Pig is an abstraction over MapReduce.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="hddn"><img loading="lazy" decoding="async" class="alignnone size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/pigcompilation.png" alt="pigcompilation" width="900" height="401" /></div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="need-apache-pig" class="color-green">Need Apache Pig:</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Using Pig Latin, programmers can perform MapReduce tasks codes in Java.</li>
<li>Apache Pig uses multi-query approach, it reducing the length of codes.</li>
<li>For example, an operation that would require you to type 200 lines of code in Java can be easily done by typing just ten lines of codes in Apache Pig.</li>
<li>Ultimately Apache Pig reduces the development time by almost sixteen times.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn" style="text-align: justify;"><img loading="lazy" decoding="async" class="alignnone size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/pig-latin (1).gif" alt="pig-latin " width="628" height="351" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-pig-in-hadoop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is workflow when using Pig &#038; R ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-workflow-when-using-pig-r/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-workflow-when-using-pig-r/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 06:37:19 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig]]></category>
		<category><![CDATA[apache pig architecture]]></category>
		<category><![CDATA[apache pig architecture diagram]]></category>
		<category><![CDATA[apache pig commands]]></category>
		<category><![CDATA[apache pig documentation]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[apache pig tutorial]]></category>
		<category><![CDATA[Applied Materials 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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[different ways of executing pig script]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[hive hadoop]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[mr pigapache pig tutorial]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[Pig Interview Questions for experienced and freshers]]></category>
		<category><![CDATA[pig latin application flow]]></category>
		<category><![CDATA[pig relational operators]]></category>
		<category><![CDATA[pig vs hive]]></category>
		<category><![CDATA[processing data using apache pig]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[properties of pig]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=185</guid>

					<description><![CDATA[Answer:Pig programming language is used for obtaining and manipulating data perhaps doing otherwise with UDFs.....]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="workflow-when-using-pig-r" class="color-green" style="text-align: justify;">Workflow when using Pig &amp; R</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">Pig programming language is used for obtaining and manipulating data perhaps doing otherwise with UDFs.</li>
<li style="text-align: justify;">Pig is used for filtering, cleaning, transforming and otherwise preparing large data sets.</li>
<li style="text-align: justify;">Depending on the workflow, user might throw a Hive table on top of the Pig output and then use Hive to prepare subsets of data for R.</li>
<li style="text-align: justify;">R is used for analysis and modeling and it&#8217;s also act as prototype models.</li>
<li style="text-align: justify;">There are ways to connect directly to Hive from R using the Hive JDBC drivers.</li>
<li style="text-align: justify;">We use R for early data exploration and examination of results.</li>
<li style="text-align: justify;">In a normal workflow, Pig is used to perform the ETL(Extract, Transform, Load) functionality and transform it load the data into HDFS and analysts utilizes HIVE or extensions like RHIVE to perform the analysis on large volume of data available in HDFS.</li>
<li style="text-align: justify;">The Comparison between Pig &amp; R is invalid for ever because the pig is for large scale data and R definitely is not.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-workflow-when-using-pig-r/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the usage of FOREACH operation in Pig scripts ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-usage-of-foreach-operation-in-pig-scripts/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-usage-of-foreach-operation-in-pig-scripts/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 06:29:06 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[assert operator in pig]]></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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[limit rows in pig]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig evaluation operators]]></category>
		<category><![CDATA[pig foreach generate example]]></category>
		<category><![CDATA[pig generate all columns]]></category>
		<category><![CDATA[pig generate group]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[Pig Interview Questions for experienced and freshers]]></category>
		<category><![CDATA[pig nested foreach filter]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[store operator in pig]]></category>
		<category><![CDATA[stream function in pig]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=163</guid>

					<description><![CDATA[Answer:The FOREACH operator is used to generate specified data transformations based on the column data.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="usage-of-foreach-operation-in-pig-scripts" class="color-green" style="text-align: justify;">Usage of FOREACH operation in Pig scripts</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The FOREACH operator is used to generate specified data transformations based on the column data.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="syntax" class="color-green">Syntax:</h2>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-bash code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-bash code-embed-code">grunt&gt; Relation_name2 = FOREACH Relatin_name1 GENERATE (required data);</code></pre> </div></figure>
</div>
</div>
<p style="text-align: justify;">Pig FOREACH can be used in two ways:</p>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ol>
<li>Simple FOREACH…GENERATE</li>
<li>Nested FOREACH {…GENERATE }</li>
</ol>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="simple-foreachgenerate" class="color-green">Simple FOREACH…GENERATE:</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>This is simple to use the FOREACH…GENERATE in a single line of pig statement to generate the columns that we need.</li>
<li>Relation_Name = FOREACH &lt;Previous Relation Name&gt; GENERATE column1, column2&#8230;..;</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="nested-foreach-generate" class="color-green">Nested FOREACH {…GENERATE }</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Use operators such as DISTINCT, FILTER, LIMIT, ORDER and SAMPLE.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="syntax-2" class="color-green">Syntax:</h2>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight"><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">Relation_Name = FOREACH Nested_Relation_Name {Inner Relation = Nested_Operation; GENERATE expression [, expression …] };</code></pre> </div></figure>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>It should be taken set of expressions and it applied to every record in the data pipeline, hence define as FOREACH.</li>
<li>The pipeline to next operator.For those database, it is Pig’s projection operator.</li>
</ul>
</li>
</ul>
<p>For example, the code loads an entire record, then it removes all user and id fields from each record:</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>A = load &#8216;input&#8217; as (user:chararray, id:long, address:chararray, phone:chararray, preferences:map[]);</li>
<li>B = foreach A generate user, id;</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/what-is-the-usage-of-foreach-operation-in-pig-scripts.png" alt="what-is-the-usage-of-foreach-operation-in-pig-scripts" width="980" height="594" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-usage-of-foreach-operation-in-pig-scripts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the internal architecture of Apache Pig ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-internal-architecture-of-apache-pig/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-internal-architecture-of-apache-pig/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 05:19:41 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig architecture diagram]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[Applied Materials 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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[different ways of executing pig script]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hadoop pig architecture]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig architecture]]></category>
		<category><![CDATA[pig architecture in hadoop]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[Pig Interview Questions for experienced and freshers]]></category>
		<category><![CDATA[pig latin application flow]]></category>
		<category><![CDATA[pig latin data model]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[processing data using apache pig]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[properties of pig]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[relational operators in pig]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=155</guid>

					<description><![CDATA[Answer:Pig Latin consist of pig to analyze the data from Hadoop]]></description>
										<content:encoded><![CDATA[<div class="row">
<div class="col-sm-12">
<div class="TextHeading">
<div class="hddn">
<h2 id="internal-architecture-of-apache-pig" class="color-green" style="text-align: justify;">Internal architecture of Apache Pig</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Pig Latin consist of pig to analyze the data from Hadoop.</li>
<li>Its a highlevel data processing language it perform various operations like data types and operators.</li>
<li>To perform a particular task Pig Script is used and execution mechanisms like(Grunt Shell, UDFs, Embedded).</li>
<li>To produce the desired output continuous transformations applied in Pig Framework.</li>
<li>Programmer’s job become easier when converting these scripts into a series of MapReduce jobs.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="hddn"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/pig-architecture.png" alt="Pig Architecture" width="659" height="368" /></div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="apache-pig-components" class="color-green">Apache Pig Components</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>There are various components in the Apache Pig framework.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="parser" class="color-green">Parser</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The Pig Scripts are handled by the Parser.It checks the syntax,type checking, and other miscellaneous checks.The output will be like a DAG (directed acyclic graph), which represents the Pig Latin statements and logical operators.</li>
<li>In the DAG, the logical operators of the script are represented as nodes and therefore the data flows are represented as edges.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="optimizer" class="color-green">Optimizer</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The logical plan DAG is passed to the logical optimizer,it carries out the logical optimizations,projection and pushdown.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="compiler" class="color-green">Compiler</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>It compiles the optimized logical plan into a series of MapReduce jobs.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="execution-engine" class="color-green">Execution engine</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Producing the desired results MapReduce jobs are executed on Hadoop.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/pig-latin.gif" alt="Pig Latin" width="628" height="351" /></div>
</div>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="pig-latin-data-model" class="color-green">Pig Latin Data Model</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>It allows datatypes such as map and tuple and it representation of Pig Latin’s data model.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="atom" class="color-green">Atom</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Any single value in Pig Latin, irrespective of their data, type is known as an Atom.</li>
<li>Values of Pig in Atom are number,int,long,float,double,chararray, and bytearray.</li>
<li>Field define as a piece of data or a simple atomic value. Example − ‘xxx’ or ‘30’</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="tuple" class="color-green">Tuple</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>A record formed by ordered set of fields is known as a tuple. A tuple is similar to a row in a table of RDBMS. Example − (xxx, 30)</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="bag" class="color-green">Bag</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Is an unordered set of tuples.</li>
<li>A collection of tuples (non-unique) is known as a bag.Tuple have any number of fields (flexible schema).</li>
<li>No need that every tuple contain the same number of fields and the same position (column) have the same type.
<ul>
<li><b>Example</b> − {(xxx, 30), (yyyy, 45)}</li>
</ul>
</li>
<li>A Field contains bags in context its called inner bags.
<ul>
<li><b>Example</b> − {xxx, 30, {98xxxxx22, xxxx@gmail.com,}}</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="map" class="color-green">Map</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Map is a set of key-value pairs the key define as chararray and its unique.</li>
<li>It is represented by ‘[]’ Example − [name#xxx, age#30]</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="relation" class="color-green">Relation</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">A relation is a bag of tuples.Pig Latin relations are unordered (there is no guarantee that tuples are processed in any particular order).</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-internal-architecture-of-apache-pig/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the history of Pig in Hadoop ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-history-of-pig-in-hadoop/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-history-of-pig-in-hadoop/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 05:12:12 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig]]></category>
		<category><![CDATA[apache pig architecture]]></category>
		<category><![CDATA[apache pig commands]]></category>
		<category><![CDATA[apache pig documentation]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[apache pig logo]]></category>
		<category><![CDATA[apache pig tutorial]]></category>
		<category><![CDATA[Applied Materials 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[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between sqoop and hive]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[hadoop pig interview questions]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[hive hadoop]]></category>
		<category><![CDATA[hive in hadoop]]></category>
		<category><![CDATA[hive vs pig vs spark]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig and hive tutorial]]></category>
		<category><![CDATA[pig hive sqoop flume]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[pig vs hive]]></category>
		<category><![CDATA[pig vs hive comparison]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra 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[what is apache pig]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=153</guid>

					<description><![CDATA[Answer:In 2006 Pig was developed by Yahoo Research for particular way of creating and executing MapReduce jobs on very large data sets.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="history-of-pig-in-hadoop" class="color-green" style="text-align: justify;">History of Pig in Hadoop</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>In 2006 Pig was developed by Yahoo Research for particular way of creating and executing MapReduce jobs on very large data sets.</li>
<li>Apache Software Foundation was moved into 2007.</li>
<li>Pig started a project in Yahoo! Research, where Yahoo! scientists designed it and produced an implementation.</li>
<li>The MapReduce paradigm presented by Hadoop “is too low-level and rigid, and leads to a great deal of custom user code that is hard to maintain and reuse.”</li>
<li>Users were not comfortable with MapReduce languages such as SQL.</li>
<li>Sort the problem a new language called Pig Latin that we have designed to fit between the declarative style of SQL, and the low-level, procedural style of MapReduce.”</li>
<li>Hadoop users adopt Pig. So, a team of development engineers was assembled to take the research prototype and build into a production-quality product. About this same time, in fall 2007, Pig was open sourced via the Apache Incubator.</li>
<li>The first Pig release in September 2008, were Pig graduated from the Incubator and became a subproject of Apache Hadoop.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<div class="hddn" style="text-align: justify;"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/bigdata-history.png" alt="Bigdata history" width="2327" height="1010" /></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-history-of-pig-in-hadoop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
