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

<channel>
	<title>pig interview questions for experienced - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/pig-interview-questions-for-experienced/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/pig-interview-questions-for-experienced/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Wed, 15 Sep 2021 05:11:14 +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 interview questions for experienced - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/pig-interview-questions-for-experienced/</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 main difference between pig vs hive vs sql ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-main-difference-between-pig-vs-hive-vs-sql/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-main-difference-between-pig-vs-hive-vs-sql/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 08:44:28 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[advantages of hive over sql]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between hive and sql]]></category>
		<category><![CDATA[difference between hive and sql syntax]]></category>
		<category><![CDATA[difference between hive and sqlpig vs mapreduce]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[hive vs pig vs hbase]]></category>
		<category><![CDATA[hive vs pig vs spark]]></category>
		<category><![CDATA[hiveql requires that you create the data flow]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[ive vs pig vs spark]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig and hive tutorial]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[Pig Interview Questions for experienced and freshers]]></category>
		<category><![CDATA[pig vs hive comparison]]></category>
		<category><![CDATA[pig vs hive performance]]></category>
		<category><![CDATA[pig vs mapreduce]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=213</guid>

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

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

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

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

					<description><![CDATA[Answer:The development time is Decrease....]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="advantages-of-pig-in-hadoop" class="color-green" style="text-align: justify;">Advantages of pig in Hadoop</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul style="text-align: justify;">
<li style="list-style-type: none;">
<ul>
<li>The development time is Decrease.</li>
<li>It is a collection of Rich set of operators in order to perform operations such as join, filer, sort and many more.</li>
<li>Pig Latin is similar to SQL, it becomes very easy for developers to write a Pig script.</li>
<li>The task execution in Apache Pig it gets automatically optimized , hence the programmers need to focus on semantics language.</li>
</ul>
</li>
</ul>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"></div>
<div><img 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 Hbase used for, and what are the benefits that it provides over Pig and Hive ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-hbase-used-for-and-what-are-the-benefits-that-it-provides-over-pig-and-hive/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-hbase-used-for-and-what-are-the-benefits-that-it-provides-over-pig-and-hive/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 07:58:18 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[advantages of hbase over hdfs]]></category>
		<category><![CDATA[advantages of pig in hadoop]]></category>
		<category><![CDATA[advantages of using hbase]]></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[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 hbase]]></category>
		<category><![CDATA[disadvantages of pig]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[HBase]]></category>
		<category><![CDATA[hbase limitation]]></category>
		<category><![CDATA[hbase mapreduce integration]]></category>
		<category><![CDATA[hbase real time use cases]]></category>
		<category><![CDATA[hbase vs hive vs cassandra]]></category>
		<category><![CDATA[hbase vs impala]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[Hive and Pig?]]></category>
		<category><![CDATA[hive query based interview questions]]></category>
		<category><![CDATA[hive scenario based interview questions]]></category>
		<category><![CDATA[hive vs hbase performance]]></category>
		<category><![CDATA[hive vs hbase vs pig]]></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 Advantages and Disadvantages]]></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 vs hive performance]]></category>
		<category><![CDATA[Pig vs Hive vs SQL]]></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[show to use apache hbase]]></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[What is the Difference Between Pig and Hive?]]></category>
		<category><![CDATA[When to use Hadoop]]></category>
		<category><![CDATA[when to use hbase and when to use hive]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=194</guid>

					<description><![CDATA[Answer:HBASE will not replace Map Reduce. It is scalable distributed database....]]></description>
										<content:encoded><![CDATA[<div class="row">
<div class="col-sm-12">
<div class="TextHeading">
<div class="hddn">
<h2 id="hbase-uses" class="color-green" style="text-align: justify;">Hbase uses</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>HBASE will not replace Map Reduce. It is scalable distributed database.</li>
<li>Hbase processing data will act as Map Reduce.</li>
<li>The Hadoop database is define Apache HBase.</li>
<li>HBase is a sub-project of the Apache Hadoop project and is used to provide real-time read and write access to big data.</li>
<li>Hbase is a Bigtable clone.</li>
<li>Hbase is a open source.</li>
<li>Hbase called as Cascading connector.</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"></div>
<div><img decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/hbase-layout.png" width="550" height="397" /></div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="what-are-the-features-that-it-provides-over-pig-and-hive" class="color-green">what are the Features that it provides over Pig and Hive?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Possible to create tables in Hive and store data,it can even map the user’s existing HBase tables to Hive and operate on them.</li>
<li>Hive should be used for analyzing query of data collected over a period of time.</li>
<li>Hbase has got its own set of very good Application Programming Interface(API) which could be used to push/pull the data.</li>
<li>It has a good community for the future.It developed on top if hadoop already used to integration for the Hadoop platform.</li>
<li>Hbase can be integrated with MapReduce that can do bulk operation, like indexing, analytics etc.
<ul>
<li>Distributed storage</li>
<li>Table-like in data structure</li>
<li>multi-dimensional map</li>
<li>High scalability</li>
<li>High availability</li>
<li>High performance</li>
</ul>
</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/benefits-that-it-provides-over-pig-and-hive.png" width="959" height="431" /></div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">A distributed data store that can scale horizontally to 1,000s of commodity servers and petabytes of indexed storage.</li>
<li style="text-align: justify;">Designed to operate on top of the Hadoop distributed file system (HDFS) or Kosmos File System (KFS, aka Cloudstore) for scalability, fault tolerance, and high availability.</li>
</ul>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-hbase-used-for-and-what-are-the-benefits-that-it-provides-over-pig-and-hive/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 in Hadoop ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-pig/what-is-pig-in-hadoop/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-pig/what-is-pig-in-hadoop/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 06:43:27 +0000</pubDate>
				<category><![CDATA[Apache Pig]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Amazon Development Centre India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[apache pig commands]]></category>
		<category><![CDATA[apache pig interview questions]]></category>
		<category><![CDATA[apache pig interview questions and answers]]></category>
		<category><![CDATA[apache pig tutorial]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Best Apache Pig Interview Questions]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[CRISIL LIMITED interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Ernst & Young interview questions and answers]]></category>
		<category><![CDATA[Exide Industries interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[Hexaware Technologies interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Myntra Designs Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[pig commands cheat sheet]]></category>
		<category><![CDATA[pig commands list]]></category>
		<category><![CDATA[pig commands with examples]]></category>
		<category><![CDATA[pig interview questions]]></category>
		<category><![CDATA[pig interview questions and answers]]></category>
		<category><![CDATA[pig interview questions and answers for experienced]]></category>
		<category><![CDATA[pig interview questions for experienced]]></category>
		<category><![CDATA[pig latin interview questions]]></category>
		<category><![CDATA[pig practice questions]]></category>
		<category><![CDATA[pig script commands]]></category>
		<category><![CDATA[pig script examples]]></category>
		<category><![CDATA[pig tutorial for beginners]]></category>
		<category><![CDATA[pig vs hive]]></category>
		<category><![CDATA[Prokarma Softech nterview questions and answers]]></category>
		<category><![CDATA[Quintiles interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[Syngene International Limited interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[when is pig script converted to mapreduce jobs and executed]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=187</guid>

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

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

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

					<description><![CDATA[Answer:Pig Latin consist of pig to analyze the data from Hadoop]]></description>
										<content:encoded><![CDATA[<div class="row">
<div class="col-sm-12">
<div class="TextHeading">
<div class="hddn">
<h2 id="internal-architecture-of-apache-pig" class="color-green" style="text-align: justify;">Internal architecture of Apache Pig</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Pig Latin consist of pig to analyze the data from Hadoop.</li>
<li>Its a highlevel data processing language it perform various operations like data types and operators.</li>
<li>To perform a particular task Pig Script is used and execution mechanisms like(Grunt Shell, UDFs, Embedded).</li>
<li>To produce the desired output continuous transformations applied in Pig Framework.</li>
<li>Programmer’s job become easier when converting these scripts into a series of MapReduce jobs.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="hddn"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/pig-architecture.png" alt="Pig Architecture" width="659" height="368" /></div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="apache-pig-components" class="color-green">Apache Pig Components</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>There are various components in the Apache Pig framework.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="parser" class="color-green">Parser</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The Pig Scripts are handled by the Parser.It checks the syntax,type checking, and other miscellaneous checks.The output will be like a DAG (directed acyclic graph), which represents the Pig Latin statements and logical operators.</li>
<li>In the DAG, the logical operators of the script are represented as nodes and therefore the data flows are represented as edges.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="optimizer" class="color-green">Optimizer</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The logical plan DAG is passed to the logical optimizer,it carries out the logical optimizations,projection and pushdown.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="compiler" class="color-green">Compiler</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>It compiles the optimized logical plan into a series of MapReduce jobs.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="execution-engine" class="color-green">Execution engine</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Producing the desired results MapReduce jobs are executed on Hadoop.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/apache-pig/pig-latin.gif" alt="Pig Latin" width="628" height="351" /></div>
</div>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="pig-latin-data-model" class="color-green">Pig Latin Data Model</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>It allows datatypes such as map and tuple and it representation of Pig Latin’s data model.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="atom" class="color-green">Atom</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Any single value in Pig Latin, irrespective of their data, type is known as an Atom.</li>
<li>Values of Pig in Atom are number,int,long,float,double,chararray, and bytearray.</li>
<li>Field define as a piece of data or a simple atomic value. Example − ‘xxx’ or ‘30’</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="tuple" class="color-green">Tuple</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>A record formed by ordered set of fields is known as a tuple. A tuple is similar to a row in a table of RDBMS. Example − (xxx, 30)</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="bag" class="color-green">Bag</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Is an unordered set of tuples.</li>
<li>A collection of tuples (non-unique) is known as a bag.Tuple have any number of fields (flexible schema).</li>
<li>No need that every tuple contain the same number of fields and the same position (column) have the same type.
<ul>
<li><b>Example</b> − {(xxx, 30), (yyyy, 45)}</li>
</ul>
</li>
<li>A Field contains bags in context its called inner bags.
<ul>
<li><b>Example</b> − {xxx, 30, {98xxxxx22, xxxx@gmail.com,}}</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="map" class="color-green">Map</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Map is a set of key-value pairs the key define as chararray and its unique.</li>
<li>It is represented by ‘[]’ Example − [name#xxx, age#30]</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="relation" class="color-green">Relation</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">A relation is a bag of tuples.Pig Latin relations are unordered (there is no guarantee that tuples are processed in any particular order).</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-pig/what-is-the-internal-architecture-of-apache-pig/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
