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

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>pig practice questions - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/pig-practice-questions/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:49: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 python]]></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[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[outputschema pig]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig and python analogy]]></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 python udf bag input]]></category>
		<category><![CDATA[pig python udf example]]></category>
		<category><![CDATA[pig udf load function example]]></category>
		<category><![CDATA[pig udf output schema]]></category>
		<category><![CDATA[pig udf return tuple]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[python udf example]]></category>
		<category><![CDATA[python udf hive]]></category>
		<category><![CDATA[python udf pig tuple]]></category>
		<category><![CDATA[python udf spark]]></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=215</guid>

					<description><![CDATA[Answer:A UDF has input and output. Here is the different ways you can specify the output format of a Python UDF through use of the outputSchema decorator.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="specifying-the-udf-output-schema" class="color-green" style="text-align: justify;">Specifying the UDF output schema</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>A UDF has input and output. Here is the different ways you can specify the output format of a Python UDF through use of the outputSchema decorator.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="sample-code" class="color-green">Sample Code:</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-javascript code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-javascript code-embed-code"># the original udf<br/># it returns a single chararray (that&#039;s PigLatin for String)<br/>@outputSchema(&#039;word:chararray&#039;)<br/>def hi_world():<br/>    return &quot;hello world&quot;<br/>    <br/># this one returns a Python tuple. Pig recognises the first element <br/># of the tuple as a chararray like before, and the next one as a <br/># long (a kind of integer)<br/>@outputSchema(&quot;word:chararray,number:long&quot;)<br/>def hi_everyone():<br/>  return &quot;hi there&quot;, 15<br/><br/>#we can use outputSchema to define nested schemas too, here is a bag of tuples<br/>@outputSchema(&#039;some_bag:bag{t:(field_1:chararray, field_2:int)}&#039;)<br/>def bag_udf():<br/>    return [<br/>        (&#039;hi&#039;,1000),<br/>        (&#039;there&#039;,2000),<br/>        (&#039;bill&#039;,0)<br/>    ]<br/><br/>#and here is a map<br/>@outputSchema(&#039;something_nice:map[]&#039;)<br/>def my_map_maker():<br/>    return {&quot;a&quot;:&quot;b&quot;, &quot;c&quot;:&quot;d&quot;, &quot;e&quot;,&quot;f&quot;}</code></pre> </div>
</div>
</div>
<p style="text-align: justify;">OutputSchema can be used to imply that a function outputs one or a combination of basic types. Those types are:</p>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>chararray: like a string</li>
<li>bytearray: a bunch of bytes in a row. Like a string but not as human friendly</li>
<li>long: long integer</li>
<li>int: normal integer</li>
<li>double: floating point number</li>
<li>datetime</li>
<li>boolean</li>
<li>No schema is specified;then the Pig assumes that the UDF outputs a bytearray.</li>
</ul>
</div>
</div>
<div class="hddn" style="text-align: justify;"><img fetchpriority="high" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/apache-pig-udf.png" alt="Apache Pig UDF" width="700" height="476" /></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig/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 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 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 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 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 a skewed join in Pig ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-a-skewed-join-in-pig/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-a-skewed-join-in-pig/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 05:24:50 +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[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[differentiate between replicated skewed and merge join]]></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[joins in pig]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[map side join in pig example]]></category>
		<category><![CDATA[merge join 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 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[replicated joins in pig]]></category>
		<category><![CDATA[replicated skewed and merge join in pig]]></category>
		<category><![CDATA[skewed join in pig]]></category>
		<category><![CDATA[skewed join in pig with example]]></category>
		<category><![CDATA[skewed join in pig with examplejoins in pig]]></category>
		<category><![CDATA[skewed join spark]]></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=157</guid>

					<description><![CDATA[Answer:Joining skewed data using apache Pig skewed join.In a distributed processing environment Data skew is a serious problem,and occurs when the data is not evenly divided among the key tuples from the map phase.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="skewed-join-in-pig" class="color-green" style="text-align: justify;">Skewed join in Pig</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li><b>Joining skewed</b> data using apache Pig skewed join.In a distributed processing environment Data skew is a serious problem,and occurs when the data is not evenly divided among the key tuples from the map phase.</li>
<li>To help the data skew issue with joins Apache Pig is used.</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="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/what-is-a-skewed-join-in-pig.png" alt="what is skewed join in pig" width="728" height="493" /></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Using two-table skewed join works.</li>
<li>Construct the join Used &#8220;skewed&#8221;&#8216; to force it used skewed join. <code>pig.skewed join.reduce.memusage</code></li>
<li>specifies the reducer to perform the join.</li>
<li>Pig forces low fraction for more reducer but increases copying cost.</li>
<li>Difficult to presence Parallel joins for underlying data.</li>
<li>The underlying data is sufficiently skewed, load too much of the parallelism gains.</li>
<li>Skewed join does not have restriction on the size of the input keys.</li>
<li>It accomplishes by dividing one of the input on the join and other input.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="implementation" class="color-green">Implementation:</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">Skewed join it translates into two map/reduce jobs.</li>
<li style="text-align: justify;">The root job samples the input records and computes the underlying key space.</li>
<li style="text-align: justify;">The second job modules the input table and performs a join on the predicate.</li>
<li style="text-align: justify;">In order to join two tables, the first tables is partitioned and another is streamed to the reducer.</li>
<li style="text-align: justify;">The map task uses the pig.keydist file to define the number of reducers per key.</li>
<li style="text-align: justify;">It sends the key to each of the reducers in a round robin(RR)fashion. Skewed joins happen in the reduce phase of the join job.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-a-skewed-join-in-pig/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>
		<item>
		<title>What is Apache Pig ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-apache-pig/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-apache-pig/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 01:13:57 +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 hadoop 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 example]]></category>
		<category><![CDATA[apache pig tutorial for beginners]]></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[grunt shell in pig]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[how to process a 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 interview questions]]></category>
		<category><![CDATA[pig latin application flow]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[pig programming]]></category>
		<category><![CDATA[pig relational operators]]></category>
		<category><![CDATA[pig script execution comprises of multiple steps sequence]]></category>
		<category><![CDATA[pig script execution sequence]]></category>
		<category><![CDATA[pig script execution steps sequence]]></category>
		<category><![CDATA[pig vs hiveapache pig documentation]]></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[store command 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[what a pig]]></category>
		<category><![CDATA[what is apache pig]]></category>
		<category><![CDATA[what is apache pig used for]]></category>
		<category><![CDATA[what is pig]]></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=148</guid>

					<description><![CDATA[Answer:Apache Pig is used to creating programs that runs on Apache Hadoop]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="apache-pig" class="color-green" style="text-align: justify;">Apache Pig</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>Apache Pig is used to creating programs that runs on Apache Hadoop.</li>
<li>Pig Latin is a language.</li>
<li>It execute in Hadoop jobs,MapReduce, Apache Tez, or Apache Spark</li>
</ul>
</li>
</ul>
<div class="ImageContent">
<div><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/big-data.gif" alt="Big Data" width="589" height="360" /></div>
<div class="hddn">The programming from the Java MapReduce idiom into a notation which makes MapReduce high level, similar to SQL for relational database management systems.</div>
</div>
<ul>
<li>The user-defined functions (UDFs) called Pig Latin user can write in Java, Python, JavaScript, Ruby or Groovy.</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/creating-your-first-pig-script.png" alt="Creating your first pig script" width="491" height="281" /></div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="advantages-of-pig" class="color-green">Advantages of Pig</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Reusing the code</li>
<li>Quick development</li>
<li>Less lines of code</li>
<li>Type checking and Schema etc.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="simple-program-for-pig" class="color-green">Simple program for pig:</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">Map: The data element consisting the data type chararray where element has pig data type include complex data type</li>
<li style="text-align: justify;">Example- [city’#’bang’,’pin’#560001].</li>
<li style="text-align: justify;">The city and pin are data element mapping the values here.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-apache-pig/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
