<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5130236803296751736</id><updated>2026-09-16T15:26:08.450+05:30</updated><category term="Apache Spark"/><category term="Interview Questions"/><category term="Apache Hbase"/><category term="Apache Sqoop"/><category term="Apache Flume"/><category term="Apache Hive"/><category term="Programming"/><category term="Apache Kafka"/><category term="Apache Pig"/><category term="Hadoop Mapreduce"/><category term="Hadoop ecosystem"/><category term="Maven Java Project"/><category term="No Sql Database"/><title type='text'>ITechShree</title><subtitle type='html'>Learning  tutorial  and Interview Guide for Big Data emerging technologies ,Sap Hana, Java etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Debashree Gorai</name><uri>http://www.blogger.com/profile/12122803677168183212</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-4063175806938488984</id><published>2021-06-15T15:16:00.004+05:30</published><updated>2021-06-15T15:16:59.825+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Spark"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><title type='text'>Spark Out Of Memory Error</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;mso-para-margin-left: 0.0000gd; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 26pt;&quot;&gt;Spark Out Of Memory Error&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 26pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;mso-para-margin-left: 0.0000gd; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;mso-para-margin-left: 0.0000gd; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;mso-para-margin-left: 0.0000gd; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;OOM error Spark driver level:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Spark driver is the main control of spark application .if its configured with less &amp;nbsp;memory to collect all data of files then it throws error.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;If table size which is to be &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;broadcasted&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;is huge then also driver faces OOM error.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&amp;nbsp;OOM error Spark executor level:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Spark job is executed &amp;nbsp;though one or more &amp;nbsp;number of stages and each stages consists of multiple task. No of task at executor level &amp;nbsp;depends on&lt;b&gt; spark.executor.cores&lt;/b&gt; property. If it is set &amp;nbsp;higher value without consideration of memory required then spark job fails with OOM error.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Ideally 3 or 5 &amp;nbsp;cores are assigned to each executor.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;I&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;n dataframe operation if more number of columns &amp;nbsp;are selected in query then &amp;nbsp;memory overhead will be higher .sometimes it also encounters OOM error.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Normally, Required columns are selected for large dataframe operation.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Executor memory container consists of yarn memory overhead and executor memory.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Yarn container memory is needed for JVM overheads, internal strings or other metadata requirement.We need to configure &lt;b&gt;spark.yarn.executor.memoryOverhead&lt;/b&gt; to a proper value.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #333333; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Practically , &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #333333; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;Yarn Memory Overhead(off-heap memory) should be 10% of Executor &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #333333; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;level memory&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #333333; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;4.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Spark application which involves high shuffling operation like group by , join etc causes OOM error as it shuffling of data is done via executor level if any executor is busy or involves in high GC the it throws error.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;So we should follow &amp;nbsp;functions which involves less shuffling as much as possible.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Hope you like &amp;nbsp;my blogs!&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Happy Learning!&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/4063175806938488984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2021/06/spark-out-of-memory-error.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/4063175806938488984'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/4063175806938488984'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2021/06/spark-out-of-memory-error.html' title='Spark Out Of Memory Error'/><author><name>Debashree Gorai</name><uri>http://www.blogger.com/profile/12122803677168183212</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-8922350015038208585</id><published>2021-04-24T19:12:00.005+05:30</published><updated>2021-04-24T19:12:48.722+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Spark"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><title type='text'>Apache Spark Interview question Set 3</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9CweYeA_s96qm9idcFbbNvwQjvPLOJhKDMEUHwQrI0dfkBF9qYdzFAnsCtO1v0LhcZcIXuXzbyP3YUXbxC24ZYFTZ9IoN2rzqjH443wByNAOrDhK5a7pAPza1kbA0ZjB3iHZy2Gqtv0nt/s2048/gabrielle-henderson-HJckKnwCXxQ-unsplash-min.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1365&quot; data-original-width=&quot;2048&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9CweYeA_s96qm9idcFbbNvwQjvPLOJhKDMEUHwQrI0dfkBF9qYdzFAnsCtO1v0LhcZcIXuXzbyP3YUXbxC24ZYFTZ9IoN2rzqjH443wByNAOrDhK5a7pAPza1kbA0ZjB3iHZy2Gqtv0nt/s320/gabrielle-henderson-HJckKnwCXxQ-unsplash-min.webp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; font-weight: bold;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;Diff&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;e&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;rence between &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Coalesce&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;and &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;repartition&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 14pt;&quot;&gt;Repartition&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;is used to increase or decrease the number of partition with equal sized data and creates a lot of shuffling.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Coalesce&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;can be used to decrease the the number of partition or use existing partitions &amp;nbsp;minimizing the amount of data that is shuffled.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.0000pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: 0.0000pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Advantages of parquet file format in Spark?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Parquet file is native to spark and Parquet file with snappy compression is best optimized format for spark application .It carries metadata long with its footer so whenever we create parquet file then we can see the metadata file &amp;nbsp;within the same directory.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;When to use avro data file format ?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;When we &amp;nbsp;come across the requirement where schema is varying with the time then avro is best.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.0000pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: 0.0000pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; font-weight: bold; letter-spacing: 0pt; text-indent: 0pt;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;text-indent: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Difference &amp;nbsp;between DAG and lineage?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;DAG is the graphical representation of spark program where each vertex acts as a operation and each edge represents dependencies of operation.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;L&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;ineage is the part of DAG which represents one or more operation t&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;ha&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;t creates another RDD.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;color: #ff4800;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.0000pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: 0.0000pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;5.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Why DAG is Acyclic graph?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;DAG is a graph that is &amp;nbsp;&amp;nbsp;directed and without cycles connected through different edges which go in one way only.It is difficult to traverse the entire graph starting from one edge.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.0000pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: 0.0000pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;6.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;If spark application stores a data into a target file which are duplicated records then How to remove duplicates rows in the target ?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Duplicates rows can be removed or deleted by using distinct() &amp;amp; dropDuplicates() function.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;When same values are present in all columns then distinct() can be used whereas dropDuplicates() is used to remove the rows that are having same values in multiple columns.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;V&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;al disDF= df.distinct()&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;V&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;al dropdupDF= df.dropDuplicates(“column_name1”,”&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;column_name2”)&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #202124; font-family: Calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #202124; font-family: Calibri;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 18.6667px;&quot;&gt;Happy learning!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/8922350015038208585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2021/04/apache-spark-interview-question-set-3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8922350015038208585'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8922350015038208585'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2021/04/apache-spark-interview-question-set-3.html' title='Apache Spark Interview question Set 3'/><author><name>Debashree Gorai</name><uri>http://www.blogger.com/profile/12122803677168183212</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9CweYeA_s96qm9idcFbbNvwQjvPLOJhKDMEUHwQrI0dfkBF9qYdzFAnsCtO1v0LhcZcIXuXzbyP3YUXbxC24ZYFTZ9IoN2rzqjH443wByNAOrDhK5a7pAPza1kbA0ZjB3iHZy2Gqtv0nt/s72-c/gabrielle-henderson-HJckKnwCXxQ-unsplash-min.webp" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-423183514814405496</id><published>2021-02-06T22:18:00.000+05:30</published><updated>2021-02-06T22:18:03.941+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Spark"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><title type='text'>Apache Spark  interview questions Set 2</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9CweYeA_s96qm9idcFbbNvwQjvPLOJhKDMEUHwQrI0dfkBF9qYdzFAnsCtO1v0LhcZcIXuXzbyP3YUXbxC24ZYFTZ9IoN2rzqjH443wByNAOrDhK5a7pAPza1kbA0ZjB3iHZy2Gqtv0nt/s2048/gabrielle-henderson-HJckKnwCXxQ-unsplash-min.webp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1365&quot; data-original-width=&quot;2048&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9CweYeA_s96qm9idcFbbNvwQjvPLOJhKDMEUHwQrI0dfkBF9qYdzFAnsCtO1v0LhcZcIXuXzbyP3YUXbxC24ZYFTZ9IoN2rzqjH443wByNAOrDhK5a7pAPza1kbA0ZjB3iHZy2Gqtv0nt/s320/gabrielle-henderson-HJckKnwCXxQ-unsplash-min.webp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;background: rgb(255,255,255); line-height: 15.7500pt; margin-left: 0.0000pt; mso-pagination: widow-orphan; padding: 0pt 0pt 0pt 0pt; text-align: center; text-indent: 0.0000pt; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; mso-pagination: widow-orphan; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;Difference between groupByKey() and reduceByKey() in spark?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; mso-pagination: widow-orphan; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;groupBykey() works on dataset with key value pair(K,V) and groups data based on the key.A lot of shuffling occurs while grouping the dataset if it is not partitioned.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255,255,255); margin-bottom: 7.5000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; margin-top: 0.0000pt; mso-pagination: widow-orphan; text-indent: 0.0000pt;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;val data&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;= &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;sc&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;.parallelize(Array((&#39;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&#39;,5),(&#39;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;,3),(&#39;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&#39;,4),(&#39;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&#39;,7)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;,3)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255,255,255); margin-bottom: 7.5000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; margin-top: 0.0000pt; mso-pagination: widow-orphan; text-indent: 0.0000pt;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;val &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;groupdataset&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;= data.groupByKey().collect()&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255,255,255); margin-bottom: 7.5000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; margin-top: 0.0000pt; mso-pagination: widow-orphan; text-indent: 0.0000pt;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;group.foreach(println)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255,255,255); margin-bottom: 7.5000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; margin-top: 0.0000pt; mso-pagination: widow-orphan; text-indent: 0.0000pt;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255,255,255); margin-bottom: 7.5000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; margin-top: 0.0000pt; mso-pagination: widow-orphan; text-indent: 0.0000pt;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;reduceByKey() equivalent to grouping+ aggregation .We can say it works on combining dataset pairs &amp;nbsp;based on key within same machine &amp;nbsp;before shuffling.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255,255,255); margin-bottom: 7.5000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; margin-top: 0.0000pt; mso-pagination: widow-orphan; text-indent: 0.0000pt;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;val &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;= Array(&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&quot;,&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&quot;,&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&quot;,&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255,255,255); margin-bottom: 7.5000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; margin-top: 0.0000pt; mso-pagination: widow-orphan; text-indent: 0.0000pt;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;val &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;combined_&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;data = &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;sc&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;.parallelize(words).map(w =&amp;gt; (w,1)).reduceByKey(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;(v+w)=&amp;gt; v+w&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255,255,255); margin-bottom: 7.5000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; margin-top: 0.0000pt; mso-pagination: widow-orphan; text-indent: 0.0000pt;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;data.collect.foreach(println&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; mso-pagination: widow-orphan; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; mso-pagination: widow-orphan; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; mso-pagination: widow-orphan; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;Define lineage graph and DAG &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;in spark?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 18.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-font-kerning: 0.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; mso-pagination: widow-orphan; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-font-kerning: 0.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;All RDDs created in Spark depends one or more RDD &amp;nbsp;that new rdd &amp;nbsp;contains pointer to parent RDD.All these dependencies between RDDs is represented by a graph rather than actual data is known as lineage graph.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-font-kerning: 0.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; mso-pagination: widow-orphan; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-font-kerning: 0.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;DAG is combination of vertices and edges whereas vertices represents RDDs and the edges is represented by the operations applied over RDD. &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-font-kerning: 0.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; mso-list: l1 level1 lfo1; mso-pagination: widow-orphan; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;What &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;is the benefit of lineage graph?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; margin-right: 0.0000pt; mso-pagination: widow-orphan; mso-para-margin-right: 0.0000gd; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Lineage graph information is used to recompute RDD whenever needed. If a part of &amp;nbsp;RDD is lost if any reason,then lineage graph information re computes RDD again and continues to process spark application.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; mso-char-indent-count: 0.0000; mso-list: l1 level1 lfo1; mso-pagination: widow-orphan; mso-para-margin-left: 0.0000gd; mso-para-margin-right: 0.0000gd; padding: 0pt 0pt 0pt 0pt; text-indent: 0.0000pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;4.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;What is catalyst Optimizer?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; margin-right: 0.0000pt; mso-pagination: widow-orphan; mso-para-margin-left: 0.0000gd; mso-para-margin-right: 0.0000gd; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;It is new addition in Spark SQL framework.It &amp;nbsp;allows spark to automatically transform SQL queries to execute more efficiently by adding new optimization techniques such as filtering,indexing &amp;nbsp;and &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;ensuring &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;performance of &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;data source joins &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;most efficient order&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; mso-char-indent-count: 0.0000; mso-list: l1 level1 lfo1; mso-pagination: widow-orphan; mso-para-margin-left: 0.0000gd; mso-para-margin-right: 0.0000gd; padding: 0pt 0pt 0pt 0pt; text-indent: 0.0000pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;5.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;Why Dataset is more faster than RDD API?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; margin-right: 0.0000pt; mso-pagination: widow-orphan; mso-para-margin-left: 0.0000gd; mso-para-margin-right: 0.0000gd; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Spark&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;15&quot; style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Dataset&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;does not use standard serializers&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;rather they &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;uses&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;15&quot; style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Encoders&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;can efficiently transform objects &amp;nbsp;into internal binary storage&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; margin-right: 0.0000pt; mso-pagination: widow-orphan; mso-para-margin-left: 0.0000gd; mso-para-margin-right: 0.0000gd; padding: 0pt 0pt 0pt 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Wheres RDD API uses Java or kryo serializer.Hence, it is &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;slower to perform simple grouping and aggregation operations.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.7500pt; margin-bottom: 0.0000pt; margin-left: 0.0000pt; margin-right: 0.0000pt; mso-char-indent-count: 0.0000; mso-list: l1 level1 lfo1; mso-pagination: widow-orphan; mso-para-margin-left: 0.0000gd; mso-para-margin-right: 0.0000gd; padding: 0pt 0pt 0pt 0pt; text-indent: 0.0000pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;6.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;What are the Cluster Manager available in Spark?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-left: 15pt; margin-top: 5pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Symbol; font-size: 10pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Standalone Mode&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;: By default, &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;spark provides simple cluster manager that is standalone. It is easy to set up within spark distribution and resilient in nature.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-left: -3pt; margin-top: 5pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-left: 15pt; margin-top: 5pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Symbol; font-size: 10pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Apache Mesos&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;: Apache Mesos is an open-source project &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;and distributed cluster manager.It supports two level of scheduling. The main advantage of using Apache mesos as cluster manager as it supports dynamic partitioning between spark and other frameworks as well as &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;scalable partitioning between multiple instances of Spark.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-left: -3pt; margin-top: 5pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-left: 15pt; margin-top: 5pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Symbol; font-size: 10pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Hadoop YARN&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;It &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;is the cluster resource manager of Hadoop 2.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;and it is &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;compatible&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;with &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Spark &amp;nbsp;as well.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-left: 15pt; margin-top: 5pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Symbol; font-size: 10pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Kubernetes&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;17&quot; style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Kubernetes&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;is an open-source system&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;and new cluster manager scheduler &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;for automating deployment, scaling, and management of containerized applications.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-left: 0pt; margin-top: 5pt; text-indent: 0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 18pt; font-weight: bold;&quot;&gt;7.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 18pt;&quot;&gt;What is the benefit of using broadcast variable in spark?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 18pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-top: 5pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Broadcast variables&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;is &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;read-only&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;variable&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;cached on each machine . They can be used, for example,&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;when there is need &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;to give every node a copy of a large input dataset in an efficient manner. &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;It &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;eliminates the necessity to ship copies of a variable for &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;each &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;task, so data can be processed faster.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-left: 0pt; margin-top: 5pt; text-indent: 0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; font-weight: bold; letter-spacing: 0pt;&quot;&gt;8.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;What is the use of accumulator in spark?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 18pt; margin-bottom: 10.5pt; margin-top: 5pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Accumulator are &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;variables that are only &quot;added&quot; to through an associative operation and can therefore be efficiently supported in parallel&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;processing&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;. They &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;are used as &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;counters &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;like in Mapreduce &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;or sums&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;which spark program runs over cluster.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;pre&quot; style=&quot;background: rgb(255, 255, 255); margin-left: 0pt; margin-top: 0pt; text-indent: 0pt;&quot;&gt;&lt;span class=&quot;15&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;val acc = sc.accumulator(0)&lt;/span&gt;&lt;span class=&quot;15&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;pre&quot; style=&quot;background: rgb(255, 255, 255); margin-left: 0pt; margin-top: 0pt; text-indent: 0pt;&quot;&gt;&lt;span class=&quot;15&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;sc.parallelize(Array(1, 2, 3, 4)).foreach(x =&amp;gt; accum += x)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 align=&quot;justify&quot; style=&quot;margin-left: 0.0000pt; margin-top: 0.0000pt; mso-line-height-alt: 12pt; mso-pagination: widow-orphan; text-align: justify; text-indent: 0.0000pt; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;9&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;. &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;Is there any benefit in comparison with Spark?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;p align=&quot;justify&quot; class=&quot;p&quot; style=&quot;margin-left: 0.0000pt; margin-top: 0.0000pt; mso-line-height-alt: 12pt; mso-pagination: widow-orphan; text-align: justify; text-indent: 0.0000pt; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Yes, MapReduce is a &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;programming framework &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;used by many big data tools &amp;nbsp;when the data &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;becomes &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;bigger and bigger. Most &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;bigdata &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;tools like Pig and Hive convert their queries into Map&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;and &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Reduce phases to optimize them better&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 align=&quot;justify&quot; style=&quot;margin-left: 0.0000pt; margin-top: 0.0000pt; mso-char-indent-count: 0.0000; mso-line-height-alt: 12pt; mso-list: l1 level1 lfo1; mso-pagination: widow-orphan; mso-para-margin-left: 0.0000gd; text-align: justify; text-indent: 0.0000pt; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;10.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;What is the use of &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;Spark SQL &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;over &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;HQL and SQL?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 18pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;p align=&quot;justify&quot; class=&quot;p&quot; style=&quot;margin-left: 0.0000pt; margin-top: 0.0000pt; mso-line-height-alt: 12pt; mso-pagination: widow-orphan; text-align: justify; text-indent: 0.0000pt; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Spark SQL is a &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;part of &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;Spark Core engine that &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;performs both &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;SQL &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;as well as &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;Hive Query Language &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;using their existing &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;syntax.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;W&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;e can also join &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;SQL table and HQL table &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;using &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;Spark SQL.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0pt; margin-right: 0pt; margin-top: 5pt; padding: 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: Calibri; font-size: 16pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0pt; margin-right: 0pt; margin-top: 5pt; padding: 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 21.3333px;&quot;&gt;Hope you enjoy my blog!!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0pt; margin-right: 0pt; margin-top: 5pt; padding: 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 21.3333px;&quot;&gt;Happy Learning!!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0pt; margin-right: 0pt; margin-top: 5pt; padding: 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 21.3333px;&quot;&gt;Keep growing.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;line-height: 15.75pt; margin-bottom: 0pt; margin-right: 0pt; margin-top: 5pt; padding: 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 21.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/423183514814405496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2021/02/apache-spark-interview-questions-set-2.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/423183514814405496'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/423183514814405496'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2021/02/apache-spark-interview-questions-set-2.html' title='Apache Spark  interview questions Set 2'/><author><name>Debashree Gorai</name><uri>http://www.blogger.com/profile/12122803677168183212</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9CweYeA_s96qm9idcFbbNvwQjvPLOJhKDMEUHwQrI0dfkBF9qYdzFAnsCtO1v0LhcZcIXuXzbyP3YUXbxC24ZYFTZ9IoN2rzqjH443wByNAOrDhK5a7pAPza1kbA0ZjB3iHZy2Gqtv0nt/s72-c/gabrielle-henderson-HJckKnwCXxQ-unsplash-min.webp" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-639735985803090887</id><published>2020-10-17T21:38:00.003+05:30</published><updated>2020-10-17T21:43:47.680+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Maven Java Project"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>How to create Maven Spark project in Eclipse(Using Java)</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;Maven
is a dependency manager tool which eases programmer in managing
dependencies for multi module project.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Let&#39;s
discuss with an example how we can create maven project.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #f3f3f3; color: #ffa400; font-size: medium;&quot;&gt;Requirements:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;     &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; 1. Download Eclipse for Java EE developers from official Eclipse site&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;     &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://bit.ly/344m19e&quot;&gt;https://bit.ly/344m19e&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Download eclipse depending on system&amp;nbsp;configuration&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;632&quot; data-original-width=&quot;901&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXr2TJCK3dEPAK9G1yGPodnprz-7ngisnty1wSf7aF1k79jdIdmsa2UnIggGQLwwNXcbfmGZJTNDw6dIfQcZWHA4c_gsz0YZ7rLfsbyIKm-03qmHsov67Z3A_kRnhtet5Eyb-vHuJMdC43/w400-h280/e-min.JPG&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;
&lt;ol start=&quot;2&quot;&gt;
	&lt;li&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Download
	Apache Maven from official maven.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;a href=&quot;https://bit.ly/3lUAlHf&quot;&gt;https://bit.ly/3lUAlHf&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Download below source file for Maven&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;200&quot; data-original-width=&quot;1059&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6q0GDy_GwfXcIcFZzTNTLBQqaR7STxCT5He8Mg04tfn7_QHEPiE2LwS2UkR9FIQwR0c-ml1W7e4ogZSBLCXWHYBh755vIKpszXKWH6pntzj45vcXgxe6LmD72YE-yzQbfQ8neLpFI0npL/w640-h120/1-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #f3f3f3; color: #ffa400; font-size: medium;&quot;&gt;Creating
local repository and set path in maven settings:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now
	create a folder in desktop named&lt;b&gt; repository &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Then
	copy the local path of repository folder &lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;paste
	the path under local repository in maven settings.xml file&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now
	open eclipse &lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Click
	Windows-&amp;gt;Preferences-&amp;gt;Maven-&amp;gt;User settings-&amp;gt;click browse
	the select the path for maven settings.xml-&amp;gt;then click update
	settings&lt;/span&gt;&lt;/span&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;472&quot; data-original-width=&quot;850&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCCUTNovMHhP0sc7YACudfmgPu-fYM-4Gwf6FNTNWYA-hHxFPt8Dfj-gz_C3ZY_CjLeCzqhDMtL_fnxwBzwx8HPPGemcWsigwD-jEyrwjek227FIPr8Q-chU2LqL7XeZd5t42WmjEb5tVD/w400-h223/6-min.webp&quot; style=&quot;text-align: center;&quot; width=&quot;400&quot; /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;A
	pop up message will come then select yes .It would  automatically
	set the local repository path .&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;155&quot; data-original-width=&quot;529&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8kDlAVhM5nUaAz9pl9LpTCKL13jxqTqiqH-Te2K_irXtiMsFQYJnyYlN6pe6vaLQY990Fta844aWsQKhQ22lA51itWpu9aLHgypDSiAZv-vvDRwfwiErLCTpi9zwrBps1MK6rfgOXLS11/w400-h118/upda-min.JPG&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;472&quot; data-original-width=&quot;850&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUPQ_D-CF5a2JdB70AIFQ5fMOmVdcDe_bR5LRyrgSeddV1dqq_ORVcKTpKchDOJLFq2Rnp_IrVcYx3FPssElyWBHHGYdLxf9ioAxk5o-g_48JuPfQel-yEiFcXzFli1FwfBP4CMmbd9pEp/w400-h223/7-min.webp&quot; width=&quot;400&quot; /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #f3f3f3; color: #ffa400; font-size: medium;&quot;&gt;Creating
Maven project:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;1.&amp;nbsp; &amp;nbsp;Open eclipse then go to File-&amp;gt;New-&amp;gt;Project-&amp;gt;Maven-&amp;gt;Maven
project-&amp;gt;Click Next &lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;501&quot; data-original-width=&quot;543&quot; height=&quot;590&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh0Mq8ksdiBc1EPu1qpksQhSf26qdBtaof5exGy54lYIMRe9dKfGbCBqj86Jtf4AnuuS0hjnESS_v77dsRwXGOcqFhUxknrMoCvxwpyEygB4udN9GQ1jvkvK-s1-3TqAolSNnLNC9TvNK7/w640-h590/2-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now
select checkbox (Create a simple project)-&amp;gt;Click Next-&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;549&quot; data-original-width=&quot;619&quot; height=&quot;568&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9VTioYP9vcz5lROLKZeA4IWQFbfeKMO_jRCqMB5ytNYp61tcMXaPYGsi13ROdmiIdP9e2_ZQPy1pgMwR3YNwuK2s21op_LeIHCdH5hf76ziUQvlOtAQmSxB4J8n6lK52QS5ECXqejos6g/w640-h568/3-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now
give a name  for groupid(Maven_java_pro) and artifact id(java_pro1) -&amp;gt; click Finish&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;543&quot; data-original-width=&quot;620&quot; height=&quot;560&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ2BT2fOnXfFJCps5Zw7qo8b4Vf0UygjZIY_j6rVo_FtOkUiOO-1ekvTeJTcjQliNC8JL_FkszlpIeuxqy4qqiVIToKZs93MAMmSYAyDzbpcW20iq4VzH1i3RLmPQzHWwXINBnhKKLvrOz/w640-h560/4-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;2. Now
create a package under source folder following below screen shot .&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Right click on src/main/java -&amp;gt;New-&amp;gt;Package-&amp;gt;Name a package name (java_learning)-&amp;gt;Click Finish&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWow6kEMnS3xZfQWWjT0XF4Y7WqQWUBOknUZdllHoay4D2QQMtdwHOZLZLwLUfEPudp1yKTq2CN-6Pe7Gwc7cVMk_vWmuCqPwDMwnxB82YlI61jdn1twR0Nhzsv6VU4BSLFko8W2Mla7dH/w640-h360/8-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;484&quot; data-original-width=&quot;526&quot; height=&quot;588&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNIC8eXt3ZxqRi-aBUY28VIABkj-8_apgW3oEspFGLuJreIkoAowDO73I264OTQBlXlswApwW3VCqYViOZLLxhQjbso846F6QfgaCiqG8DjfcSTQSwYBFC8Ku2T_7wFaBdc-2gblmgD21_/w640-h588/9-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;3. Now create a java class under java_learning pacakge.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Right click on java_learning&amp;nbsp; -&amp;gt;New-&amp;gt;Class-&amp;gt;Name a class name (Mypro)-&amp;gt;Click Finish&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFyfrlX3j5xczx1X9BxYtGcR4_F_wpKALrvftv3aOy8jmfnoOpdWTBDKA-vccTo-a9Df3kX2ZBG8ralxoTndGkQ0fGYFBGKVWJRi1771HmQJWaj9pi79NzbJy1YmHPEJvjZZNy9y-eUjAz/w640-h360/10-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;631&quot; data-original-width=&quot;542&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH5-Fv6WG3OJjMG_A5nQCYLHkGzDy_GrjBSBJxc1U1eoTZ2qOXtjim7QMXh9TEG0y1jmsKQ8k82No3u0QCbLnYd8fQTM7ddqawlA7F3qC-gzEGtqGeB_vOjh6CHa3oOE9TpqGxQbjSvW4-/w550-h640/11-min.webp&quot; width=&quot;550&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;4.&amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;Now update project using maven update&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Right click on project -&amp;gt;Maven-&amp;gt;Update project&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9tiWSqaETgjCH7x3wFageoWTlNa3Y1PaZWnI3ULw4EnZx4WMdpoTUHWlLJHcnRuiPXKTxKiSalU-k0iIsvwsiDNYURJ8g5E11iBOEJGPNwPCk5G8Ot_DkfOz42dpzpbZYg0z-ZeODblaL/w640-h360/20-min.webp&quot; style=&quot;text-align: left;&quot; width=&quot;640&quot; /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #f3f3f3; color: #ffa400;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #f3f3f3; color: #ffa400;&quot;&gt;&amp;nbsp;Now Let&#39;s see how maven works as dependency manager.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;If&amp;nbsp; I write Spark Program in java then I am getting error .&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;232&quot; data-original-width=&quot;397&quot; height=&quot;374&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghoFdTRnXPZ_F1ZXM89hOHQPyLKKmAhCG-YFRbGw2AVRZdNH64t-x0UbIkuB0oPr_GyIjsrw87YXGTpI6LdXvD6oNzdNQYhD8QJJRo6rE7Z9Ki9sXzouO1AbUDdFXwgq4ubvGMW0bHcA0X/w640-h374/16-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQz2cGCdlNp8Onz2WS8KDlt7P1AwYIoQGvKma_vx4epwC0SUzQpD_U6g9FfIg1VP32kwIl0REQgmty_qBka1EH9FKilH-Y7pDHoNR1V55DzxG2sxLFLE24vhuqrvaJ3P1DfT6LlGIvDmU8/w640-h360/17-min.webp&quot; style=&quot;text-align: left;&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now I shall add spark dependency depending on spark version used in pom.xml file.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;169&quot; data-original-width=&quot;407&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5XQhETdqzD0bGrUs00KlqrR5sKbHCVQIfXme8dimPXRm_xsd5e4PmtG5Zl3v_W1UPVQF-x_19vqWNhS9Mx4xLm9qDXRsoYzoL7kBjnbDh8Hg-PybT-Y3rbwHAvRylyI5_AquneMyo11t0/w400-h166/12-min.webp&quot; style=&quot;text-align: left;&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Go to maven repository official site.&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;209&quot; data-original-width=&quot;731&quot; height=&quot;114&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9aPgoN8fEQOmQwbZ-PClIKLe_7Da2ZFQdXHvnrl6eaKQ8VS7ZAKbeq701BV2Xl1lmNR2Fx_XhX94YZjMSbE3QoSnJFoh7FV1-eS6vAUBJodHVNk53AMwLlBOa3Q8zsPxxDuvFcBHwmkZ1/w400-h114/13-min.webp&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;582&quot; data-original-width=&quot;796&quot; height=&quot;468&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRHyclw2m-J5lrl2gp05KjM0QgudOqlfLaf4ypsH3e3L7XADEogQiwr0dBCHg_OFLD40FUBSHKpwGP0GZ89IcaHqwYTuZjdx9Q7PbFSjWYxx8hU98URcKzVIoGBtaZZXbLs_HGsl052pjN/w640-h468/14-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then, add spark dependency in pom.xml file&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;377&quot; data-original-width=&quot;710&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzenXtJLp3giTLJwb3fK0170wFAnT4E2y_OHgWBvHYDZ3F3ljM_FC7z6f6Kl_ti2QcbRcnXlonT3RSmVwM2yH41LKhUePXKRUury8yMqt1hMVk4G4fHUHBLR-O2k0IAcG1LAzoq_D8k98F/w640-h340/15-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Once Pom.xml file gets saved after adding changes ,This mavenized project starts updating .Thus maven will automatically start downloading&amp;nbsp; Spark libraries in repository folder.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now we can resolved the error occurred due to Spark class.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq-z2cjb2A4TMtSI38ZbRYQkOZkKzONedM7F8zSrIICUrakDiknk7bSaVopCC2adcwwT75hDJKV6UwWvOlOW6cbbDUnsckgzRcqhE6ME_Gg9xKh01EtYnhug0YKdiagjKmBjTNUtryXIR3/w640-h360/18-min.webp&quot; style=&quot;text-align: center;&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;290&quot; data-original-width=&quot;560&quot; height=&quot;332&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCL3bRYktBCT0zTVpQLMqx2mT_cZAX73bdYxrydhKm16AKob987eAnDaGSCV1MQRaf8FLb1yaCp2CU8_F7YCcWgc_2-VnzNSMv3lt0RdyeC9LCE9ij1xBfgEnKBJ2yckMSpf5Vw0emo0QX/w640-h332/19-min.webp&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now You get to know about creating spark project&amp;nbsp; using Maven.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Try more!!&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Happy Learning !!&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Debashree&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;ol start=&quot;2&quot;&gt;
	&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt; 
	&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;/p&gt;
&lt;/ol&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/639735985803090887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/10/how-to-create-maven-spark-project-in-Eclipse-using-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/639735985803090887'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/639735985803090887'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/10/how-to-create-maven-spark-project-in-Eclipse-using-java.html' title='How to create Maven Spark project in Eclipse(Using Java)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXr2TJCK3dEPAK9G1yGPodnprz-7ngisnty1wSf7aF1k79jdIdmsa2UnIggGQLwwNXcbfmGZJTNDw6dIfQcZWHA4c_gsz0YZ7rLfsbyIKm-03qmHsov67Z3A_kRnhtet5Eyb-vHuJMdC43/s72-w400-h280-c/e-min.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-3221758146177936942</id><published>2020-09-02T10:15:00.010+05:30</published><updated>2020-10-19T17:16:05.040+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><title type='text'> Must Know Big Data Interview questions and answers</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;I
am  providing  you some of very important questions that you will be 
facing  as Data Engineer ,Bigdata Developer, Hadoop Developer etc.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1367&quot; data-original-width=&quot;2048&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilv2WNpWG8UjSAtcu-LcC09vbOO1AwtK3Llbl15B-nEA2sGX5glHMYmb4yF2aLujfLcJIZf6OnehV0QOlI0dVRkSKLFdkaWY9WuhK-mv8yLVhItqp6hDyRBx8z4t_wGdHorLdKpH2pgV93/s320/scott-graham-5fNmWej4tAA-unsplash.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;ol&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;         
	&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/p&gt;
	&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;What
	is your role in your Bigdata/Spark&amp;nbsp; project?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Here,
You need to answer what is the exact role in your project .What  task
you basically performed and worked  as a developer or data engineer or data scientist role..&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&quot; style=&quot;font-size: medium;&quot;&gt;You
could mention also your development&amp;nbsp;works if you did any.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Your daily activities regarding maintenance of server,jobs scheduling ,jobs development etc are to be discussed.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol start=&quot;2&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;Which
	setup you are using ? is it on-premise setup or it&#39;s in cloud?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;You
must be having idea in which platform you are working .Is it on
premise or working on cloud setup like Amazon Web service
,Microsoft Azure, Google Cloud etc.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol start=&quot;3&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;Configuration
	of each node in  cluster in which you are working with?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot; style=&quot;font-size: medium;&quot;&gt;What
is configuration&amp;nbsp;set up present in your cluster in which you are
working on .&lt;/span&gt;&lt;span face=&quot;&quot; style=&quot;font-size: large;&quot;&gt;Your CPU core details and memory details of node etc.&lt;/span&gt;&lt;/p&gt;
&lt;ol start=&quot;4&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;How
	much data you have worked till now?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;What
is the data size or file size you are dealing daily .&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol start=&quot;5&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;Any
	challenges  that you have faced in your big data project and  how
	did you overcome that?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;What
are the challenges&amp;nbsp;you have faced while working on project . You can
mention any two or more if any error faced and how you optimize or eradicate that&amp;nbsp; error occurred.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol start=&quot;6&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;Did
	you ever face any performance challenges with your spark job? how
	did you optimize that?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;

&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;While
 deploying spark jobs there are performance challenges you might
face.You have mention those challenges and optimization done on that.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol start=&quot;7&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;Big
	data distribution in which you are working currently?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt; &lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Big
data distribution  in which you are  using in project.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol start=&quot;8&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;What
	is  the  cluster size in which you are working?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Cluster
	size of your set up . Data nodes&amp;nbsp;and Name nodes size and details etc.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;Use&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&quot; style=&quot;color: #ffa400;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;case
like total file size given and you might be asked about nodes &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;configuration&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;needed for you cluster ?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;If
	worked in Spark project the what is the deployment configuration
	used ?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;You
	have to prepare for Spark submit configuration&amp;nbsp;used in your
	deployment  like &lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
  
  
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Executors
	and its memory , cluster like mesos ,yarn etc used .&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I
	hope this would benefit you a lot .Now you won&#39;t get surprised to
	face these questions.Please prepare well these general question
	which you are bound to answer if you are  appearing for Bigdata
	Developer /Hadoop Developer/Spark Developer/Data Engineer / Data
	Scientist  Interview.Please share this as much as possible so that
	other can also prepare well for it.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;For
more updates please follow Itechshree blogs.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Happy learning!!&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/3221758146177936942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/09/must-know-big-data-interview-questions.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/3221758146177936942'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/3221758146177936942'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/09/must-know-big-data-interview-questions.html' title=' Must Know Big Data Interview questions and answers'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilv2WNpWG8UjSAtcu-LcC09vbOO1AwtK3Llbl15B-nEA2sGX5glHMYmb4yF2aLujfLcJIZf6OnehV0QOlI0dVRkSKLFdkaWY9WuhK-mv8yLVhItqp6hDyRBx8z4t_wGdHorLdKpH2pgV93/s72-c/scott-graham-5fNmWej4tAA-unsplash.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-8486777464728675694</id><published>2020-08-29T14:38:00.010+05:30</published><updated>2020-09-29T10:40:26.480+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Hive"/><title type='text'>Hive Compression Codecs with example</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Hive
Compression is one of the optimization technique available in Apache&amp;nbsp;Hive.It is preferable for high data intensive workload where network 
bandwidth,I/O operations takes more time to complete.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;In
this blog I shall demonstrate  how we can  apply compression in Hive 
by showing you  a example. Hope It would  help you a lot to apply in
your application .&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;There
are different compression  Codec method available to you depending on
your hadoop version installed in your machine.You can use hive set
property to display the value of  hiveconf or Hadoop configuration
values. These codecs  will be displayed as comma separated form.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree: io.compression.codecs&quot; border=&quot;0&quot; data-original-height=&quot;57&quot; data-original-width=&quot;251&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg21iyZ2M_zjMhfLSE8DsW8iD4EdxqxSpW5hKpTDpniqWnVzRDjyuFRH5bpWVEkbtTJJty6cSV18ylKLQfdiyCfCLsRU7xhgS5W8HchxrryjkzRu0O9Q8j8ozca50nAF1lgWx7kBmM-jMGP/s16000/1.PNG&quot; title=&quot;ITechShree: io.compression.codecs&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Here
I am ,mentioning out some of them.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;org.apache.hadoop.io.compress.GzipCodec&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;org.apache.hadoop.io.compress.DefaultCodec
	&lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;org.apache.hadoop.io.compress.BZip2Codec
	&lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;org.apache.hadoop.io.compress.SnappyCodec
	&lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot; style=&quot;font-size: large;&quot;&gt;&lt;span face=&quot;&quot; style=&quot;font-size: large;&quot;&gt;Lets
describe how to enable comression codec in Hive.&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;There
are two places where  we can  enable codec in Hive system&amp;nbsp;.One is
through compression on intermediate process  and  another one is
applying  compression while writing  final output to HDFS location&amp;nbsp;using Hive query.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;color: #ffa400; font-family: calibri, sans-serif; font-size: 16pt;&quot;&gt;Compression
on intermediate process:&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;When
we query data using HiveQL then it  gets converted to series of Map
reduce jobs by Hive engine.Intermediate data refreshes&amp;nbsp;&amp;nbsp;the output from
previous job  which will be fed as input to the next job.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;We
can enable on intermediate data by using set  feature in Hive session
or by we can set properties in &lt;b&gt;hive_site.xml&lt;/b&gt; which will be having permanent&amp;nbsp;effect.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;hive&amp;gt;set
hive.exec.compress.intermediate=true; &lt;br /&gt;hive&amp;gt;set
hive.intermediate.compression.codec=org.apache.hadoop.io.compress.BZip2Codec;
 &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;hive&amp;gt;set
hive.intermediate.compression.type=BLOCK;  &lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Using
set feature you can apply compression codec on single query depending
on your choice.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;name&amp;gt;hive.exec.compress.intermediate&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;name&amp;gt;hive.intermediate.compression.codec&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;value&amp;gt;org.apache.hadoop.io.compress.BZip2Codec
value&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;description/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;name&amp;gt;hive.intermediate.compression.type&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;value&amp;gt;BLOCK&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;description/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;b style=&quot;font-size: 16pt;&quot;&gt;Compression
while writing  final output to HDFS &lt;/b&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;&lt;b&gt;location&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;using Hive query:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;We
can enable it by using set feature  as well  or setting  properties
in hive-site.xml and &lt;b&gt;mapred-site.xml&lt;/b&gt; files.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;hive&amp;gt;
set hive.exec.compress.output=true;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;hive&amp;gt;
set mapreduce.output.fileoutputformat.compress=true;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;hive&amp;gt;
set
mapreduce.output.fileoutputformat.compress.codec=org.apache.hadoop.io.compress.SnappyCodec;
 &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;hive&amp;gt;
set mapreduce.output.fileoutputformat.compress.type=BLOCK;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;or&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Mapred-site.xml&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;property&amp;gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;name&amp;gt;mapreduce.output.fileoutputformat.compress&amp;lt;/name&amp;gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;/property&amp;gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;name&amp;gt;mapreduce.output.fileoutputformat.compress.codec
&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;org.apache.hadoop.io.compress.SnappyCodec&amp;lt;/value&amp;gt; &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;/property&amp;gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;name&amp;gt;mapreduce.output.fileoutputformat.compress.type&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;BLOCK&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt; &lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;/property&amp;gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Hive-site.xml&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt; &lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;   
&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;name&amp;gt;hive.exec.compress.output&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;    &lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;   &lt;span face=&quot;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: small;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;Let&#39;s
 look  at the  example where I have used Compression Codec in Hive&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Here
I have used &lt;span style=&quot;color: #2c2f34;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;gzip&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
 codec.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Create
a table using following command and load  data in table.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;font-style: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #2c2f34;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;create
table Deb_emp(empid int,ename String,dept String ) row format
delimited fields terminated by &#39;\t&#39; lines terminated by &#39;\n&#39;;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;font-style: normal; margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #2c2f34;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;load
data local inpath &#39;/home/hodoop/employee.txt&#39; into table Deb_emp; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #2c2f34;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hive create  table command&quot; border=&quot;0&quot; data-original-height=&quot;87&quot; data-original-width=&quot;953&quot; height=&quot;58&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcljHObhW1ZMCWO8WqFA-LuFU8cD8t34zIxbxLt_-xZ7KmAgCDSotGz0PBBzRYu4TliaTpqzamWhY41lfpLfUjL4MCpz5q-jp_5UnK-rTONj72zpa_qQRky9J9CAUgrMXD_fCBMURYAhT9/w640-h58/create+table.PNG&quot; title=&quot;ITechShree:Hive create  table command&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hive load command&quot; border=&quot;0&quot; data-original-height=&quot;506&quot; data-original-width=&quot;1057&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVih-DDVFkbPrhARF1sA5EXiM6aAp3qspX1786w_P-A-Kh78tXpYrJQ2lyby6UuCbcC_1pRVjrprHgmOnTDUbBnNozdXwrzlKMcGnr5kNmglkX4ugiRuTDtie2Fhs2286fisxfBaJb26p3/w640-h306/insert+data.PNG&quot; title=&quot;ITechShree:Hive load command&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Verify
the data&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc; font-family: calibri, sans-serif;&quot;&gt;select
* from Deb_emp;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hive select command&quot; border=&quot;0&quot; data-original-height=&quot;140&quot; data-original-width=&quot;638&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzXqLANM3GTnbm6yusHxijQuq7SdLoN-EFGB0EVeYTpXRuwMnsPYG9aMUuFVZlf5d7zolpNGAQCdMDf8q7AFJZ8ynOF6vrRsJcg3Z7Nfsvl8bhIa56Or8B5rYl5HCu9pCid02L9CMu1Bzi/w640-h140/select.PNG&quot; title=&quot;ITechShree:Hive select command&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Setting
properties in Hive for compression.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt; &lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;set
hive.exec.compress.output=true;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt; &lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;set
mapreduce.output.fileoutputformat.compress=true;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt; &lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;set
mapreduce.output.fileoutputformat.compress.codec=&lt;span style=&quot;color: #2c2f34;&quot;&gt;org.apache.hadoop.io.compress.GzipCodec;&lt;/span&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;




&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;set
hive.exec.compress.intermediate=true;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hive Set Command for Compression codec&quot; border=&quot;0&quot; data-original-height=&quot;134&quot; data-original-width=&quot;911&quot; height=&quot;94&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPOBIlyMeA9hsP8YL2zbPHHo1ZEPf0J8KUH1TbNhjc8d8GPPMddm-IOzr4Mb15d1s1lkHAyfB7Ue7LliFe2mReP7DwZOHduM-YfNwYrqcw3h_4zlkgehuqYlutHoRHQf5OGmKGyE9aIHzH/w640-h94/set+pro.PNG&quot; title=&quot;ITechShree:Hive Set Command for Compression codec&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Compressed
table creation &lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;CREATE
TABLE compressed_emp ROW FORMAT DELIMITED FIELDS TERMINATED BY &#39;\t&#39;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;AS
SELECT * from Deb_emp; &lt;/b&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;


&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hive command to create compressed table&quot; border=&quot;0&quot; data-original-height=&quot;467&quot; data-original-width=&quot;1118&quot; height=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWJSxV2D600HRyhoFkikVaSRw_WCa2-7s3J91WXzsaFLCPgUAe0H_fFlHfUqWHW-P7DqzyJa1NHKzoWhkLU_LrQqDzvExsm7kOV8aJL6b0t4QZO-CDdzhkkpnsWBqoO-einXt6zZMbail6/w640-h267/compress1.PNG&quot; title=&quot;ITechShree:Hive command to create compressed table&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hive compression table creation&quot; border=&quot;0&quot; data-original-height=&quot;165&quot; data-original-width=&quot;823&quot; height=&quot;128&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMhHwLKQNo7VyF-s_BZS0yfMRBE5n8g_WeOSVAYBQru5HJ9GAkrn0MogNb-o_Ysj0uKjMSSeLDVlf0l5TlzwJ_cQRpK-Rsfmpsw_HUcCM9cJ_l3aRXXDlTsa_1vBnbvTqnw57Bh9nlFo-L/w640-h128/compress2.PNG&quot; title=&quot;ITechShree:Hive compression table creation&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Thus
we can generate  the output file  in gzipped format and we can
display the contents of this file with &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;dfs
-text &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;command.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;img alt=&quot;ITechShree:Hive Command to  check file in gzipped format&quot; border=&quot;0&quot; data-original-height=&quot;215&quot; data-original-width=&quot;996&quot; height=&quot;138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho45KMN35UzP7R9pwI-iVwWnn33DQnFBiqrGplm5UkI0pxx3io_dn2Qa4iNm-H4TZUlB1BrQb4-ew6A_tvFTUWlUq7Cd0fkEltBYy_vO5_ivNPorCM6MNKQElTZ1YcC0U96Q-DLFUlv9v8/w640-h138/file+output.PNG&quot; title=&quot;ITechShree:Hive Command to  check file in gzipped format&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;If you really get benefited please share as much as possible with others.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;HAPPY Learning!!&lt;/div&gt;&lt;div&gt;See you in next blog!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/8486777464728675694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/08/hive-compression-codecs-with-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8486777464728675694'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8486777464728675694'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/08/hive-compression-codecs-with-example.html' title='Hive Compression Codecs with example'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg21iyZ2M_zjMhfLSE8DsW8iD4EdxqxSpW5hKpTDpniqWnVzRDjyuFRH5bpWVEkbtTJJty6cSV18ylKLQfdiyCfCLsRU7xhgS5W8HchxrryjkzRu0O9Q8j8ozca50nAF1lgWx7kBmM-jMGP/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-4201970222091686403</id><published>2020-08-27T18:22:00.001+05:30</published><updated>2020-09-29T10:39:31.816+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>CSV File reading using Java and Scala</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;CSV
file reading is one of the important technique used frequently in
Data analytics Programming.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Here
I am sharing my work which may help you.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Here
we have one csv file stored in the following path where first column
is date field when employee was registered.I am going to change the
date format by reading this file.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;ol&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;/home/hadoop_local/employee.csv&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;eid,
	ename, phone_no, loc&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;&quot;Mon,
	26 Nov 2019 09:34:11 +0000&quot;,&quot;1&quot;, surya, 9373365498,
	DEL&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;&quot;Tue,
	26 Dec 2018 09:34:11 +0000&quot;,2, animesh, 9365845214, KOL&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;&quot;Mon,
	20 May 2018 09:34:11 +0000&amp;nbsp;&quot;,3, sameer, SC,
	2010569823,BANG&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;&quot;Wed,
	18 Jun 2018 09:34:11 +0000&quot;,4, karthik, TP, 9010528694,KOL&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/ol&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: large;&quot;&gt;&lt;b&gt;Using
Java Programming:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.io.BufferedReader;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.io.FileNotFoundException;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.io.FileReader;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.io.IOException;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.text.ParseException;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.text.SimpleDateFormat;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.util.Date;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.util.Locale;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;public
class CSVreadClass {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;public
static void main(String args[]){&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;String
csvFileStored = &quot;\home\hadoop_local\employee.csv&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;BufferedReader
br_var = null;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;String
line = &quot;&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;String
cvsSplitByOperator = &quot;,&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Date
t=new Date();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;try
{&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;br
= new BufferedReader(new FileReader(csvFileStored));&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;while
((line = br_var.readLine()) != null) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;//
use comma as separator&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;String[]
st= line.split(cvsSplitByOperator);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;st[0]=st[0].replaceAll(&quot;\&quot;&quot;,&quot;&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;System.out.println(st[0]);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;SimpleDateFormat
format_time = new SimpleDateFormat(&quot;E, dd MMM yyyy HH:mm:ss Z&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;try
{&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;time
= format_time.parse(st[0]);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}
catch (ParseException e) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;//
TODO Auto-generated catch block&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;ft.applyPattern(&quot;mm-dd-yyyy
hh:mm:ss a&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;System.out.println(format_time
.format(time));&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}
catch (FileNotFoundException er) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;er.printStackTrace();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}
catch (IOException e) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}
finally {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;if
(br_var != null) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;try
{&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;br_var.close();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}
catch (IOException e) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;System.out.println(&quot;Completed&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: large;&quot;&gt;&lt;b&gt;Using
Scala Programming:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.time.LocalDate&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.time.LocalDateTime&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.time.format.DateTimeFormatter&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.time.format.DateTimeFormatter&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;object
CSVDemo extends App {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;    
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;    &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;val
buffer = io.Source.fromFile(&quot;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;\home\hadoop_local\employee.csv&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;    &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;for
(line &amp;lt;- buffer.getLines) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;        &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;val
columns = line.split(&quot;,&quot;).map(_.trim)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;val
dt=columns(0);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;        &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;//
do whatever you want with the columns attributes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;try
{&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;   &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;val
date= LocalDateTime.parse(dt, DateTimeFormatter.ofPattern(&quot;E, dd
MMM yyyy HH:mm:ss Z&quot;))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;  
&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;println(date.format(DateTimeFormatter.ofPattern(&quot;mm-dd-yyyy
hh:mm:ss a&quot;)))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt; 
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;    &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;  &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;print(&quot;Completed&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;    &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;buffer.close&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;Happy Coding!!&lt;p&gt;&lt;/p&gt;&lt;div&gt;See you in next blog!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/4201970222091686403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/08/csv-file-reading-using-java-and-scala.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/4201970222091686403'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/4201970222091686403'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/08/csv-file-reading-using-java-and-scala.html' title='CSV File reading using Java and Scala'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-2012577135765726766</id><published>2020-08-10T15:55:00.002+05:30</published><updated>2020-09-29T10:39:06.786+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Hive"/><title type='text'>Hive Partitioning with Example</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;I
am sharing my knowledge    about hive partitioning and will describe 
you with example .Hope you all get benefited&amp;nbsp;from this.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;274&quot; data-original-width=&quot;257&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1DxRNesXA1fpsVv2ajp9ZrMxmNIDHT7uRF2NrHfaVSC8uTiRILrygekUQgMt8qfRlVwyR1fRFonrZke3j2NqCYp2BIP0DGEjSldu9aWw1YWQLr8vTK7oxLIyLzTI1LOdnY_MXUOntPMK7/s0/hive.PNG&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #333333; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #333333; font-size: large;&quot;&gt;Partitioning is a way
of organizing&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #333333; font-size: large;&quot;&gt;&amp;nbsp;a table into different parts (partitions) based on the
values of particular columns (partitioned column).It is helpful when
the table has one or more partition keys which are the basic elements
to identify the particular partition.&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;When
large amount of data stored in HDFS  and we are going to query  over
the    data set from HDFS then it slows down the query performance
.&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Thus
it  is recommended  to create partitions in tables. Apache Hive helps
us   by implementing  partitions by its automatic partition scheme at
the time of table creation.It  is a optimization technique that 
improves performance in Hive.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #333333; font-size: large;&quot;&gt;Hive
supports two types of partitioning&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;1.Static
Partitioning&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;2.Dynamic
Partitioning&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;In
static partitioning we can directly load data into partitioned table
.However,Dynamic&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #333333; font-size: large;&quot;&gt;partitioning&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;is handled by hive itself.Hive does not
have idea about raw file data.Hence,It first gets loaded into a
temporary table then by use of temporary table we have to create&amp;nbsp;partitioned table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;Static
Partitioning:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;If
we want to use static partition the we need to the set property&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-style: normal;&quot;&gt;&lt;b&gt;set
hive.mapred.mode = strict&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;This
property is  set by default in hive-site.xml .Static partition is
preferable while loading big files data to hive table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;Input
data:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;/home/hadoop/table.csv&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; font-style: normal; font-weight: normal; line-height: 0.17in; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;&quot;&gt;
	&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;eid,
	ename, phone_no, loc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; font-style: normal; font-weight: normal; line-height: 0.17in; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;&quot;&gt;
	&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;1,
	surya, 9373365498, DEL&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; font-style: normal; font-weight: normal; line-height: 0.17in; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;&quot;&gt;
	&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;2,
	animesh, 9365845214, KOL&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; font-style: normal; font-weight: normal; line-height: 0.17in; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;&quot;&gt;
	&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;3,
	sameer, SC, 2010569823,BANG&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; font-style: normal; font-weight: normal; line-height: 0.17in; margin-bottom: 0in; orphans: 2; padding: 0in; widows: 2;&quot;&gt;
	&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;4,
	karthik, TP, 9010528694,KOL&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/ol&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;First
of all create an external table or managed table:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;CREATE
EXTERNAL TABLE employee( eid int,ename String,phone_no bigint)
PARTITIONED BY  (loc String) ROW FORMAT DELIMITED &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;		FIELDS
TERMINATED BY &#39;,&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;		LINES
TERMINATED BY &#39;\n&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; color: #333333;&quot;&gt;      
 &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;STORED AS TEXTFILE;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Then load data over partitioned table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;LOAD
DATA  LOCAL INPATH &#39;/home/hadoop/table.csv&#39; OVERWRITE INTO TABLE
employee PARTITION (loc=&#39;KOL&#39;)&lt;/span&gt;&lt;/span&gt; ;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Verify
data by using following query&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;SELECT
* from employee where loc =&#39;KOL&#39;;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;Dynamic &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;Partitioning&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Hive
is be default enabled dynamic partitioning.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;If
not then we need to set property &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;set
hive.exec.dynamic.partition=true;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;By
default dynamic partitioning&amp;nbsp;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;is strict means we need   to do one level of STATIC partitioning&lt;/span&gt;&lt;/span&gt;
before doing hive dynamic partitions.hence we need to set it nonstrict
mode to enable full partitioning.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;set
hive.exec.dynamic.partition.mode=nonstrict;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;
&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Number
of partitions allowed by default for single node is 100 and cluster
is 1000&lt;/span&gt;&lt;/span&gt; so
if your hive runs  in pseudo distributed mode with single node and
your partitioned column cardinality&amp;nbsp;is more than 100,
t&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;han
you have to set the below hive property as well.&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;set
hive.exec.max.dynamic.partitions.pernode=1000;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;first
of all create a temporary table of employee with all of its attributes.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;CREATE
TEMPORARY TABLE employee(ename String, eid int,loc String,phone_no
bigint) ROW FORMAT DELIMITED &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;		FIELDS
TERMINATED BY &#39;,&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;		LINES
TERMINATED BY &#39;\n&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; color: #333333;&quot;&gt;      
 &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;STORED AS TEXTFILE;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;then
,load data into employee table&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;LOAD
DATA LOCAL INPATH &#39;/home/hadoop/table.csv&#39; INTO TABLE employee;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now
create partition table&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; color: #333333;&quot;&gt;
&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;CREATE TABLE part(ename
String,eid int,phone_no bigint)PARTITIONED BY (loc String)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;	STORED
AS SEQUENCEFILE;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;then
load data into partitioned table &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;INSERT
INTO TABLE part PARTITION (loc) SELECT ename,eid,phone_no,loc FROM
employee;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Verify
data as well&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;SELECT
ename,phone_no FROM part WHERE loc=&#39;kolkata&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;To
check no of partitions&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;show
partitions part;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;To
describe employee table in detail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;describe
formatted employee;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: white; font-size: medium;&quot;&gt;Happy learning !!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: white; font-size: medium;&quot;&gt;Debashree&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: white; font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/2012577135765726766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/08/hive-partitioning-with-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/2012577135765726766'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/2012577135765726766'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/08/hive-partitioning-with-example.html' title='Hive Partitioning with Example'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1DxRNesXA1fpsVv2ajp9ZrMxmNIDHT7uRF2NrHfaVSC8uTiRILrygekUQgMt8qfRlVwyR1fRFonrZke3j2NqCYp2BIP0DGEjSldu9aWw1YWQLr8vTK7oxLIyLzTI1LOdnY_MXUOntPMK7/s72-c/hive.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-4257346008595219841</id><published>2020-07-16T12:11:00.005+05:30</published><updated>2020-09-29T10:38:26.289+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Spark"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><title type='text'>Spark Core interview questions Set 1</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1367&quot; data-original-width=&quot;2048&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9JxWK6_0JI_CsR-USJZjmvro6LTAIrO1sRTQtyiLZAGmsUlTRCAgQS2nyLZd64Ra9l8fqpyb6apartiIO9DLMsB4Qd7qeBWZXUgKxcorjpF2OIFPVxMzSnLkql4CoEbqdtR1osH5g9dAQ/s320/scott-graham-5fNmWej4tAA-unsplash.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;1.What
is spark good for? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;Spark
,a data processing engine used in wide range of platforms including
spark ETL batches ,machine learning process, streaming application
where data comes from IOT, sensor etc.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #ffa400; font-size: 16pt;&quot;&gt;&lt;b&gt;2.What
is lazy evaluation in spark?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: medium;&quot;&gt;It
means execution&amp;nbsp;of spark application won&#39;t happen until action is
triggered.When transformations are called in RDD,it doesn&#39;t execute
immediately rather it maintains a list of operations&amp;nbsp;through DAG.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;It
helps spark in processing a large amount of data instead of doing
computation on each element of data.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #579d1c; font-size: large;&quot;&gt;Val&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;
no_of_occurence_spark=wikipedia.&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #6fa8dc; font-size: large;&quot;&gt;filter&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;(_.&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #6fa8dc; font-size: large;&quot;&gt;contains&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;(&quot;spark&quot;)).&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #6fa8dc; font-size: large;&quot;&gt;take&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;(5)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;here
immediate RDD do not execute immediately and spark execution process
will evaluate   5 elements of  filtered RDD and stops.This is  a  way
where spark processing occurs through lazy evaluation.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #ffa400; font-size: 16pt;&quot;&gt;&lt;b&gt;3.What
is the use of the Spark engine?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Spark
engine is responsible for planning, distributing, and monitoring data
applications in a cluster. &lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;color: #ffa400; font-family: calibri, sans-serif; font-size: 16pt;&quot;&gt;4.What
is RDD Lineage?&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Spark
does not replicate data while processing rather it maintains history
of operations using DAG called RDD lineage which helps to reconstruct
 lost RDD. We can obtain and study lineage graph by using
RDD.&lt;span style=&quot;color: #6fa8dc;&quot;&gt;toDebugString&lt;/span&gt; .&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;color: #ffa400; font-family: calibri, sans-serif; font-size: 16pt;&quot;&gt;5.What
is SparkContext?&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;It
 was introduced since Spark 1.x and acted as main entry point of
spark program before SparkSession introduced in Spark 2.0. It placed
at first line of program and creates connection with Spark cluster.
It is used to create broadcast variables , accumulators , RDD and run
jobs and create spark services.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;Default
object of SaprkContext available as sc in spark console .&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #579d1c; font-size: large;&quot;&gt;Val&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;
rdd=sc.&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #6699cc; font-size: large;&quot;&gt;textFile&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;(&quot;Fromfile.txt&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;Creating&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;SparkContext using programming&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;:-&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;background-color: #fff2cc; font-size: large;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;import&lt;/span&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;org.apache.spark.SparkContext&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;background-color: #fff2cc; font-size: large;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;import&lt;/span&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;org.apache.spark.SparkContext._&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;import&lt;/span&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;org.apache.spark.SparkConf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;val&lt;/span&gt;
conf = new &lt;span style=&quot;color: #6fa8dc;&quot;&gt;SparkConf&lt;/span&gt;().&lt;span style=&quot;color: #3d85c6;&quot;&gt;setAppName&lt;/span&gt;(&quot;Spark Application&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;    &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;val&lt;/span&gt;
sc = new &lt;span style=&quot;color: #6fa8dc;&quot;&gt;SparkContext&lt;/span&gt;(conf)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;SparkContext
constructor has been deprecated in Spark 2.0 hence, it recommends  to
use a static method getOrCreate() to create SparkContext&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;background-color: #fff2cc; font-size: large;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;SparkContext&lt;/span&gt;.&lt;span style=&quot;color: #93c47d;&quot;&gt;getOrCreate&lt;/span&gt;(SparkConf)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;Sparkcontext
instance can run only  one instance per single jvm&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;color: #ffa400; font-family: calibri, sans-serif; font-size: 16pt;&quot;&gt;6.What
is  Spark Executor?&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: medium;&quot;&gt;When
spark application is submitted in spark cluster ,it  launches
executors in worker nodes .Executors&amp;nbsp;are the Spark processes which
runs the task and sends result to the driver.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;&lt;b&gt;7.Define
broadcast variables?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;Broadcast
variables acts as  read-only variable cached in all executors. It
reduecs network I/O overhead as each executor having local of of it.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;In
streaming application ,when one lookup dataset has to be used across
multiple executors for each event, the broadcast variable comes into
picture which in turn reduces network I/O in costly operations.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;The
broadcast variable is a wrapper around variable , and its value can
be accessed .The code depicts below:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;scala&amp;gt;
val broadcast_Var = sc.broadcast(Array(1, 2, 3,4,5))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;broadcast_Var
r: org.apache.spark.broadcast.Broadcast[Array[Int]] = Broadcast(0)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;background-color: #fff2cc; font-size: large;&quot;&gt;scala&amp;gt;
broadcast_Var.value&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;res0:
Array[Int] = Array(1, 2, 3,4,5)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: medium;&quot;&gt;8.Define
accumulators?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Accumulators
are variables that can  only be “added” to through an associative
operation in parallel. It is used to  implement counters or sums .&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;scala&amp;gt;
val accum_var = sc.longAccumulator(&quot;My Accumulator variable&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;accum_var:
org.apache.spark.util.LongAccumulator = LongAccumulator(id: 0, name:
Some(My Accumulator variable), value: 0)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;background-color: #fff2cc; font-size: large;&quot;&gt;scala&amp;gt;
sc.parallelize(Array(1, 2)).foreach(x =&amp;gt; accum_var.add(x))&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;INFO
SparkContext: Tasks finished in 0.111106 s&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;background-color: #fff2cc; font-size: large;&quot;&gt;scala&amp;gt;
accum_var.value&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;res2:
Long = 3&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;color: #ffa400; font-family: calibri, sans-serif; font-size: 16pt;&quot;&gt;9.Define
RDD Persistence?&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Spark
provides the feature to persist RDD in memory across operations.I
does by calling persist() and cache() method on it.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;There are different&amp;nbsp;storage level available to store persisted RDD. However
,cache() method is used only to store RDD in memory.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;MEMORY_ONLY&lt;/b&gt;
&lt;/span&gt;-  This is the default storage level. RDD is stored as  deserialized
Java objects in the JVM. doesn&#39;t fit in memory, some partitions will
not be cached and recomputed each time they&#39;re needed. &lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;MEMORY_AND_DISK&lt;/b&gt;&lt;/span&gt;
- It is similar to MEMORY_ONLY  but If the RDD doesn&#39;t fit in memory,
store the partitions that don&#39;t fit on disk, and read them from there
when they are  needed. &lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #6fa8dc; font-size: large;&quot;&gt;&lt;b&gt;MEMORY_ONLY_SER&lt;/b&gt;&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;
-&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;It stores RDD as serialized Java objects ( i.e. one-byte array
per partition). It is  more space-efficient than deserialized
objects. It is available only  in JAVA and Scala&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;MEMORY_AND_DISK_SER&lt;/span&gt;&lt;/b&gt;-It is similar to &lt;b&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;MEMORY_ONLY_SER&lt;/span&gt;&lt;/b&gt;, but spill partitions that don&#39;t
fit in memory to disk instead of recomputing them. &lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;DISK_ONLY&lt;/b&gt;&lt;/span&gt;
-It stores the RDD partitions only on disk. &lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;color: #6fa8dc; font-size: large;&quot;&gt;&lt;b&gt;MEMORY_ONLY_2,
MEMORY_AND_DISK_2&lt;/b&gt;&lt;/span&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;, etc. -It is the same as the levels above, but
replicate each partition on two cluster nodes.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;OFF_HEAP&lt;/b&gt;&lt;/span&gt;
-It is similar to&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt; MEMORY_ONLY_SER&lt;/b&gt;&lt;/span&gt;, but store the data in off-heap
memory. The off-heap memory must be enabled.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;These are the questions which I have experienced and shall post more to help you.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;Happy learning!!&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;font-size: large;&quot;&gt;See you in next blog!&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/4257346008595219841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/07/spark-core-interview-questions-set-1.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/4257346008595219841'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/4257346008595219841'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/07/spark-core-interview-questions-set-1.html' title='Spark Core interview questions Set 1'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9JxWK6_0JI_CsR-USJZjmvro6LTAIrO1sRTQtyiLZAGmsUlTRCAgQS2nyLZd64Ra9l8fqpyb6apartiIO9DLMsB4Qd7qeBWZXUgKxcorjpF2OIFPVxMzSnLkql4CoEbqdtR1osH5g9dAQ/s72-c/scott-graham-5fNmWej4tAA-unsplash.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-109100863223177789</id><published>2020-06-23T11:26:00.002+05:30</published><updated>2020-09-29T10:37:55.155+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Spark"/><title type='text'>Spark Dataset with example</title><content type='html'>&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;Spark
dataset is distributed collection of typed objects.This was
introduced in Spark 1.6 version.&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;It
 consolidates features of  both RDD and Data frame with fast
execution response and memory optimization of data processing .The
methodology used in &lt;/span&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;DataSet&lt;/span&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&amp;nbsp;is Encoder which enhances  execution and
processing response of data over the network   compared to others
which depends on JAVA or  Kryo &lt;/span&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Serializer&lt;/span&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;Dataset
concept came into feature with the  following advantages.&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree: Spark Dataset Features&quot; border=&quot;0&quot; data-original-height=&quot;436&quot; data-original-width=&quot;597&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoDHmE4QfGGCtib-4CgQOiJ6qCNk0-mT-6MryMzhAz9bV5socWvHdrMmUQlx0HbuYSoxxzY5Y9wjECAjAjs2f2QpS4RlWDB38GaocoTfBzRokBq5w8pLHXZs7s-pAR-EWcz0I8RYPNRK2G/w320-h234/spark_dataset.JPG&quot; title=&quot;ITechShree: Spark Dataset Features&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt; Spark Dataset Features
&lt;/b&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;      
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;Thus
developers can get  more functional benefits working with Dataset
API.&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;
&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;Dataset
API is available only for JAVA and Scala as a single interface which
&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;reduces
the burden of libraries&lt;/span&gt;&lt;/span&gt; .&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;As
of Spark 2.0.0,Dataframe  &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;is
currently a &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;em&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;mere&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;em&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;
t&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;ype
alias for &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;code class=&quot;western&quot;&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;Dataset[Row]&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/code&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;
.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
Users  use &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;code class=&quot;western&quot;&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Dataset&amp;lt;Row&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/code&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;to
represent a &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;code class=&quot;western&quot;&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;DataFrame
in &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/code&gt;&lt;code class=&quot;western&quot;&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Java
API&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/code&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 15pt;&quot;&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;source sans pro&amp;quot;, helvetica, arial, sans-serif; font-size: 21pt;&quot;&gt;&lt;font color=&quot;#f4a900&quot;&gt;Creating
a Dataset in Scala:&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal;&quot;&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal;&quot;&gt;&lt;font color=&quot;#404040&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;Creating
a Dataset from a RDD&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal;&quot;&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
&lt;font color=&quot;#052247&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;b&gt;val&lt;/b&gt;&lt;/font&gt;
rdd &lt;font color=&quot;#7f0055&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt;
sc&lt;font color=&quot;#3f7f5f&quot;&gt;.&lt;/font&gt;parallelize&lt;font color=&quot;#3f7f5f&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#0000ff&quot;&gt;Seq&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;((&lt;/font&gt;&lt;font color=&quot;#2a00ff&quot;&gt;&quot;Apple&quot;,180&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;),&lt;/font&gt;
&lt;font color=&quot;#3f7f5f&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#2a00ff&quot;&gt;&quot;Banana&quot;,40&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;)))
//creating rdd by calling  parallelize() method on collection of data
&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;val&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#052247&quot;&gt;
dataset &lt;/font&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#052247&quot;&gt;
rdd&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;.&lt;/font&gt;&lt;font color=&quot;#052247&quot;&gt;toDS&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;()
// converting RDD to DataSet by calling toDS() method&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;font color=&quot;#052247&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;dataset&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;.show()
          // to view the content of dataset&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;pre class=&quot;western&quot; style=&quot;font-style: normal; font-weight: normal; text-align: left;&quot;&gt;&lt;/pre&gt;&lt;h3 align=&quot;LEFT&quot; class=&quot;western&quot; style=&quot;font-style: normal;&quot;&gt;
&lt;font color=&quot;#333333&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;Creating
a Dataset from a DataFrame&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/h3&gt;
&lt;pre class=&quot;western&quot; style=&quot;font-style: normal; font-weight: normal; text-align: left;&quot;&gt;&lt;/pre&gt;&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
&lt;font color=&quot;#052247&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;b&gt;case&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;
&lt;/font&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;b&gt;class&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;
&lt;/font&gt;&lt;font color=&quot;#0000ff&quot;&gt;Shop&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;(fruitname&lt;/font&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;b&gt;:&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;
&lt;/font&gt;&lt;font color=&quot;#0000c0&quot;&gt;String&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;,
quantity&lt;/font&gt;&lt;font color=&quot;#0000c0&quot;&gt;:Long&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;)
//creating a case class named Shop with attributes fruitname and
quantity&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;val&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;
data &lt;/font&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;
&lt;/font&gt;&lt;font color=&quot;#0000ff&quot;&gt;Seq&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;((&lt;/font&gt;&lt;font color=&quot;#2a00ff&quot;&gt;&quot;Apple&quot;,180&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;),&lt;/font&gt;&lt;font color=&quot;#052247&quot;&gt;
&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#2a00ff&quot;&gt;&quot;Banana&quot;,40&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;))
// define a collection&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;val&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;
df &lt;/font&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;
sc.parallelize(data).toDF()         //creating rdd and calling toDF()
method to &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;                 
                               &lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;convert
it into dataframe                           &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;val&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;
dataset &lt;/font&gt;&lt;font color=&quot;#7f0055&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;
df.as[&lt;/font&gt;&lt;font color=&quot;#0000c0&quot;&gt;Shop&lt;/font&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;]
             //creating dataset by using case class reflection&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
&lt;font color=&quot;#3f7f5f&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;dataset.show()
                        //to view  the content of dataset&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;&lt;font color=&quot;#3f7f5f&quot;&gt;&lt;font face=&quot;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Learning Coding!!&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;See you in next blog!&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;western&quot; style=&quot;font-style: normal; font-weight: normal; text-align: left;&quot;&gt;&lt;/pre&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/109100863223177789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/06/spark-dataset-with-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/109100863223177789'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/109100863223177789'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/06/spark-dataset-with-example.html' title='Spark Dataset with example'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoDHmE4QfGGCtib-4CgQOiJ6qCNk0-mT-6MryMzhAz9bV5socWvHdrMmUQlx0HbuYSoxxzY5Y9wjECAjAjs2f2QpS4RlWDB38GaocoTfBzRokBq5w8pLHXZs7s-pAR-EWcz0I8RYPNRK2G/s72-w320-h234-c/spark_dataset.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-6838352905636309108</id><published>2020-06-15T12:49:00.006+05:30</published><updated>2020-09-29T10:37:14.740+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Kafka"/><title type='text'>Introduction to Kafka</title><content type='html'>&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;CENTER&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 16pt; text-align: left;&quot;&gt;Kafka
was originally developed by &lt;/span&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 21.3333px; text-align: left;&quot;&gt;LinkedIn&lt;/span&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 16pt; text-align: left;&quot;&gt;&amp;nbsp;as  real time messaging system.&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;CENTER&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 16pt; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 16pt; text-align: left;&quot;&gt;LinkedIn and other companies  use Apache Kafka  for managing the
streams of data   coming from various applications and &lt;/span&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 21.3333px; text-align: left;&quot;&gt;processes&lt;/span&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 16pt; text-align: left;&quot;&gt;&amp;nbsp;each piece of data&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 21.3333px; text-align: left;&quot;&gt;and then send them where they need to go next.&lt;/span&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 16pt; text-align: left;&quot;&gt;Since
then it  &lt;/span&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 16pt; text-align: left;&quot;&gt;has
improved a lot.&lt;/span&gt;&lt;span face=&quot;calibri, sans-serif&quot; style=&quot;color: #333333; font-size: 16pt; text-align: left;&quot;&gt;Now
it is available as open source product of Apache and named as Apache
Kafka.&lt;/span&gt;&lt;/p&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree: Features of Apache Kafka&quot; border=&quot;0&quot; data-original-height=&quot;484&quot; data-original-width=&quot;702&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxSccCy0bXVl6Wnp6eq8dh9cNp2tOIcHsgYKzewWmXn_AP6CcL-XQ_CC3EmLL2G-oQLHK2SHcndbAmkbgpzWfkbJChTZySRplQz7tUYCIZYXcgbQlicMn4DEBeQiuivUb006eUt8mAIRQu/w320-h221/kaf1.JPG&quot; title=&quot;ITechShree: Features of Apache Kafka&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&amp;nbsp;Features of Apache Kafka&lt;/b&gt;&lt;/div&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
	&lt;font size=&quot;3&quot;&gt;&lt;font color=&quot;#3c4043&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;A
	&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;em&gt;&lt;font color=&quot;#52565a&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;distributed
	system &lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;font color=&quot;#3c4043&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;is
	a group of multiple machines   working together as to appear as a
	single computer to the end-user.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;
	Kafka is just like a distributed system which sends ,receives and
	stores messages over the cluster consisting different
	nodes(brokers).&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
	&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
	&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;Kafka
	is horizontally &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;scalable. Vertical&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;scaling is  &lt;/span&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;simply
	to increase the resources (CPU, RAM, SSD) on the server which is  a
	big burden of companies as there is limitation of &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;hardware&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;per
	machine and  also needs  downtime of server if we increase
	resources.Horizontal scaling solves the problem by adding   more
	machines at it.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;em&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;Kafka
	&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;achieves
	&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;em&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;fault
	tolerance&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;em&gt;&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
	as it &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;font color=&quot;#3c4043&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
	duplicates  each partition over a number of servers.&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
	&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
	&lt;/p&gt;
	&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
	&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
	&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;A
	commit log (also referred to as write-ahead log, transaction log) is
	totally-ordered sequence of records ordered by time which supports
	append only.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
	&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
	&lt;/p&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree : Apache Kafka commit log&quot; border=&quot;0&quot; data-original-height=&quot;172&quot; data-original-width=&quot;611&quot; height=&quot;90&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzmf1WIto-kMyN1Osr1aVxLyX07IgLfdzLJNUfvurh3yocMwjPMP0jS4tLG-JFidTHf0fTRkRHwgBD0O4KfB4mM3_8WddCwEtmlMAagT0qBLH82Jgr2PEOuM8STdqPTYVAB99f_AO22nb1/w320-h90/kaf2.JPG&quot; title=&quot;ITechShree : Apache Kafka commit log&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&lt;b&gt;Apache Kafka commit log&lt;/b&gt;&lt;/div&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Once
written we can not modify or delete records and &lt;/span&gt;&lt;/span&gt;&lt;font color=&quot;#4c4c4c&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;reads
proceed left-to-right. Each entry is assigned a unique sequential log
entry number.&lt;/span&gt;&lt;/span&gt;&lt;/font&gt; Thus it &lt;font color=&quot;#111111&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;guarantees
item ordering.&lt;/span&gt;&lt;/span&gt;&lt;/font&gt; &lt;font color=&quot;#4c4c4c&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;
For  distributed systems, this property will turn out to be
essential.&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;Because&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt; of these features Kafka &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;achieves&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;message bus with huge throughput
	(millions/sec) and use real-time stream processing on the data that
	goes through it all at once.&lt;/span&gt;&lt;/font&gt; &lt;/font&gt;&lt;/font&gt;
	&lt;/p&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;font-family: calibri, sans-serif; font-size: 22pt;&quot;&gt;&lt;font color=&quot;#f4a900&quot;&gt;Kafka
architecture:&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree: Apache Kafka Architecture&quot; border=&quot;0&quot; data-original-height=&quot;335&quot; data-original-width=&quot;633&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUm5mOsL3SFsVTmDVoTgw5s5WmMoWq9ekRE68jp3YoBKbZz8k_J-umLPt_rwqPf3ASUZVJ5CCYPL1vEt4OZ8wu3ykOYcYYWIugrsA85KKfP0OZPFMFm3cJuZF423iBsdN8edW0BajAzvTN/w320-h169/kaf3.JPG&quot; title=&quot;ITechShree: Apache Kafka Architecture&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;Apache Kafka Architecture&lt;/b&gt;&lt;/div&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;Kafka
cluster is nothing but consisting of multiple &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;distributed&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;servers or
nodes (&lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;referred&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;as Broker).&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot;&gt;&lt;font&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;Applications
( &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;referred&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;as &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;P&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;strong style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;roducers&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;)
sends  messages (&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;strong style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;records&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;)
to a Kafka node (&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;strong style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;broker&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;)
and said messages are consumed  by other multiple  applications
called &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;C&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;strong style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;onsumers&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;.
Said messages get stored in a &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;strong style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;topic
&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;strong style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;in
Kafka node, so producers produce topics &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;strong style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;and
consumers subscribe to those topics to receive new messages.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=&quot;#000000&quot; style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;
Multiple producers  and consumers can publish or  retrieve messages
simultaneously.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-size: medium; font-weight: normal; text-decoration-line: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; text-decoration: none;&quot;&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;b&gt;Topic
	architecture:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p align=&quot;LEFT&quot;&gt;
&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;Each
topic  in kafka is divided into multiple partition to support for
better performance and &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;scalability&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;of Kafka Cluster.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;if
the replication factor of any topic  is set to 3, then Kafka will
create 3 identical replicas of each partition and place them in the
cluster to make available for all its operations. To balance a load
in cluster, each broker stores one or more of those partitions.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Every
partition has one server acting as a leader.&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;
&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Rest
other nodes having replica of that partition  are followers for that
partition&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;One
of the follower will automatically takes  the place of the new leader&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;
 if  &lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;
the leader fails, &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; text-decoration: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ItechShree : Kafka Topic Architecture&quot; border=&quot;0&quot; data-original-height=&quot;449&quot; data-original-width=&quot;716&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKaboF87oKAAzyOA-S7mtWYrgC-djisCyuSoMSXds9C2qKVs4B7APXF6rSkL3vNgx8OMkeOrpSANH-fz0CSh7QNOwrhguWAs7bj343_IMk4Z8a7DKoho-MnOdYTqn7HwJlQsY_EKhRkgcx/w320-h201/kaf4.JPG&quot; title=&quot;ItechShree : Kafka Topic Architecture&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;Kafka Topic Architecture&lt;/b&gt;&lt;/div&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; text-decoration: none;&quot;&gt;
&lt;br /&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font style=&quot;font-size: 16pt;&quot;&gt;Kafka
guarantees the order of  all messages inside a partition as  they
came in sequence . Each   specific message is identified by its  
&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;strong style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font style=&quot;font-size: 16pt;&quot;&gt;&lt;b&gt;offset&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font color=&quot;#111111&quot; style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font style=&quot;font-size: 16pt;&quot;&gt;,
 a sequence number which is incremented for each new message in a
partition.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; text-decoration: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree : Message ordering in Kafka topic&quot; border=&quot;0&quot; data-original-height=&quot;367&quot; data-original-width=&quot;554&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4r39hTfsnD_bGnx4HMBSNzetm_1ZPQmQlqNq2qUxCJIJwWRpI-WBXbTZ8mPGbaErXaTT5FkGk-3PYnG2jtnmL1DmK0ipzj846Ujh5G8Gb4vrEQ5En-qO_QOIUA3F49ShD34INTHvBTbcg/w320-h212/kaf5.JPG&quot; title=&quot;ITechShree : Message ordering in Kafka topic&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;Message ordering in Kafka topic&lt;/b&gt;&lt;/div&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in; text-decoration: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;&lt;b&gt;Consumer
	Architecture:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;font color=&quot;#111111&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;consumers
are generally  consumer groups which consists of  one or more
consumer  inside. &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0.1in; orphans: 2; widows: 2;&quot;&gt;
&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;A
consumer group has a unique group  id. Each consumer group acts as 
subscriber for  one or more Kafka topics.  If you need multiple
subscribers, then you have multiple consumer groups.Each consumer
group maintains its offset per topic partition.,so a record for a
specific  topic partition gets delivered to only one consumer in a
consumer group &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0.1in; orphans: 2; widows: 2;&quot;&gt;
&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;Each
consumer per consumer group processes records but  only one  in that
group will get the same record. &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;Ideally,
the number of partitions is equal to the number of consumers within a
consumer group. If  the number of consumers be greater, then the
excess consumers will be  idle, wasting client resources.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree :Kafka Consumer Architecture&quot; border=&quot;0&quot; data-original-height=&quot;488&quot; data-original-width=&quot;673&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOKT6Oq9xEXAD9raL-7MnnT0P8BCNmY-pfNGVIai5JmI7BmKvw-IAXuJlYDJ50h3E7mogctfExaphoLOVbLlZGSOIDvSoitwy5Sr5IR6P1a_Gd8cb1Liva3sEhC1AgPqdNAWRNNY2pvc_D/w320-h232/kaf6.JPG&quot; title=&quot;ITechShree :Kafka Consumer Architecture&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;&lt;b&gt;Kafka Consumer Architecture
&lt;/b&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;Notice
Broker 1 has topic partition P0 and P1 and Broker  2 has partition P2
and P3.  Consumer C0 from Consumer Group 1 is processing records from
P0 and P2. No  consumer from any consumer group shares  a single
partition . Consumer C1 and C3 from Consumer Group 2 is processing
records from P0 ,P1,P2,P3. So no more partition left for C4 and sits
as idle. &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;font color=&quot;#1c1c1c&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;4&quot; style=&quot;font-size: 16pt;&quot;&gt;Consumer
C5,C6,C7 and C8 from Consumer Group 3 is processing records from P0
,P1,P3 and P2 respectively  .Here each consumer subscribe to each
topic partition.so  no one sits idle.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in; text-decoration: none;&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font size=&quot;6&quot; style=&quot;font-size: 22pt;&quot;&gt;&lt;b&gt;Conclusion:&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;font color=&quot;#333333&quot;&gt;&lt;font face=&quot;Calibri, sans-serif&quot;&gt;&lt;font&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;In &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;today&#39;s&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;scenario&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;Confluent  provides platform which includes &lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;Apache&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 21.3333px;&quot;&gt;Kafka&lt;/span&gt;&lt;span style=&quot;font-size: 16pt;&quot;&gt;&amp;nbsp;core along with additional add on services to &lt;/span&gt;&lt;span style=&quot;font-size: 16pt; font-style: normal; font-weight: normal; text-decoration-line: none;&quot;&gt;reduce
the latency &amp;amp; to ease out the development operations by adding
API / client to the existing Apache Kafka&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;Happy learning!!&lt;div&gt;Debashree&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/6838352905636309108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/06/Introduction-to-Apache-Kafka.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/6838352905636309108'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/6838352905636309108'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/06/Introduction-to-Apache-Kafka.html' title='Introduction to Kafka'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxSccCy0bXVl6Wnp6eq8dh9cNp2tOIcHsgYKzewWmXn_AP6CcL-XQ_CC3EmLL2G-oQLHK2SHcndbAmkbgpzWfkbJChTZySRplQz7tUYCIZYXcgbQlicMn4DEBeQiuivUb006eUt8mAIRQu/s72-w320-h221-c/kaf1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-5993402075681263958</id><published>2020-06-09T16:20:00.005+05:30</published><updated>2020-09-29T10:36:37.270+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Spark"/><title type='text'>Spark Structured Streaming in Apache Spark 2.X version</title><content type='html'>&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;From the Spark 2.x release onwards , Structured Streaming &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;API &amp;nbsp;was included &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;. Built on Spark SQL library, &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;It &amp;nbsp;makes easier to apply SQL query(Data frame API ) or scala operations(Dataset API) on streaming data.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 22pt;&quot;&gt;&lt;font color=&quot;#f4a900&quot;&gt;Architecture of Structured Streaming:&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 22pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;Structured Streaming works on the same &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;platform &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;like Spark Streaming &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;of &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;polling the data after some duration&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;I&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;t is based on the trigger interval, &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;but some differences are there in structured streaming &amp;nbsp;and makes it similar to &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;real streaming. &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;N&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;o batch concept&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;is present i&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;n Structured Streaming. The received data in a trigger is appended to the continuously flowing data stream. Each row of the data stream is processed and the result is updated into the unbounded result table. The output result (updated, new result only, or all the results) depends on the output mode of the operations (Complete, Update, Append) we set.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Spark Structured Streaming Architecture&quot; border=&quot;0&quot; data-original-height=&quot;308&quot; data-original-width=&quot;704&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf2c9wOy-D0e3qx0xvB2G6fw0Q5NBGgu-fuPqQ_bnQeCKkUOwqr5GiduLyLaMHp0aD-ogQxgsscJgTKu087gNITt0ZSBlhF6d7tX0ldopdsT4Of4OEI8EURSh53U3yEF9zV4_6xvtAfiNZ/w400-h175/structuredstreaming.JPG&quot; title=&quot;ITechShree:Spark Structured Streaming Architecture&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;background: rgb(255, 255, 255); line-height: 15.6pt; margin-top: 0pt; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt; letter-spacing: -0.25pt;&quot;&gt;i. Complete Mode&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt; letter-spacing: -0.25pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255, 255, 255); margin-bottom: 0pt; margin-top: 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;When&amp;nbsp;updated result table will be written to the external sink, t&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;hat mode is Complete Mode. &lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;background: rgb(255, 255, 255); line-height: 15.6pt; margin-top: 0pt; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt; letter-spacing: -0.25pt;&quot;&gt;ii. Append Mode&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt; letter-spacing: -0.25pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255, 255, 255); margin-bottom: 0pt; margin-top: 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;In append mode only the new rows will be appended to the result table since the last trigger and we will write those rows to the external sink.&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;This mode is applicable when existing rows in result table are not expected to change.&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255, 255, 255); margin-bottom: 0pt; margin-top: 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;background: rgb(255, 255, 255); line-height: 15.6pt; margin-top: 0pt; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt; letter-spacing: -0.25pt;&quot;&gt;iii. Update Mode&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt; letter-spacing: -0.25pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;&lt;p class=&quot;p&quot; style=&quot;background: rgb(255, 255, 255); margin-bottom: 0pt; margin-top: 0pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;In this mode, only the rows that were updated in the result table since the last trigger will be written to the external sink. Unlike complete &lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;mode, &amp;nbsp;this only outputs the rows that have changed since the last trigger &amp;nbsp;and &amp;nbsp;it will be&amp;nbsp;as same as Append mode when query doesn’t contain aggregations.&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt;&quot;&gt;It &amp;nbsp;is scalable ,fault-tolerant &amp;nbsp;stream processing engine and provides end to end &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt;&quot;&gt;guarantees &amp;nbsp;of data delivery.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;It uses &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #222635; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt;&quot;&gt;checkpointing&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;and also &amp;nbsp;applies two conditions to recover from any error:&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(255, 255, 255); margin-bottom: 5pt; margin-left: 36pt; margin-top: 5pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;color: #222635; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt;&quot;&gt;The source must be replayable.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #222635; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(255, 255, 255); margin-bottom: 5pt; margin-left: 36pt; margin-top: 5pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;color: #222635; font-family: &amp;quot;Calibri Light&amp;quot;; font-size: 16pt;&quot;&gt;The sinks must support idempotent operations to support reprocessing in case of failures&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(255, 255, 255); margin-bottom: 11.25pt; margin-top: 3.75pt;&quot;&gt;&lt;span style=&quot;color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;With restricted sinks, Spark Structured Streaming always provides end-to-end, exactly once semantics. &lt;/span&gt;&lt;span style=&quot;color: #222635; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #1d1f22; font-family: &#39;Calibri Light&#39;; font-size: 16pt; mso-fareast-font-family: 黑体; mso-shading: rgb(255,255,255); mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;See you in next blog!!&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/5993402075681263958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/06/spark-structured-streaming.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/5993402075681263958'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/5993402075681263958'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/06/spark-structured-streaming.html' title='Spark Structured Streaming in Apache Spark 2.X version'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf2c9wOy-D0e3qx0xvB2G6fw0Q5NBGgu-fuPqQ_bnQeCKkUOwqr5GiduLyLaMHp0aD-ogQxgsscJgTKu087gNITt0ZSBlhF6d7tX0ldopdsT4Of4OEI8EURSh53U3yEF9zV4_6xvtAfiNZ/s72-w400-h175-c/structuredstreaming.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-505937502541884499</id><published>2020-06-04T11:49:00.008+05:30</published><updated>2020-09-29T10:35:26.908+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Spark"/><title type='text'> Apache Spark Quick Start </title><content type='html'>&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&quot; style=&quot;background-color: white; color: #222222; font-size: 16px;&quot;&gt;Is Apache spark a database?&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-color: white; font-family: calibri; font-size: 18.6667px; letter-spacing: -0.0666667px;&quot;&gt;Apache Spark &amp;nbsp;is open source, in memory , highly expensive cluster programming framework.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-color: white; font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;Nowadays spark applications are more demanding because of its high performance on multiple domains and vast useful libraries .&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;&lt;font color=&quot;#f57c00&quot;&gt;Why Apache Spark preferred&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&quot; style=&quot;background-color: white; color: #222222; font-size: 16px;&quot;&gt;Why is Apache spark preferred over MapReduce?&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;It provides 100 times faster performance than hadoop MapReduce processing framewo&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;r&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;k which access disk while reading and writing data in hdfs wheres spark processing does &amp;nbsp;in &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;memory&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0pt; text-indent: 0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;It&#39;s built in API is written&amp;nbsp; in multiple languages like Java,Scala,Python and R languages to get the job done.&lt;/span&gt;&lt;span style=&quot;background: rgb(243, 253, 254); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;3.It includes rich set of higher level tools &amp;nbsp;:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0pt; text-indent: 0px;&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt; text-indent: -21pt;&quot;&gt;&lt;b&gt;Spark SQL&lt;/b&gt;: It supports API for processing SQL and structured data&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;b&gt;Mlib&lt;/b&gt; :It &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;includes algorithm and model to train and test data in &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;machine learning ,&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;b&gt;Stream processing&lt;/b&gt;: Spark streaming and &lt;a href=&quot;https://itechshree.blogspot.com/2020/06/spark-structured-streaming.html&quot;&gt;Structured streaming&lt;/a&gt; &amp;nbsp;are used to process streams of data in near real time applications.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;b&gt;Graphx&lt;/b&gt; : Its used for graph processing and &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;analytic.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21pt; text-indent: -21pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21pt; text-indent: -21pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21pt; text-indent: -21pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21pt; text-indent: -21pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Spark Components&quot; border=&quot;0&quot; data-original-height=&quot;404&quot; data-original-width=&quot;674&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPy5Nu-RQxfqp_b1Urdy_FuVeIYIefDlwcFlZqu6J6o83gkSe0gbAAXt0BMZbzzmQvdytHbG5fWR8rkTfI1sDpV-jKOytfiu_2aIqYt_iTISKRkaMn3cuUTIFEsi2V2umh01C_B5C1jAPl/w320-h192/1.JPG&quot; title=&quot;ITechShree:Spark Components&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font color=&quot;#f57c00&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font color=&quot;#f57c00&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font color=&quot;#f57c00&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font color=&quot;#f57c00&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;color: #f57c00;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;Does spark &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;color: #f57c00;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;compatible&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;color: #f57c00;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;&amp;nbsp;with Hadoop&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;Yes spark is &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;compatible with Hadoop Cluster.Though spark has independent cluster spark framework(Standalone cluster) which leads to run spark jobs independently.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;But spark can also be installed and worked on Hadoop(Hadoop version 2) cluster using its cluster framework Yarn and Mesos and also in Mapreduce framework (Hadoop Version 1) .Thus it enhances the functionality of Hadoop using all its components and tools.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: -0.05pt;&quot;&gt;&lt;font color=&quot;#f57c00&quot;&gt;RDD(Resilient distributed Dataset) in Spark&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;The basic building block of spark is RDD(Resilient distributed Dataset).It is core concept of Spark Framework.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;It can hold any type of data and is distributed across the cluster.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;span face=&quot;&quot; style=&quot;color: #222222; font-size: 16px;&quot;&gt;How is RDD resilient?&lt;/span&gt;It is resilient because it is immutable &amp;nbsp;in nature and highly fault tolerant.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;span face=&quot;&quot; style=&quot;color: #222222; font-size: 16px;&quot;&gt;Why is RDD immutable in spark?&amp;nbsp;&lt;/span&gt;Immutable means once RDD created we cant modify the original one.we could modify only with transformation but it will recreate RDD keeping original remains same.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&amp;nbsp;In cluster data gets crashed if any nodes fails but &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: -0.05pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;RDDs &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;are also fault tolerance because &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;it knows &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;how to recreate and recompute the datasets.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;RDD supports two types of operation:&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Transformation:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;When we call transformation function on RDD, it &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;creates new RDD.nothing is evaluated.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;b&gt;map, filter, flatMap, groupByKey, reduceByKey, aggregateByKey, pip&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;b&gt;e&lt;/b&gt; are the some examples of transformation.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Action:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;When an Action function is called on a RDD object, all the data processing queries &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;gets &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;computed at that time and the result value &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;is evaluated.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;16&quot; style=&quot;background: rgb(245, 242, 240); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;b&gt;reduce, collect, count, first, take, countByKey, and foreach&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;etc.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 22pt; letter-spacing: 0pt;&quot;&gt;&lt;font color=&quot;#f57c00&quot;&gt;How Spark processes data&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span face=&quot;&quot; style=&quot;background-color: white; color: #222222; font-size: 16px;&quot;&gt;What is the use of DAG in spark?&lt;/span&gt;&lt;span face=&quot;&quot; style=&quot;background-color: white; color: #222222; font-size: 16px;&quot;&gt;What is Dag execution engine and DAG schedular?&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;When Spark job is submitted at Spark console, it converts code containing transformation and actions into logical &lt;b&gt;DAG(Direct Acyclic Graph)&lt;/b&gt; of task stages.When action is executed at higher level ,spark strikes to DAG scheduler and &amp;nbsp;executes the task submitted to DAG scheduler.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;Hope you are aware of how Spark gains popularity over hadoop and makes big data application faster.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: times new roman, serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 20px;&quot;&gt;Happy Learning!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: times new roman, serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 20px;&quot;&gt;Debashree&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/505937502541884499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/06/apache-spark-quick-start.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/505937502541884499'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/505937502541884499'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/06/apache-spark-quick-start.html' title=' Apache Spark Quick Start '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPy5Nu-RQxfqp_b1Urdy_FuVeIYIefDlwcFlZqu6J6o83gkSe0gbAAXt0BMZbzzmQvdytHbG5fWR8rkTfI1sDpV-jKOytfiu_2aIqYt_iTISKRkaMn3cuUTIFEsi2V2umh01C_B5C1jAPl/s72-w320-h192-c/1.JPG" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-1440664783559025560</id><published>2020-06-01T13:11:00.009+05:30</published><updated>2020-09-29T10:33:19.450+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Hbase"/><title type='text'>Hbase versioning</title><content type='html'>&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 14pt;&quot;&gt;A&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 14pt;&quot;&gt;version&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 14pt;&quot;&gt;is a timestamp values &amp;nbsp;written alongside each value .&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;By default, the timestamp &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;is &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;represen&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;ted as &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;the time on the RegionServer when the data was written&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;but &amp;nbsp;different timestamp value &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;could be specified &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;when &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;we &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;put data into the cell.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 14pt;&quot;&gt;As hbase built on top of &amp;nbsp;hdfs. So it &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;does not over write values during update, but rather stores different values by time it is stored.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;To enable this &amp;nbsp;feature hbase creates a version on the cells being updated. The default maximum number of row versions &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;is 1&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;and it was 3 earlier versions of hbase&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;(Prior to HBase 0.96&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 14pt;&quot;&gt;).&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;You can specify number of version to keep for any given column at the time of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;Hbase table creation or using Alter command.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;Versioning also helps to maintain the history of table values.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;Example:&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;font face=&quot;calibri&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;Let&#39;s&amp;nbsp; create a hbase table named &lt;b&gt;student &lt;/b&gt;with two column families&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;background-color: white; font-family: calibri; font-size: 18.6667px;&quot;&gt;&lt;b&gt;personal_details &lt;/b&gt;and &lt;b&gt;marks_details&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):001:0&amp;gt; create &#39;student_management:student&#39;,&#39;personal_details&#39;,&#39;marks_details&#39;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;0 row(s) in 1.3920 seconds&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;background: rgb(255, 255, 255); margin-bottom: 11.1pt; margin-left: 36pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: symbol; font-size: 14pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;Alter HBase Table to add version&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):041:0&amp;gt; alter &#39;student_management:student&#39; , NAME =&amp;gt; &#39;personal_details&#39; , VERSIONS =&amp;gt; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;Updating all regions with the new schema... &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;1/1 regions updated. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;Done. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;0 row(s) in 1.8990 seconds &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: symbol; font-size: 14pt; text-indent: -18pt;&quot;&gt;· Now,&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt; text-indent: -18pt;&quot;&gt;Inserting first record into&amp;nbsp; the hbase&amp;nbsp; table declared with version 4.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):042:0&amp;gt; put &#39;student_management:student&#39;,&#39;1&#39;,&#39;personal_details:name&#39;,&#39;bela&#39; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;0 row(s) in 0.1180 seconds &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 14pt; text-indent: -18pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; text-indent: -18pt;&quot;&gt;Updating the value of &lt;/span&gt;&lt;b style=&quot;text-indent: -18pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;name&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; text-indent: -18pt;&quot;&gt;&amp;nbsp;column field.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: yellow; font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):043:0&amp;gt; put &#39;student_management:student&#39;,&#39;1&#39;,&#39;personal_details:name&#39;,&#39;bini&#39;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;0 row(s) in 0.0050 seconds &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin-bottom: 0pt; margin-left: 36pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 14pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 14pt; text-indent: -18pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; text-indent: -18pt;&quot;&gt;Now while &amp;nbsp;checking the value of name field ,the latest &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; text-indent: -18pt;&quot;&gt;&amp;nbsp;updated value &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; text-indent: -18pt;&quot;&gt;will be &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; text-indent: -18pt;&quot;&gt;on&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; text-indent: -18pt;&quot;&gt;&amp;nbsp;the &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt; text-indent: -18pt;&quot;&gt;&amp;nbsp;top.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;15&quot; style=&quot;margin-bottom: 0pt; margin-left: 36pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;i&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;*&lt;/span&gt;&lt;/i&gt;&lt;b&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;Note: In HBase, rows and column keys are expressed as bytes, the version is specified using a long integer. &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;As &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;HBase version dimension is stored in decreasing order, so that when reading &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;data &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;from a store&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;d&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;file, the most recent values are found first.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background-color: yellow; font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):044:0&amp;gt; get &#39;student_management:student&#39;,&#39;1&#39;,{ COLUMN =&amp;gt; &#39;personal_details:name&#39;, VERSIONS =&amp;gt; 3}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;COLUMN &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CELL &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774360746, value=bini &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774335979, value=bela &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;2 row(s) in 0.0030 seconds &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin-bottom: 0pt; margin-left: 36pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 14pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;Again updating name field two times.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):045:0&amp;gt; put &#39;student_management:student&#39;,&#39;1&#39;,&#39;personal_details:name&#39;,&#39;rita&#39; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;0 row(s) in 0.0040 seconds &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):046:0&amp;gt; put &#39;student_management:student&#39;,&#39;1&#39;,&#39;personal_details:name&#39;,&#39;riya&#39; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;0 row(s) in 0.1590 seconds &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 14pt; text-indent: -24px;&quot;&gt;· &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 14pt; text-indent: -24px;&quot;&gt;&lt;font face=&quot;calibri&quot;&gt;Now while reading data all four&amp;nbsp; history of values under &lt;b&gt;name&amp;nbsp; &lt;/b&gt;field will be appeared.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;font face=&quot;calibri&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;as version is declared with 4 in hbase table named &lt;b&gt;student&amp;nbsp;&lt;/b&gt;. So it can preserve upto 4 history records of each field.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):048:0&amp;gt; get &#39;student_management:student&#39;,&#39;1&#39;,{ COLUMN =&amp;gt; &#39;personal_details:name&#39;, VERSIONS =&amp;gt; 4} &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;COLUMN &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CELL &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774548028, value=riya &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774535977, value=rita &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774360746, value=bini &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774335979, value=bela &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;4 row(s) in 0.3020 seconds &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin-bottom: 0pt; margin-left: 36pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: symbol; font-size: 14pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;So if we&amp;nbsp; update&amp;nbsp; &lt;b&gt;name&lt;/b&gt; field again&amp;nbsp; and then, while fetching record ,only the latest ones we could see and it hides the older ones. &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):050:0&amp;gt; put &#39;student_management:student&#39;,&#39;1&#39;,&#39;personal_details:name&#39;,&#39;sonali&#39; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;0 row(s) in 0.0310 seconds &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;hbase(main):051:0&amp;gt; get &#39;student_management:student&#39;,&#39;1&#39;,{ COLUMN =&amp;gt; &#39;personal_details:name&#39;, VERSIONS =&amp;gt; 4} &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;COLUMN &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CELL &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774696983, value=sonali &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774548028, value=riya &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774535977, value=rita &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;personal_details:name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timestamp=1588774360746, value=bini &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;4 row(s) in 0.0070 seconds &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&amp;nbsp;Thus update and delete&amp;nbsp; process happens over hdfs storage through Apache Hbase.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: times new roman, serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 20px;&quot;&gt;Happy learning!!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: times new roman, serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 20px;&quot;&gt;See you in next blog!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/1440664783559025560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/06/hbase-versioning.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/1440664783559025560'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/1440664783559025560'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/06/hbase-versioning.html' title='Hbase versioning'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-7983851923377088643</id><published>2020-05-28T13:21:00.006+05:30</published><updated>2020-09-29T09:29:46.501+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Hbase"/><title type='text'>Hbase commands</title><content type='html'>&lt;br /&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;Like rdbms schema ,hbase has namespace.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;If no namespace is defined all created hbase tables are in&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;default&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;namespace.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;1.Create namespace in Hbase:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;create_namespace &#39;&amp;lt;namespace name&amp;gt;&#39;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;hbase(main):003:0&amp;gt; create_namespace &#39;student_management&#39; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;0 row(s) in 0.0290 seconds &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;2.Creating table in hbase&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;create &#39;&amp;lt;tablename&amp;gt;&#39;, &#39;&amp;lt;columnfamilyname&amp;gt;&#39;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;If namespace is defined then command:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;create &amp;lt;namespace:tablename&amp;gt;, &amp;lt;columnfamilyname&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;if there is more column family those should be declared here separed by comma(,).&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;Example:&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;hbase(main):004:0&amp;gt; create &#39;student_management:student&#39;,&#39;personal_details&#39;,&#39;marks_details&#39; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;0 row(s) in 1.2180 seconds &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: calibri; font-size: 16pt;&quot;&gt;=&amp;gt; Hbase::Table - student_management:student&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 20pt;&quot;&gt;3. listing out all tables&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;list&lt;/span&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;it will display all the tables that are present or created in HBase&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 20pt;&quot;&gt;4.Describe:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;describe &#39;&amp;lt;table name&amp;gt;&#39;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;example:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechshree:Hbase describe command&quot; border=&quot;0&quot; data-original-height=&quot;202&quot; data-original-width=&quot;659&quot; height=&quot;61&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTy0_jjDb37d-hNEB2oXjclXGMYaalSjxgABw7xNfzwINgNZ5-uSgDdbW-5yZ8y4KTWumxFVT7eCqrx_058ClpQnmips6CDUrlRJbpDSwrRSmmUAPIi2ZMRRnk_JTLavxjV3UQWap6iwTB/w200-h61/h1.JPG&quot; title=&quot;ITechshree:Hbase describe command&quot; width=&quot;200&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTy0_jjDb37d-hNEB2oXjclXGMYaalSjxgABw7xNfzwINgNZ5-uSgDdbW-5yZ8y4KTWumxFVT7eCqrx_058ClpQnmips6CDUrlRJbpDSwrRSmmUAPIi2ZMRRnk_JTLavxjV3UQWap6iwTB/&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;3.insert data into table:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;command to insert data into hbase table:&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;put &amp;nbsp;&#39;&amp;lt;hbase tatble name&amp;gt;&#39;, &#39;&amp;lt;row_key&amp;gt;&#39;,&#39;&amp;lt;column_family_name:column_name&amp;gt;&#39;,&#39;&amp;lt;column_value&amp;gt;&#39;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;example:&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;put &#39;student_management:student&#39;,&#39;1&#39;,&#39;personal_details:name&#39;,&#39;rohit&#39;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;put &#39;student_management:student&#39;,&#39;1&#39;,&#39;personal_details:age&#39;,16&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;put &#39;student_management:student&#39;,&#39;1&#39;,&#39;marks_details:math&#39;,78&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;put &#39;student_management:student&#39;,&#39;1&#39;,&#39;marks_details:eng&#39;,80&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;put &#39;student_management:student&#39;,&#39;2&#39;,&#39;personal_details:name&#39;,&#39;rita&#39;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;put &#39;student_management:student&#39;,&#39;2&#39;,&#39;personal_details:age&#39;,15&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;put &#39;student_management:student&#39;,&#39;2&#39;,&#39;marks_details:math&#39;,83&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;put &#39;student_management:student&#39;,&#39;2&#39;,&#39;marks_details:eng&#39;,90&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hbase put command&quot; border=&quot;0&quot; data-original-height=&quot;334&quot; data-original-width=&quot;670&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKm3WGYKoG0D5-clrEjS0jp6SCVLx8NGcJyilnzmiiILW33oMM9sw0CI8EUK5Eft66wRUPHbypJtBU7EqUyklSSU15WyNCxeGSMvD8xVR6JhQ_AybqGULLGxQYPUTr-SH77GNdvSBwIrqr/w320-h160/h2.JPG&quot; title=&quot;ITechShree:Hbase put command&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;4.To fetch details from hbase table:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;get &amp;lt;&#39;tablename&#39;&amp;gt;, &amp;lt;&#39;rowname&#39;&amp;gt;, &amp;lt;other &amp;nbsp;parameters&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;example:&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hbase get command&quot; border=&quot;0&quot; data-original-height=&quot;238&quot; data-original-width=&quot;652&quot; height=&quot;117&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHGzbeNJZPSLTgCh1xdaIzFv21mQfK0HmtbXQm2sy1Y7I47YDB1T2CqZWucji_MnkgnKMcKjuH5ATLrsrQOd2zag8lRAzeX6wcSdwe_vehhVv17fD-Mh2XO8gghTCL7nr6d1FDiiC8WemP/w320-h117/h3.JPG&quot; title=&quot;ITechShree:Hbase get command&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;5.alter table:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;It is used to &amp;nbsp;add or remove column &amp;nbsp;and &amp;nbsp;modify the table properties in hbase table&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;command to update versions :&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;alter &amp;lt;tablename&amp;gt;, NAME=&amp;gt;’&amp;lt;column familyname&amp;gt;’, VERSIONS=&amp;gt;&amp;lt;new version no&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;example&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;alter &#39;student_management:student&#39; ,NAME =&amp;gt;&#39;personal_details&#39;,VERSIONS =&amp;gt;2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechshree:Hbase alter command to add version&quot; border=&quot;0&quot; data-original-height=&quot;111&quot; data-original-width=&quot;711&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk5-X4LHfLB_Hr_wQoMrWkuPq5F2h6vfy0QpXvfQWoWLAhiGOzMDE27olRSEJXcnhFScrTvkfqPfw8zvswQ3haydsbB62oDTKedZl3EQguWTC6J-fLJuYQI-RIWx5-GTgYui62orhXXVmH/w320-h50/h4.JPG&quot; title=&quot;ITechshree:Hbase alter command to add version&quot; width=&quot;320&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk5-X4LHfLB_Hr_wQoMrWkuPq5F2h6vfy0QpXvfQWoWLAhiGOzMDE27olRSEJXcnhFScrTvkfqPfw8zvswQ3haydsbB62oDTKedZl3EQguWTC6J-fLJuYQI-RIWx5-GTgYui62orhXXVmH/&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk5-X4LHfLB_Hr_wQoMrWkuPq5F2h6vfy0QpXvfQWoWLAhiGOzMDE27olRSEJXcnhFScrTvkfqPfw8zvswQ3haydsbB62oDTKedZl3EQguWTC6J-fLJuYQI-RIWx5-GTgYui62orhXXVmH/&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;To delete and add column family:&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree: Hbase alter command to add and delete column family&quot; border=&quot;0&quot; data-original-height=&quot;221&quot; data-original-width=&quot;579&quot; height=&quot;122&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikL1qE1pLGvAxKwAXO2V1IlKq2vP5n3iQ01JgP7EqEHB-RDriu9PGIjn5s9lpLRCUub2QCLQbVw-s6KlzoDaY3R7QHv_afQDqvHOGhYyfkE1deSEZhAzklyalUK5Kv71FRjK9B8Rq2kC3Q/w320-h122/h5.JPG&quot; title=&quot;ITechShree: Hbase alter command to add and delete column family&quot; width=&quot;320&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikL1qE1pLGvAxKwAXO2V1IlKq2vP5n3iQ01JgP7EqEHB-RDriu9PGIjn5s9lpLRCUub2QCLQbVw-s6KlzoDaY3R7QHv_afQDqvHOGhYyfkE1deSEZhAzklyalUK5Kv71FRjK9B8Rq2kC3Q/&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;Note: syntax for method should be followed to update regions using alter command&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;To enable snappy compression on the existing HBase column family:&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree: Hbase alter command to enable compression&quot; border=&quot;0&quot; data-original-height=&quot;135&quot; data-original-width=&quot;663&quot; height=&quot;65&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5w49fdenDJbrPA_a3LK_HeLZCAI20sBUKhfakRCN2eAz6RqhMjyPDjBrmpsEvWUj2PYVDMEDtBXUTM4Nmcx8ZHMMMQCyhR6aPYpoZasM6jo-q2EWT1RYuLf9CTxa5Gn50hJgEXFo-zTGQ/w320-h65/h6.JPG&quot; title=&quot;ITechShree: Hbase alter command to enable compression&quot; width=&quot;320&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5w49fdenDJbrPA_a3LK_HeLZCAI20sBUKhfakRCN2eAz6RqhMjyPDjBrmpsEvWUj2PYVDMEDtBXUTM4Nmcx8ZHMMMQCyhR6aPYpoZasM6jo-q2EWT1RYuLf9CTxa5Gn50hJgEXFo-zTGQ/&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;6.Scan command:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;This command scans entire table and displays the table contents.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;scan &amp;lt;&#39;tablename&#39;&amp;gt;, {Optional parameters}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;example:&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree: Hbase scan command&quot; border=&quot;0&quot; data-original-height=&quot;227&quot; data-original-width=&quot;630&quot; height=&quot;115&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOKTod49BhmshAYgpVXDgvjZ09s-hBXevIHPAysoqU-XpgvA0N9s9F4a_g4qcwr_dgzhfhDrYNqwjUlxP9T8ozUShudKdjU4Of0yBqcBv_TeXE0QKFYe4xGKl1QhQh6bQJpLzYQYGIgQZp/w320-h115/h7.JPG&quot; title=&quot;ITechShree: Hbase scan command&quot; width=&quot;320&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOKTod49BhmshAYgpVXDgvjZ09s-hBXevIHPAysoqU-XpgvA0N9s9F4a_g4qcwr_dgzhfhDrYNqwjUlxP9T8ozUShudKdjU4Of0yBqcBv_TeXE0QKFYe4xGKl1QhQh6bQJpLzYQYGIgQZp/&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt; font-weight: bold;&quot;&gt;7.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;Delete command&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;This command will delete cell value at defined table of row or column.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;delete &amp;lt;&#39;tablename&#39;&amp;gt;,&amp;lt;&#39;row name&#39;&amp;gt;,&amp;lt;&#39;column name&#39;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;example:&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hbase scan command&quot; border=&quot;0&quot; data-original-height=&quot;46&quot; data-original-width=&quot;580&quot; height=&quot;25&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikON_JUPGxap3gomI1gyPzsMfdv2dj7SA8uSwTC0qGacaafcp45dKC7tOjoEionFjVqKs3pIAseygTm1eELocSoE3BUbA8FbSWFAjWLBq4jBFlXsCQjyaMO3mUn99OT3OTnYhPZX0g7-bt/w320-h25/h8.JPG&quot; title=&quot;ITechShree:Hbase scan command&quot; width=&quot;320&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikON_JUPGxap3gomI1gyPzsMfdv2dj7SA8uSwTC0qGacaafcp45dKC7tOjoEionFjVqKs3pIAseygTm1eELocSoE3BUbA8FbSWFAjWLBq4jBFlXsCQjyaMO3mUn99OT3OTnYhPZX0g7-bt/&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;8.Truncate:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;This command will truncate the records of hbase table but schema will be present.&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;It performs 3 functions-&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 35.35pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;Disables table if it already presents&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 35.35pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;Drops table if it already presents&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; margin-left: 35.35pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;Recreates the mentioned table&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;truncate &amp;lt;tablename&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;example:&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree:Hbase truncate command&quot; border=&quot;0&quot; data-original-height=&quot;107&quot; data-original-width=&quot;628&quot; height=&quot;55&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwDbpeecegutS5gazPr5bgpfc2FByxbevz-BuuzAesf7_lysh4nvajheFckOH6PnHaHFBcfvLIt021X8Wmqkj0x2CiYZxjpR7UwMADzBn3bjWVipwyEeRuRBAQ3bOBtK3Uq1QOezWTsH5E/w320-h55/h9.JPG&quot; title=&quot;ITechShree:Hbase truncate command&quot; width=&quot;320&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwDbpeecegutS5gazPr5bgpfc2FByxbevz-BuuzAesf7_lysh4nvajheFckOH6PnHaHFBcfvLIt021X8Wmqkj0x2CiYZxjpR7UwMADzBn3bjWVipwyEeRuRBAQ3bOBtK3Uq1QOezWTsH5E/&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;9.Drop&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 16pt;&quot;&gt;To drop the table present in HBase, first we have to disable it&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#222222&quot; face=&quot;Calibri&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;drop &amp;lt;&#39;table name&#39;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff3300; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 21.3333px;&quot;&gt;example:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;ITechShree: Hbase drop command&quot; border=&quot;0&quot; data-original-height=&quot;315&quot; data-original-width=&quot;635&quot; height=&quot;159&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGUHe5nRIc5ARlZlswgvRQf7AWL7kyb1XOdu4CZ8PC3iPHbTq47KtYrDMWKlQqti8J45c8K0FRjfC-T9_2RQnComQuITWFKiWkUrN3FmvbWuI4_2Qe2k9evgonyyr3ojsTJZeEROjc_Arw/w320-h159/h10.JPG&quot; title=&quot;ITechShree: Hbase drop command&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;same like disable , enable command is present which is used to enable hbase table&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;Hope you got idea &amp;nbsp;about the basic commands in &amp;nbsp;Hbase &amp;nbsp;and how to run &amp;nbsp;in hbase shell.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;Please &amp;nbsp;&amp;nbsp;follow for more updates.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/7983851923377088643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/hbase-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/7983851923377088643'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/7983851923377088643'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/hbase-commands.html' title='Hbase commands'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTy0_jjDb37d-hNEB2oXjclXGMYaalSjxgABw7xNfzwINgNZ5-uSgDdbW-5yZ8y4KTWumxFVT7eCqrx_058ClpQnmips6CDUrlRJbpDSwrRSmmUAPIi2ZMRRnk_JTLavxjV3UQWap6iwTB/s72-w200-h61-c/h1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-372156733373586819</id><published>2020-05-25T13:15:00.002+05:30</published><updated>2020-09-29T09:29:05.061+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Hbase"/><title type='text'>Apache Hbase </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 24pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Hbase is a distributed No SQL system built on top of HDFS(Hadoop distributed file system).&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;It is derived from Google&#39;s Bigtable &amp;nbsp;and&amp;nbsp; &lt;/span&gt;stores&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;huge volume of structured &amp;nbsp;or unstructured data over discrete columns instead of rows and provides consistent read and write access.This &amp;nbsp;makes &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;use this HBase feature for high-speed requirements&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Data representation in Hbase Table:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;An HBase table is divided into rows, column families, columns, and cells. Row keys are unique keys to identify a row, column families are groups of columns, columns are fields of the table, and the cell contains the actual value or the data.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 10pt;&quot;&gt;Cell&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Timestamp&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;is a combination of date and time, used for versioning of data in hbase table.. Whenever data is stored, it is stored with its timestamp. &lt;/span&gt;&lt;span style=&quot;color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img alt=&quot;ITechShree:Data representation in Hbase Table&quot; border=&quot;0&quot; data-original-height=&quot;372&quot; data-original-width=&quot;651&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHlFS5iYKU_6teAMOX73wg5A7tsma9Pzi4Nnz9YSqcZCi9KkeTK46rnGPkrF-Bi9-b5wzL8mZCWzI6Vxte4cWQkW3Myexn4ai5AObq-xPPJmeFNeane_CMsZKIqcGJtN3r2sGFhm_-ETsQ/s400/hbase1.JPG&quot; title=&quot;ITechShree:Data representation in Hbase Table&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 14pt;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Hbase architecture:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;There are 3 types of servers &amp;nbsp;present in a master-slave type of HBase Architecture. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; mso-list: l0 level1 lfo1; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;HBase HMaster&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; mso-list: l0 level1 lfo1; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Region Server&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; mso-list: l0 level1 lfo1; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Zookeeper.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Whenever a client sends a read/write request, HMaster receives the request and forwards it to the corresponding region servers.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;T&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;hese servers serve data for reads and write purposes&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Zookeeper, maintains live &amp;nbsp;cluster state and coordinates with all components.&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img alt=&quot;ITechShree:Hbase Architecture&quot; border=&quot;0&quot; data-original-height=&quot;544&quot; data-original-width=&quot;664&quot; height=&quot;327&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoNn8vF11iZXE2SNKgFt-Km0F_c1jVnTZ-RBMTSIZzIMXGyyOyYB7lVrvApzclvs-vneWC3V7GrJj9RuNg-4FE43JhCtzbNx0Bc21ekYZsrhb2sgaH3zp-W_xlFzAgdURaDIAkR0iXYe8Q/s400/hbase+2.JPG&quot; title=&quot;ITechShree:Hbase Architecture&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; margin-top: 12pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0.75pt;&quot;&gt;HMaster&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0.75pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 7.5pt; margin-top: 7.5pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;HBase HMaster acts as a master server in &amp;nbsp;Hbase architecture which assigns regions to region servers in the Hadoop cluster for load balancing and does DDL operations in cluster. There is only one HMaster exists in a cluster .In case of multiple master setup, &amp;nbsp;there is only single active master at a time.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; margin-top: 12pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;b&gt;ZooKeeper:&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;Zookeeper is a centralized monitoring server which maintains configuration information and provides distributed synchronization.It &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Provides ephemeral nodes, which represent different region servers and tracks &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;server failure and network partitions&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Region Server :&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Region server is &lt;/span&gt;responsible&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;for handling and executing &amp;nbsp;read, write, update, and delete requests from clients .&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Each region server (slave) serves a set of regions &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;which &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;are comprised of Column families&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;HBase tables are partitioned into multiple regions with every region storing multiple table’s rows.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;There are following components of a Region Server, which runs on an HDFS data node:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Block Cache&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;– This is the read cache&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;and &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;stores frequently read data in memory&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;. W&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;hen&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;the block cache &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;becomes &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;full, recently used data is evicted.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;MemStore&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;- This is the write cache &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;.It &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;stores new data &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;which &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;is not yet written to the disk. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;O&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;ne MemStore&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;exists &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;per column family per region.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Write Ahead Log (WAL)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;-Write Ahead Log is a file on the distributed file system&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;ithat &amp;nbsp;stores new data that is not persisted to permanent storage.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Moreover, we also use it for recovery in the case of failure.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;HFile&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;-It store the rows as sorted KeyValues on disk.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; data-original-height=&quot;336&quot; data-original-width=&quot;687&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsag7yq_iu3QQrU8YDq5KRZ-j4qgrGrFaWpRmb78crB-zYYpHQc7GOKsrErglNap2vN1YgexFsHb260oLAWVB-75sP_bEX9lbmLluGSHzTL78pGvsozWXdMOJh_-k9i0AKJ_ZIzTW98poE/s320/habse+3.JPG&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 14pt;&quot;&gt;HBASE write:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;1.When Client wants to write data , in turn first communicates with Regions server and then regions &amp;nbsp;&amp;nbsp;writes the data to the WAL (Write Ahead Log).&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; margin-left: 35.35pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;The edits are then appended at the end of the WAL file.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; margin-left: 35.35pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;This WAL file is maintained in every Region Server and Region Server uses it to recover data which is not committed to the disk.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;2. As soon as the data is written to the WAL&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;,&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;it is placed in the MemStore&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;where the data &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;gets &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;sorted and &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;then,&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;flushes into HFile. &amp;nbsp;Memstore &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;is used &amp;nbsp;for &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;stor&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;ing &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;data in a Distributed file system based on Row Key. Memstore &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;are placed &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;in Region server main memory &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;HFiles are written into HDFS. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Only one&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;MemStore &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;exists &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;per column family&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;and &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;updates are sorted per column family.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 14pt;&quot;&gt;Hbase Read:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Client wants to read data from Regions ,&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;the scanner first looks for the Row cell in Block cache. Here all the recently read key value pairs are stored.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;if it &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;fails &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;then &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;the data &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;moves to memstore as&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Client can have direct access to Mem store, and it can request for data.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;3. &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Client approaches HFiles to get the data. The data are fetched and retrieved by the Client.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Now you have got idea about basic architecture of hbase and how data flows through hbase &amp;nbsp;insertion ,updation and read .&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Please do &amp;nbsp;follow and commenting if needed and &amp;nbsp;we will be discussing hbase commands in next blog.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/372156733373586819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/apache-hbase.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/372156733373586819'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/372156733373586819'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/apache-hbase.html' title='Apache Hbase '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHlFS5iYKU_6teAMOX73wg5A7tsma9Pzi4Nnz9YSqcZCi9KkeTK46rnGPkrF-Bi9-b5wzL8mZCWzI6Vxte4cWQkW3Myexn4ai5AObq-xPPJmeFNeane_CMsZKIqcGJtN3r2sGFhm_-ETsQ/s72-c/hbase1.JPG" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-4573423679864855555</id><published>2020-05-17T10:04:00.002+05:30</published><updated>2020-05-27T19:03:24.422+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="No Sql Database"/><title type='text'>No Sql Database</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;A NoSQL database &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;can be called as &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;non SQL or non relational &amp;nbsp;database that provides a&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;way &amp;nbsp;to &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;store &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;retrieve &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;data &amp;nbsp;modeled &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;in non &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;tabular &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;format.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ff6600; font-family: calibri; font-size: 16pt;&quot;&gt;Why NoSqL?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff6600; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #080e14; font-family: calibri; font-size: 12pt;&quot;&gt;A traditional database system &amp;nbsp;&amp;nbsp;&amp;nbsp;prefers more predictable, structured data&lt;/span&gt;&lt;span style=&quot;font-family: calibri;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;and has been dominating the database industry for the past few years. &lt;/span&gt;Nowadays&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;as business grows,social media dominates there is a need &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;1.support a large number of &amp;nbsp;concurrent users &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;2.Handle huge amount of &amp;nbsp;&amp;nbsp;semi structured &amp;nbsp;data as well as unstructured data&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;3.High availability system without any downtime&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;4.Huge amount of data insertion and population&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;Hence , &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;Relational databases are unable to meet these new requirements, and enterprises are therefore turning to NoSQL database technology.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ff6600; font-family: calibri; font-size: 16pt;&quot;&gt;RDBMS vs No SQL Database&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff6600; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;right&quot;&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0.05pt;&quot;&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-color: rgb(0, 0, 0); border-style: solid; border-width: 1pt; padding: 0pt 2.75pt; width: 240pt;&quot; valign=&quot;top&quot; width=&quot;320&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;RDBMS&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: none; border-right: 1pt solid rgb(0, 0, 0); border-top: 1pt solid rgb(0, 0, 0); padding: 0pt 2.75pt; width: 240.8pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 16pt;&quot;&gt;&amp;nbsp;No Sql DBMS&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 0.05pt;&quot;&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: 1pt solid rgb(0, 0, 0); border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240pt;&quot; valign=&quot;top&quot; width=&quot;320&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;It &amp;nbsp;is used to process structured data &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: none; border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240.8pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;Its is used for unstructured and semi structured data.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 0.05pt;&quot;&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: 1pt solid rgb(0, 0, 0); border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240pt;&quot; valign=&quot;top&quot; width=&quot;320&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;It has fixed schema&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: none; border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240.8pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;It does not have any predefined &amp;nbsp;schema&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 0.05pt;&quot;&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: 1pt solid rgb(0, 0, 0); border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240pt;&quot; valign=&quot;top&quot; width=&quot;320&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;It is vertically scalable so to manage the increasing load by increase in CPU, RAM, SSD on a single server.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;Hence it costs higher&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: none; border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240.8pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;It is horizontally scalable so to handle the large traffic you can add few commodity servers to support that. &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;So it is cost effective&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 0.05pt;&quot;&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: 1pt solid rgb(0, 0, 0); border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240pt;&quot; valign=&quot;top&quot; width=&quot;320&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;It uses specific language to manipulate data like insert ,update etc&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: none; border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240.8pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;Its is based on object oriented APIs&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 0.05pt;&quot;&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: 1pt solid rgb(0, 0, 0); border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240pt;&quot; valign=&quot;top&quot; width=&quot;320&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;It follows ACID properties(Atomicity, Consistency, Isolation, Durability).&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: none; border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240.8pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;It folows &amp;nbsp;Brewers CAP theorem(Consistency, Availability and Partition tolerance).&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 0.05pt;&quot;&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: 1pt solid rgb(0, 0, 0); border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240pt;&quot; valign=&quot;top&quot; width=&quot;320&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;Example &lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;MySql, Oracle, Sqlite, Postgres and MS-SQL.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(255, 255, 255); border-bottom: 1pt solid rgb(0, 0, 0); border-left: none; border-right: 1pt solid rgb(0, 0, 0); border-top: none; padding: 0pt 2.75pt; width: 240.8pt;&quot; valign=&quot;top&quot; width=&quot;321&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;MongoDB, BigTable, Redis, Cassandra, Hbase, Neo4j &amp;nbsp;etc are popular No SQL databases.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ff6600; font-family: calibri; font-size: 16pt;&quot;&gt;Types of No Sql database system&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ff6600; font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;four major types of NoSQL databases emerged: document databases, key-value databases, column based database , and graph databases. &lt;/span&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;Let’s explain each type.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;Document databases:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;Document-Oriented NoSQL DB stores and retrieves data as a key value pair but the value part &amp;nbsp;associated with key is stored as a document. Each document is self-contained, which means no schema is required – giving a significant degree of flexibility over the data you have.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;Amazon SimpleDB, CouchDB, MongoDB, &amp;nbsp;Lotus Notes are popular Document oriented DBMS systems.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;Key-value databases:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;Here data is stored in key/value pairs format ,hence it can handle tons of data and heavy load.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;These &amp;nbsp;are the most basic type of NoSQL database and very &amp;nbsp;useful for storing fairly basic information, like details about a customer.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;Redis, Dynamo, Riak &lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;etc &lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;are &lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;popular &lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;key-value store Data&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;ases&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;b&gt;Column based database:&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;Column-based databases stored &amp;nbsp;data into discrete columns&lt;/span&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;instead of using rows.&lt;/span&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;It doesn’t consume space for a column when its value not exists or null.&lt;/span&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;Thus it increase speed while querying the data and deliver high performance on aggregation queries like SUM, COUNT, AVG, MIN etc. as the data is readily available in a column.&lt;/span&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/apache-hbase.html&quot; target=&quot;_blank&quot;&gt;Hbase&lt;/a&gt; and Cassandra &lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: calibri; font-size: 12pt;&quot;&gt;are the examples of &lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;columnar databases&lt;/span&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;Graph databases: &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: calibri; font-size: 12pt;&quot;&gt;A graph database is any storage system that provides index-free adjacency which means that every element contains a direct pointer to its adjacent element and no index lookups are necessary.&lt;/span&gt;&lt;span style=&quot;color: #42494f; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;Here storage is in graphical format where node represents data and edge &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;describes &lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;their relationship to other nodes.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;These are &amp;nbsp;useful for applications ranging from &lt;/span&gt;&lt;a href=&quot;https://neo4j.com/use-cases/fraud-detection/&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #333333; font-family: Calibri; font-size: 12pt;&quot;&gt;fraud detection&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;to smart homes to search.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: calibri; font-size: 12pt;&quot;&gt;Neo4j, GraphDB etc. &amp;nbsp;are popular Graph Databases.&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;As enterprises &amp;nbsp;moves &amp;nbsp;to the Digital Economy &amp;nbsp;platform driven &amp;nbsp;by cloud, mobile, social media, and big data technologies – &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;Technical ,operations and development &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;teams &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;need &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;to&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;focus more in building and maintaining &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;web, mobile, and Internet of Things (IoT) applications faster &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;at &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;greater scale. NoSQL is &amp;nbsp;a demanding &amp;nbsp;and the preferred database technology to support these applications.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/4573423679864855555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/no-sql-database.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/4573423679864855555'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/4573423679864855555'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/no-sql-database.html' title='No Sql Database'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-5185101351705743597</id><published>2020-05-14T12:52:00.003+05:30</published><updated>2020-09-29T09:28:49.999+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Pig"/><title type='text'>Apache Pig Overview</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: center; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-align: center; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Apache Pig is an abstraction over &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/working-modelof-mapreduce-map-reduce-is.html&quot;&gt;Mapreduce&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;. Its is a tool &amp;nbsp;or platform which is used to analyze &amp;nbsp;a large set of data .It uses high level language known as Pig Latin .This provides various operator by which programmer &amp;nbsp;can develop their own &amp;nbsp;functions for reading ,writing ,analyzing and processing data.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A pig can eat anything, similarly Apache pig is used to analyze any kind of data whether its structured or unstructured. This concept is incorporated here.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Programmer writes scripts using Pig Latin and Apache Pig engine that accepts this scripts as input and coverts internally into Map reduce jobs.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;There are two modes in which Apache Pig functions&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;namely, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Local Mode &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;and &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;HDFS mode&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 175%; margin-bottom: 6pt; margin-top: 12pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; line-height: 175%;&quot;&gt;Local Mode&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; line-height: 175%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;In this mode, Apache Pig is designed to execute in a &amp;nbsp;single JVM and used for development experimenting and prototyping.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Here, all the files are installed and run from your local host and local file system. &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;To access the &amp;nbsp;command or grunt shell in this mode &amp;nbsp;we need to &amp;nbsp;execute&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 0); font-family: Calibri; font-size: 12pt;&quot;&gt;Pig -x local&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 175%; margin-bottom: 6pt; margin-top: 12pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; line-height: 175%;&quot;&gt;MapReduce Mode&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; line-height: 175%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Its also known as hadoop mode and it is default mode in Apache Pig. Here, we load or process the data that resides &amp;nbsp;in the Hadoop File System (HDFS) . In this mode, whenever we execute the Pig Latin statements to process the data, a MapReduce job is invoked in the back-end to perform a particular operation on the data that exists in the HDFS.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;To access the &amp;nbsp;command or grunt shell in this mode &amp;nbsp;we need to &amp;nbsp;execute&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 0); font-family: Calibri; font-size: 12pt;&quot;&gt;Pig or pig -x mapreduce&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Basically, Pig scripts can be executed in three modes, namely, interactive mode, batch mode, and embedded mode. &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Interactive Mode &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;(Grunt shell) − In this mode Apache Pig is executed in a Grunt shell. In this shell, we can enter the Pig Latin statements and get the output (using Dump operator).&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Batch Mode &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;(Script) − Here, we can run scripts file using .pig extension. These files contain Pig Latin commands. We write Pig scripts &amp;nbsp;in a file and store it in location and using the terminal we use that particular location and &amp;nbsp;the file and run the code present in that file.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Embedded Mode&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;(UDF) − we can &amp;nbsp;define &amp;nbsp;our own functions (&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;U&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;ser &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;D&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;efined &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;F&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;unctions) in programming languages such as Java, and using them in our script.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Important features of Apache Pig.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; margin-top: 12pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;i. Inbuilt &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;API&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;It provides &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;huge set of operators such as join, sort, filer, etc.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;To perform several operations.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;ii. &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Non complexity in &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;programming&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Pig does not include complex code used in Mapreduce Programming.Instead Pig uses Pig latin which is similar to SQL .These queries internally gets converted to Map reduce jobs.So it has grown the ease of programming.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;iii. Optimization &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;In Apache Pig the tasks optimize their execution automatically. Hence, &amp;nbsp;programmers only need to &amp;nbsp;focus on the semantics of the language rather than efficiency..&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;iv. &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;User Defined Functions&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;It means users can develop their own functions(User-defined Functions ) and invoke or embed them to read, process, and write data, using the existing operators.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;v. &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Data f&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;lexibility&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Handles all kinds of data whether it is structured or unstructured and &amp;nbsp;stores the results in&lt;a href=&quot;https://www.blogger.com/goog_804088162&quot;&gt; &lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;HDFS&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Pig Architecture&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Now moving to Pig Architecture and lets explain below diagram&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxW5cF7XZ82p2lfEPACC1fn2tUb4-5rug1tx2nhU0iRXAL-CFX4LzbXQK9upYJc7Bhk2Mu8xS4ykDnlfAKj0nhA7XCo-m2tvWm3wGX45LYllbI6JeWC2vldm3HYjii0PqcYXycwW00BlAS/s1600/pig1.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;ITechShree:Pig Overview&quot; border=&quot;0&quot; data-original-height=&quot;281&quot; data-original-width=&quot;649&quot; height=&quot;138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxW5cF7XZ82p2lfEPACC1fn2tUb4-5rug1tx2nhU0iRXAL-CFX4LzbXQK9upYJc7Bhk2Mu8xS4ykDnlfAKj0nhA7XCo-m2tvWm3wGX45LYllbI6JeWC2vldm3HYjii0PqcYXycwW00BlAS/s320/pig1.JPG&quot; title=&quot;ITechShree:Pig Overview&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Initially the Pig Scripts are &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;processed &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;by the Parser&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;for &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;checking &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;syntax &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;type &amp;nbsp;and other miscellaneous &amp;nbsp;of scripts&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;and outputs &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;a DAG (directed acyclic graph), which represents the Pig Latin statements and logical operators.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;The logical operators of the script are represented as the nodes and the data flows are represented as edges in DAG.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;After that the logical plan (DAG) is passed to the logical optimizer .It carries out the logical optimizations such as projection and pushdown. &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Then compiler compiles the optimized logical plan into a series of MapReduce jobs. &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Finally, all the MapReduce jobs are submitted to Hadoop in a sorted order and &amp;nbsp;produces the desired results .&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;This is all about basics understanding of Apache Pig .Now please go through the Pig Latin scripts and its commands like use of store ,load etc to write scripts .&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;See&amp;nbsp; you in next blog!!&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 6pt; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/5185101351705743597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/apache-pig-overview.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/5185101351705743597'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/5185101351705743597'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/apache-pig-overview.html' title='Apache Pig Overview'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxW5cF7XZ82p2lfEPACC1fn2tUb4-5rug1tx2nhU0iRXAL-CFX4LzbXQK9upYJc7Bhk2Mu8xS4ykDnlfAKj0nhA7XCo-m2tvWm3wGX45LYllbI6JeWC2vldm3HYjii0PqcYXycwW00BlAS/s72-c/pig1.JPG" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-8953181887065079801</id><published>2020-05-12T19:41:00.010+05:30</published><updated>2020-09-29T09:27:52.156+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Flume"/><title type='text'>Flume Spooling directory example</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;I am explaining you&amp;nbsp; how to configure flume configuration file .&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;I basically came across many times when people get stuck multiple times while configuring flume agent with respective source ,sink and channel. Here ,I shall ease you by providing an example to design flume configuration file though which you can extract data from source to sink via channel.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Let me demonstrate with an example .&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Here I used only the parameters which are&amp;nbsp; mandatory to configure source ,sink and channel for type spool, hdfs and memory respectively.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;you can add more parameters under source ,sink and channel if needed&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.sinks = &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;hdfssink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.channels = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;#Defining source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.type = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -270.4pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;spoolDir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -270.4pt;&quot;&gt;&lt;b style=&quot;text-indent: -360.533px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;text-indent: -360.533px;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.5pt; letter-spacing: 0pt;&quot;&gt;the&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;text-indent: -360.533px;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.5pt; letter-spacing: 0pt;&quot;&gt;directory from which to read files&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -270.4pt;&quot;&gt;&lt;b style=&quot;text-indent: -360.533px;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.5pt; letter-spacing: 0pt;&quot;&gt;from&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;text-indent: -360.533px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -270.4pt;&quot;&gt;&lt;b style=&quot;text-indent: -360.533px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -270.4pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;fileHeader&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -270.4pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;text-indent: -270.4pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;text-indent: -270.4pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.5pt; letter-spacing: 0pt;&quot;&gt;Whether to add header storing&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -270.4pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.5pt; letter-spacing: 0pt;&quot;&gt;absolute file path name&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;#defining sink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.sinks.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;hdfssink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.type = hdfs &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.sinks.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;hdfssink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.hdfs.path =&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&amp;lt;path name in hdfs to store file&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;#defining channel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.channels.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.type = memory&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.channels.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.capacity = 10000&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;#Binding channel between source and sink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.channels = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.sinks.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;hdfssink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;.channel = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11.5pt;&quot;&gt;Please find the below example for flume spool directory source:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.sinks = &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;hdfssink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.channels = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;#Defining source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.type = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -270.4pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;spoolDir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;=&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -270.4pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;calibri light&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;user/itechshree/out98&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;fileHeader&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;true&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;#defining sink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.sinks.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;hdfssink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.type = hdfs &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -271.3pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.sinks.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;hdfssink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.hdfs.path =&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 270.4pt; mso-char-indent-count: -23.5000; text-indent: -271.3pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;calibri light&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;user/itechshree/&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;calibri light&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;kafka&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;#defining channel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.channels.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.type = memory&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.channels.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.capacity = 10000&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;#Binding channel between source and sink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b0f0; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.sources.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;spooldir&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;source&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.channels = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffc000; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Agent1&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.sinks.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #00b050; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;hdfssink&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;.channel = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #8064a2; font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Mchannel&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;Create flume1.conf file keeping this code and run this below command in CLI:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;dejavu sans mono&amp;quot;; font-size: 13.5pt; letter-spacing: 0pt;&quot;&gt;flume-ng agent -n Agent1 -c conf -f flume1.conf&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;dejavu sans mono&amp;quot;; font-size: 13.5pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;dejavu sans mono&amp;quot;; font-size: 13.5pt; letter-spacing: 0pt;&quot;&gt;Now after receiving the successful message from console ,files under out98 folder will &amp;nbsp;go to hdfs directory.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;dejavu sans mono&amp;quot;; font-size: 13.5pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; data-original-height=&quot;147&quot; data-original-width=&quot;645&quot; height=&quot;72&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhjqDKljetpFqDZkbKCkEEE2O0p5F01s3JwPniBJBeOy2chmqQCqfMMUFjLZV6CiWey7TpIES_zzT6Xo97zKh0_-LPSdRvnbkbvzQ9ZTvZdw_WPdr3OJ1WHW8hieux9NMcpa63WCxt4WoA/s320/fl3.JPG&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Please try more using other source avro,netcat etc.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Next I shall discuss about &lt;b&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/apache-pig-overview.html&quot; target=&quot;_blank&quot;&gt;Apache Pig.&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;See you in my next blog!!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/8953181887065079801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/flume-spooling-directory-example.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8953181887065079801'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8953181887065079801'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/flume-spooling-directory-example.html' title='Flume Spooling directory example'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhjqDKljetpFqDZkbKCkEEE2O0p5F01s3JwPniBJBeOy2chmqQCqfMMUFjLZV6CiWey7TpIES_zzT6Xo97zKh0_-LPSdRvnbkbvzQ9ZTvZdw_WPdr3OJ1WHW8hieux9NMcpa63WCxt4WoA/s72-c/fl3.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-562415060540302409</id><published>2020-05-12T10:50:00.014+05:30</published><updated>2020-10-21T12:55:33.765+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Flume"/><title type='text'>Learn Flume</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;You know that Apache sqoop which is a ingestion tool designed to
transfer data between RDBMS and Hadoop system.Let me discuss about Apache Flume.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Apache Flume&amp;nbsp; is a data ingestion tool in Hadoop system and
has been developed by Cloudera to collect ,process, aggregating streaming data
from various&amp;nbsp; servers &amp;nbsp;and places in HDFS(Hadoop distributed file
system ) in a efficient and reliable manner.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white; color: #333333; font-size: 12pt; line-height: 115%;&quot;&gt;Initially,
Apache Flume came into market to handle only log data of server. Later, it was equipped to
handle event data as well.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;It is designed to perform high volume
ingestion of event based data into hadoop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;As of now we can assume one event
specifies one message which is going to be ingested&amp;nbsp; in the hdfs. Once the data brings in hdfs, we
can perform own analysis on top of it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Flume is easily &amp;nbsp;integrated with other hadoop ecosystem
components including hbase and Solr.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Flume Architecture:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span face=&quot;&quot; style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;Let
me discuss about how flume works.&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span face=&quot;&quot; style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img alt=&quot;ITechShree:Flume Architecture&quot; border=&quot;0&quot; data-original-height=&quot;338&quot; data-original-width=&quot;652&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJA2bkC3AvCKNUmtzerbZwOHy0H-CPQFNGR6wo8zXJOBVDnDGeaLhZaMusY1OkOnZBZ1rDcKd5VghIMN_5vNHGZ5GomcYFJKxWn-6eTEAl7QzhD7H5PTKB1UIESXh8JGvDa_cQ7PnrFdc7/s320/fl.JPG&quot; title=&quot;ITechShree:Flume Architecture&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 0in 20.75pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Event:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;A
single message &amp;nbsp;transported by flume is
known as Event.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 0in 20.75pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 0in 20.75pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Client: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;It&amp;nbsp; generates events and sends it to one or more
agents.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 0in 2.75pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 0in 20.75pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Agent:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;An
agent is responsible for &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;receiving events from clients or other agents. Afterward, it
forwards it to its sink or agent&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;. It is a
Java virtual machine in which Flume runs and configures and hosts the source, sink
and channel.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 0in 2.75pt; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 0in 20.75pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Source:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;Source receives
data from data generators as events and &amp;nbsp;writes them on one or channels. It collects
the data from various&amp;nbsp; sources, like
exec, avro, JMS, spool directory, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 0in 20.75pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Sink:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;It is
that component which consumes events from a channel and delivers data to the
destination or next hop. &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;Also, we can say that the sink’s destination is might be
another agent or the central stores. &lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;There are multiple
sinks available that delivers data to a wide range of destinations. Example:
HDFS, HBase, logger etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 0in 20.75pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Channel: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;I&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt;t acts as a bridge between the sources and the sinks in Flume and
responsible for buffering the data. &lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Events are
ingested by the sources into the channel and drained by the sinks from the
channel.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 12pt;&quot;&gt; There are multiple channels available like memory, JDBC etc.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Now we
will&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;see how we can configure&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Flume Agent .&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img alt=&quot;ITechShree:How to write Flume configuration file&quot; border=&quot;0&quot; data-original-height=&quot;491&quot; data-original-width=&quot;690&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTyzeuYfbQLnFV-0m3r3IRmFagwvsC9wq5wtYe-mM9M7x3icS7T-__BT0kiyR26eI5956XnOlvpVYJmKarwA02SZuCso5CMi4bXwhAKyaUKI1RSOBAnfpQmlvCGhHnv-oxyPyTATk_GbYF/s400/fl2.JPG&quot; title=&quot;ITechShree:How to write Flume configuration file&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;p style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Each
flume source and sink type having different properties which need to
be declared in configuration file respectively .&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;The
command for execution of configuration file(.conf file) is:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;font-size: 11pt;&quot;&gt;flume-ng agent&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;font-size: 11pt;&quot;&gt;-n &amp;lt;flume agent name declared in .conf file&amp;gt;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;font-size: 11pt;&quot;&gt;-c conf&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;font-size: 11pt;&quot;&gt;-f &amp;lt; path of configuration file in hadoop system &amp;gt;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Now we will be configuring flume agent&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;where source is avro ,channel is memory and sink is hdfs.&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;color: #00b0f0; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;color: #00b0f0; font-size: 11pt;&quot;&gt;# Declaring source,sinks and channel of Flume agent&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.sources = &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;avrosource&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;i&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;i&gt;&lt;b&gt;.sinks = &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;color: #00b050; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;hdfssink&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.channels = &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #8064a2; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Mchannel&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt;&quot;&gt;#Defining source&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.sources.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;avrosource&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.type&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt;&quot;&gt;=avro&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.sources.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;avrosource&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.bind =&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt;&quot;&gt;&amp;lt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;Ip
address of avro source&lt;/span&gt;&amp;gt;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.sources.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;avrosource&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.port =&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt;&quot;&gt;&amp;lt;&lt;span style=&quot;color: #00b0f0;&quot;&gt;port
number of avro source&lt;/span&gt;&amp;gt;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt;&quot;&gt;#defining
sink&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.sinks.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #00b050; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;hdfssink&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.type = hdfs&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.sinks.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #00b050; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;hdfssink&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.hdfs.path =&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;font-size: 11pt;&quot;&gt;&amp;lt;path name in hdfs to store file&amp;gt;&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt;&quot;&gt;#defining
channel&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.channels.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #8064a2; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Mchannel&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.type = memory&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.channels.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #8064a2; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Mchannel&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.capacity = 10000&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;b style=&quot;color: #00b0f0; font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt;&quot;&gt;#Binding
channel between source and sink&lt;/b&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.sources.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;avrosource&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.channels = &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #8064a2; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Mchannel&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0.2in;&quot;&gt;&lt;span style=&quot;color: #ffc000; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Agent1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.sinks.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #00b050; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;hdfssink&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;.channel = &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #8064a2; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Mchannel&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in; margin-left: 0.29in;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in; margin-left: 0.29in;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;This
is all about basic understanding of flume and now you get the idea
&amp;nbsp;the how to configure flume agent and execute.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;please
follow &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;ItechShree
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;blog
for  receiving more updates.Next will give you a example how to
configure &lt;a href=&quot;https://www.blogger.com/blog/post/edit/5130236803296751736/562415060540302409#&quot;&gt;flume
as spooling directory&lt;/a&gt; source.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;See
you in my next blog!!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/562415060540302409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/learn-flume-in-detail.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/562415060540302409'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/562415060540302409'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/learn-flume-in-detail.html' title='Learn Flume'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJA2bkC3AvCKNUmtzerbZwOHy0H-CPQFNGR6wo8zXJOBVDnDGeaLhZaMusY1OkOnZBZ1rDcKd5VghIMN_5vNHGZ5GomcYFJKxWn-6eTEAl7QzhD7H5PTKB1UIESXh8JGvDa_cQ7PnrFdc7/s72-c/fl.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-8789859690249844078</id><published>2020-05-11T12:53:00.005+05:30</published><updated>2020-10-03T13:58:41.512+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Sqoop"/><title type='text'>SQOOP Import using JAVA example</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;First of all download the hadoop common jar and cloudera sqoop jars, sqoop jdbc driver for rdbms &amp;nbsp;and add it to your build path.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;package java.sqoop;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import com.cloudera.sqoop.SqoopOptions;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import com.cloudera.sqoop.tool.ImportTool;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import java.io.FileReader;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import java.io.IOException;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import java.io.InputStream;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import java.io.PrintStream;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import java.sql.Connection;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import java.sql.SQLException;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import java.util.Calendar;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import java.util.Date;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import org.apache.hadoop.conf.Configuration;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import org.apache.hadoop.fs.FSDataOutputStream;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import org.apache.hadoop.fs.FileSystem;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;import org.apache.hadoop.fs.Path;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;public class Java_Sqoop_Import&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;private static Connection Con;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;private static int i = 0;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;private static int c = 0;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;private static String Location = &quot;&quot;;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;private static SqoopOptions SqoopOptions = new SqoopOptions();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;private static void setUp&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Connection&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;() throws IOException, SQLException&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Calendar now = Calendar.getInstance();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Date &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;current_date&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;= now.getTime();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;String s&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;tring_&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;date = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;current_date&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;.toString();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;String month = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;current_date&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;.substring(4, 7);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;String day = &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;current_date&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;.substring(8, 10);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Date sys&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;tem_&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;date = now.getTime();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Location = &quot;/&amp;lt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;hdfs_path_destination&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;gt;/&quot; + month + &quot;/day&quot; + day + &quot;_&quot;;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Configuration config = new Configuration();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;FileSystem fs = null;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;FSDataOutputStream out = null;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;InputStream in = null;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;try {&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;fs = FileSystem.get(config);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Path d&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;e&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;s&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;nation_&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;path&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;_&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Obj = new Path(Location);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;String str = Location;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;for (i = 0; i &amp;lt;= 4; i += 1) {&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;str = Location + i;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;d&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;e&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;s&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;nation_&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;path&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;_&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Ob&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;j&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;= new Path(str);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;if (!fs.exists(d&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;e&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;s&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;nation_&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;path&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;_&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Ob&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;j&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;))&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Location = str;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;System.out.println(&quot;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Target directory in hdfs : &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&quot; + Location);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;break;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;catch (Exception e)&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;finally {&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;if (in != null)&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;in.close();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;if (out != null)&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;out.close();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;if (fs != null)&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;fs.close();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;config.addResource(new Path(&quot;/hadoop_installation_folder/hadoop-2.4.0/etc/hadoop/core-site.xml&quot;));&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;config.addResource(new Path(&quot;/hadoop_installation_folder/hadoop-2.4.0/etc/hadoop/hdfs-site.xml&quot;));&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setConnectString(&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;“&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;”&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setUsername(&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;“&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;username&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;”&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setPassword(&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;“&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 0); font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;password&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;”&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setNumMappers(1);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setSqlQuery(&quot;select * from testdb.employee_test_table &quot;);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setConf(config);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setTargetDir(Location);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setHadoopMapRedHome(&quot;/hadoop_installation_folder/hadoop-2.4.0/etc/hadoop/&quot;);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setExplicitInputDelims(true);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setExplicitOutputDelims(true);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setHiveDropDelims(true);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setFieldsTerminatedBy(&#39;\t&#39;);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions.setLinesTerminatedBy(&#39;\n&#39;);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;private static int run&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopImport&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;()&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;int res = new ImportTool().run(SqoopOptions);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;if (res != 0) {&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;throw new RuntimeException(&quot;Sqoop API failure &amp;nbsp;error - please return code : &quot; + Integer.toString(res));&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;return res;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;public static void main(String[] args)&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;throws Exception&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;try&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;setUp&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Connection&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;run&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopImport&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;catch (IOException e)&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;catch (SQLException e) {&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;}}&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Now create jar file for this code and run jar in hadoop cluster .&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;Data&amp;nbsp; from employee table will be imported to hdfs destination directory.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;For security purpose &amp;nbsp;you could make a properties file keeping rdbms connection url, username and password and read the properties file in the code and then set to variable to &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;SqoopOptions&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;instead of assigning directly.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Now you get the idea how &lt;a href=&quot;https://itechshree.blogspot.com/2020/05/sqoop-commands.html&quot;&gt;&lt;b&gt;Sqoop&lt;/b&gt;&lt;/a&gt; import command works using JAVA.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Please try for other&lt;b&gt; &lt;a href=&quot;https://itechshree.blogspot.com/2020/05/sqoop-commands.html&quot;&gt;sqoop commands&lt;/a&gt; &lt;/b&gt;also.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Next I shall move to &lt;b&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/learn-flume-in-detail.html&quot; target=&quot;_blank&quot;&gt;Apache Flume&lt;/a&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: times new roman, serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 20px;&quot;&gt;See you in my next blog !!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/8789859690249844078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/sqoop-import-using-java.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8789859690249844078'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8789859690249844078'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/sqoop-import-using-java.html' title='SQOOP Import using JAVA example'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-842993585583572039</id><published>2020-05-10T15:56:00.001+05:30</published><updated>2020-06-17T12:18:28.788+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Sqoop"/><title type='text'>Important commands in   Apache  Sqoop</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;Sqoop import:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;sqoop import&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;--connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--target-dir /&amp;lt;target directory where data needs to be imported&amp;gt; ;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;It imports &amp;nbsp;data from relational database table to hdfs directory &amp;nbsp;.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;Once sqoop imported data in respective target directory , we can not execute the import &amp;nbsp;command again for the same target dir unless deleting that target directory where data imported earlier or specify different target directory.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--delete-target-dir&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16.0000pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;should be used along with sqoop command if same target is used so that it will delete the existing one and recreate again.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;Sqoop&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&amp;nbsp;free form SQL&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&amp;nbsp;import:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;The&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;free&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;-&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;form query&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;import is one of the advanced features of&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;Sqoop&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;. &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;Additionally with &lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;--query parameter ,&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;the --split-by parameter &lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;also is needed to mention &lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;for slicing &lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;the &lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;data &lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;imported &lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #222222; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt; letter-spacing: 0pt;&quot;&gt;into multiple parallel tasks.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;sqoop import&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;--connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--query &amp;lt;Please write sql query&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;[ Example: --query “select * from test_table where \$CONDITIONS” ]&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--split-by &amp;lt;primary column of postgressql table&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--target-dir /&amp;lt;target directory where data needs to be imported&amp;gt; ;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;Sqoop&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&amp;nbsp;import&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&amp;nbsp;to Hbase table&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;sqoop import&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;--connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--query &amp;lt;Please write sql query&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;[ Example: --query “select * from test_table where \$CONDITIONS” ]&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--hbase-table &amp;lt;Hbase atble name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--column-family &amp;lt;column families name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--hbase-row-key &amp;lt;row key column in habse table&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;-m &amp;lt;number of mappers&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;Sqoop export:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;sqoop export&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;--connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;-- export -dir /&amp;lt;target directory where data needs to be exported&amp;gt; ;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;It exports &amp;nbsp;data from hdfs directory &amp;nbsp;to relational database table.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;Import all &amp;nbsp;tables :&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;It imports all the tables from the RDBMS database server to the HDFS&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;Sqoop import-all-tables &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;--connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt; ;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;list database :&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;sqoop list- databases &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;–connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt; ;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;It lists the databases present in the relational database.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;list tables :&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;It lists out the tables of a particular database in RDBMS database server .&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;sqoop list - tables&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;--connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt; ;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;Codegen :&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;arial&amp;quot;; font-size: 11.0000pt;&quot;&gt;Every &amp;nbsp;table in the database has one Data Access Object class that contains ‘getter’ and ‘setter’ methods to initialize objects in object-oriented application. Sqoop Codegen command generates the DAO class automatically. It generates DAO class in Java, based on the Table Schema structure.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;sqoop codegen &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;--connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt; ;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;Sqoop incremental import:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 20pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;16&quot; style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;It appends&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; &lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;new rows continually with increasing row id values when importing source &amp;nbsp;table &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;Sqoop imports rows where the check column has a value greater than the one specified with&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;16&quot; style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;–&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;last-value&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #c0504d; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;sqoop import&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;--connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--target-dir /&amp;lt;target directory where data needs to be imported&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--incremental append &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--check-column &amp;lt;updated column name &amp;nbsp;of &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;postgressql table &amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--last-value &amp;lt; last value of imported check-column in target&amp;gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;Alternate &amp;nbsp;way supported by Sqoop where updated &amp;nbsp;rows of the source table is being added is called&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class=&quot;16&quot; style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12pt;&quot;&gt;lastmodified&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;mode. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #4a4a4a; font-family: &amp;quot;calibri&amp;quot;; font-size: 12.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;sqoop import&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&amp;nbsp;--connect &amp;nbsp;jdbc:postgresql://&amp;lt;ip address:port number&amp;gt;/&amp;lt;database name&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--table &amp;lt; postgressql table name&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--username &amp;lt;username of postgressql user&amp;gt; &amp;nbsp;--password &amp;lt; password&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--target-dir /&amp;lt;target directory where data needs to be imported&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--incremental lastmodified&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;--check-column &amp;lt;updated column name &amp;nbsp;of &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;postgressql table &amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16.0000pt;&quot;&gt;--&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 16.0000pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;merge-key &amp;lt;key column in &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;postgressql table&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;last modified mode works with&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;merge-key&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;, this mode compares the existing old data in the directory with the new data . when &amp;nbsp;same merge key appears in the old data then sqoop merges that with the new data and &amp;nbsp;new data after merge will be written to the target directory.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); font-family: &amp;quot;calibri&amp;quot;; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;Append mode in sqoop incremental import works&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;with the existing target &amp;nbsp;directory&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;(if directory not exists then creates new) and stores the last state value in metastore . But &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;Lastmodified &amp;nbsp;will&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;work with the existing target directory, if merge-key&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;argument is mentioned.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;If we&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;won&#39;t mention then sqoop will throw an&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;error if the target directory already exists.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255 , 255 , 255); color: #333333; font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;
Please find next blog for running &lt;a href=&quot;https://itechshree.blogspot.com/2020/05/sqoop-import-using-java.html&quot;&gt;SQOOP import using JAVA.&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/842993585583572039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/sqoop-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/842993585583572039'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/842993585583572039'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/sqoop-commands.html' title='Important commands in   Apache  Sqoop'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-1296080226383448328</id><published>2020-05-09T15:28:00.008+05:30</published><updated>2020-09-29T09:19:44.608+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Sqoop"/><title type='text'>Sqoop:A data ingestion tool </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: calibri; font-size: 28pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;Here&amp;nbsp; , you will be learning&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;What is Sqoop and its function&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;Why it is needed and its features .&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;How it works&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: calibri; font-size: 12pt; text-indent: -18pt;&quot;&gt;When Big Data &amp;nbsp;came into picture ,it is needed &amp;nbsp;to get the huge volume of data from earlier traditional relational system &amp;nbsp;to Hadoop system&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: calibri; font-size: 12pt; text-indent: -18pt;&quot;&gt;Shell scripts was &amp;nbsp;very slow to transfer huge amount of data &amp;nbsp;,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Writing Map reduce code for uploading data in Hadoop system was very tedious&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div class=&quot;17&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;By this way Sqoop came to provide a solid interaction between relational database server and Hadoop’s HDFS.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Why Sqoop is needed?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;1. When Sqoop came into existence, &amp;nbsp;developers finds easier to write sqoop query &amp;nbsp;to import export data between RDBMS and Hadoop and internally converts commands into map reduce tasks which are &amp;nbsp;executed over &amp;nbsp;HDFS.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;2.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;Sqoop &lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;provides &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;fault tolerance mechanism&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;due to MapReduce framework used in import and export data.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;What is Sqoop?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 13pt;&quot;&gt;Sqoop is a tool designed to use &amp;nbsp;for data transfer between RDBMS (like MySQL, Oracle SQL etc.) and Hadoop (Hive, HDFS, and HBASE etc.).&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 13pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 13pt;&quot;&gt;It &amp;nbsp;is one of the top projects by&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;15&quot; style=&quot;background: rgb(255, 255, 255); color: black; font-family: calibri; font-size: 13pt;&quot;&gt;Apache software foundation&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 13pt;&quot;&gt;&amp;nbsp;and works brilliantly with relational databases such as Teradata, Netezza, Oracle, MySQL, and Postgres etc.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 13pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 13pt;&quot;&gt;Again it provides command line interface for importing and exporting the data ,So database developers just need to provide &amp;nbsp;data base authentication, source, destination etc and rest of the work done by sqoop tool itself.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 13pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Features of Sqoop&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 12pt; font-weight: bold;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;Full load : &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;Apache sqoop &amp;nbsp;can be used to transfer &amp;nbsp;whole table data between relational database to hadoop system using single command .&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 12pt; font-weight: bold;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;Incremental load:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;It also has the facility to transfer the updated data.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 12pt; font-weight: bold;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;Parallel import/ export:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;yarn framework is used&amp;nbsp; to export and import data in sqoop .&amp;nbsp; It also provides fault tolerance on top of parallelism.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: symbol; font-size: 12pt; font-weight: bold;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;Compression:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;Data can be compressed by using codec algorithm etc available in &amp;nbsp;sqoop&amp;nbsp; .&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: symbol; font-size: 12pt; font-weight: bold;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;Loading data directly into Hive: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;Using Sqoop we can&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;16&quot; style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;create a table&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;in Hive similar to the RDBMs table in one shot.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: symbol; font-size: 12pt; font-weight: bold;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;Connectors for all major RDBMS:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;Sqoop provides better performance because of having&amp;nbsp; vast range of connectors for&amp;nbsp; popular relational databases like MySQL, PostgreSQL, Oracle, SQL Server, and DB2.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot; style=&quot;margin-left: 36pt; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: arial; font-size: 16pt;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Sqoop Architecture:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #111111; font-family: arial; font-size: 16pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;17&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;Sqoop has connectors&amp;nbsp; to work&amp;nbsp; with a lot of popular relational databases, including MySQL, PostgreSQL, Oracle, SQL Server, and DB2.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;When Sqoop commands or jobs are submitted to sqoop, it first gets converted to map tasks which brings slice of incoming data into unstructured format and place the data in HDFS. For export job, it exports the data back into RDBMS, ensuring that the schema of the data in the database is maintained.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;Reduce phase is required in case of aggregation but Apache sqoop &amp;nbsp;just import and export data ,doesn’t include any aggregation. Map job launch multiple mappers depending on the number defined by the users. For sqoop job, each mapper assigned a part of data to be imported and sqoop distributes whole &amp;nbsp;data among all mappers equally in order to achieve high performance. Then each mapper creates &amp;nbsp;a connection with &amp;nbsp;&amp;nbsp;the database using JDBC and fetches the part of the data assigned by sqoop and then, writes back to HDFS/Hive/Hbase based on the arguments provided in the command line interface.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img alt=&quot;ITechShree: A data ingestion tool&quot; border=&quot;0&quot; data-original-height=&quot;436&quot; data-original-width=&quot;594&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh28IDUB4qatiK7wakknwDmLp4pMtoDEbxJAZYeKufbM92j_5KykMySML9CgUkz2VwacXz0DmWsiufKe1S7TYQvuJdWYReOJVWEtHMlG3Z9Ce3wWvpAs4lNMnYAeKRrKdWkV_R9BAN2aCMF/s320/sqoop+archi.JPG&quot; title=&quot;ITechShree: A data ingestion tool&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;This is how sqoop import and export works, like they &amp;nbsp;gather the metadata again only submit map job ,reduce phase is never occurred here ,then it stores the data into HDFS storage.In case of export, &amp;nbsp;data is reversed back to RDBMS.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;So Sqoop import tool imports each table in the RDBMS into hadoop,each row of the table will be considered &amp;nbsp;as the &amp;nbsp;record in the hdfs and all the records stored as the text data in the text file or the binary data in the sequence file.On the other hand sqoop export tool will export the hadoop files back into rdbms table. Again hdfs records will be the rows of the table and those are read and &amp;nbsp;&amp;nbsp;passed into the set of records and delimited with user specified delimiter.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;This is all about sqoop overview and I explained the architecture and flow of &amp;nbsp;import and export process.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;in next blog of &lt;b&gt;ITechShree , &lt;/b&gt;I&lt;b&gt;&amp;nbsp;&lt;/b&gt;will explain about&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/sqoop-commands.html&quot;&gt;sqoop commands&lt;/a&gt;.&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255); color: #222222; font-family: calibri; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/1296080226383448328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/sqoop-overview-architecture.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/1296080226383448328'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/1296080226383448328'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/sqoop-overview-architecture.html' title='Sqoop:A data ingestion tool '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh28IDUB4qatiK7wakknwDmLp4pMtoDEbxJAZYeKufbM92j_5KykMySML9CgUkz2VwacXz0DmWsiufKe1S7TYQvuJdWYReOJVWEtHMlG3Z9Ce3wWvpAs4lNMnYAeKRrKdWkV_R9BAN2aCMF/s72-c/sqoop+archi.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-8683098923513091792</id><published>2020-05-08T11:53:00.009+05:30</published><updated>2020-09-30T19:39:36.664+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hadoop Mapreduce"/><title type='text'>Working model of Mapreduce : Quick start guide for Mapreduce Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div align=&quot;CENTER&quot; style=&quot;orphans: 2; widows: 2;&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;CENTER&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Map
Reduce &lt;/b&gt;is a programming model by which large data set is
processed in a parallel and distributed  manner on a cluster .&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;This
concept is first introduced by Google and later, it became part of
Apache.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: orange;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;How
Mapreduce works?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;The
processing unit of Mapreduce model is key-value pair. This model
processes large data sets whether structured or unstructured and
generates key-value pairs.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Generally
Mapreduce consists of two phases.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: symbol;&quot;&gt;·&lt;/span&gt;Map
function is the first phase through which a block of data is read and
processed to produce key-value pairs as intermediate outputs.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: symbol;&quot;&gt;·&lt;/span&gt;Reduce
Function receives the key-value pair from multiple map jobs and
aggregates those intermediate data tuples (intermediate key-value
pair) into a smaller set of tuples or key-value pairs which is the
final output.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Let&#39;s
explain about Map reduce workflow. &lt;/span&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;1.Input
data:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;These
are input files and stored in hdfs&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;2.Input
Splits&lt;/b&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Logical
representation of data that contains a single map task in the
MapReduce Program.Thus the number of map tasks will be equal to the
number of InputSplits. Each division of splits is termed as record
and then, each record will be processed by the mapper itself.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;3.Record
Reader:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;It
communicates with the Input split and converts the obtained data in
the form of &lt;b&gt;Key-Value &lt;/b&gt;pairs.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;4.Mapper:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;It
processes each input record (from Record Reader) and generates new
key-value pair, and  written to the local disk.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;5.
Combiner:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;It
 acts on the mappers’ output and does local aggregation , which
helps to minimize the data transfer between mapper and &lt;b&gt;reducer&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;6.
Partitioner:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
 &lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;It
&lt;/b&gt;comes into the picture where there are more than one reducer .The
number of partitioners is equal to the number of reducers .&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;That
means  each combiner output is partitioned and, a record having same
key value goes into the same partition, and then each partition is
sent to a reducer.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Hence
mappers output distributes over the reducer through partitioning.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;7.Shuffling
and Sorting:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Shuffling
and Sorting in Hadoop occurs simultaneously.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Shuffling
&lt;/b&gt;is the process by which the physical movement of the data takes
place over the network by transferring &lt;span style=&quot;color: black;&quot;&gt;mappers
&lt;/span&gt;intermediate output to the &lt;span style=&quot;color: black;&quot;&gt;reducer. &lt;/span&gt;The
intermediate key-value generated by mapper is sorted automatically by
key. In Sort phase merging and sorting happens on the output of&amp;nbsp; map phase.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;8.Reducer:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;The
Intermediate output of mapper is moved to the reducer which does
processing over it and generates the final output stored into Hdfs.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: orange;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Mapreduce
API:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;The
interface and classes used in Mapreduce programming :&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;1.Job
Context Interface :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;It
is used to define different jobs in MapReduce and acts as Super
interface for all the classes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;2.Job
Class :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;It
plays an important role in the MapReduce API which allows the user
for job configuration, submission and controlling job execution, and
querying the job.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;3.Mapper
class:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;It
is used to define the Map job&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;4.Reducer
Class:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
 &lt;span style=&quot;font-size: medium;&quot;&gt;Reduce
job in MapReduce is defined by Reduce Class.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;h2 class=&quot;western&quot;&gt;&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Let’s
run  the Word Count Program in Java&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Required
: 1.Hadoop must be installed &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.
Java SDK&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;h3 class=&quot;western&quot; style=&quot;line-height: 120%; margin-bottom: 0.05in; margin-top: 0.21in;&quot;&gt;
&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Steps:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
	&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;First
	Open Eclipse&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
	&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Then
	follow below steps&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
	&lt;span style=&quot;color: #222635;&quot;&gt; &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;File
	-New - Java Project -( Give project name  as MapreduceDemo) -
	Finish.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
	&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Right
	Click on project -New - Package ( give package name as Company)
	-Finish.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
	&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Right
	Click on Package Comapny -New - Class (Name it as  WordCount).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
	&lt;span style=&quot;color: #222635;&quot;&gt; &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now
	add below jar files:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;ol&gt;
		&lt;li&gt;&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
		&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Right
		Click on Project - Build Path- Add External Jars&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
		&lt;ol&gt;
			&lt;li&gt;&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
			&lt;strong&gt;&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;hadoop-core.jar&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
			&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
			&lt;strong&gt;&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Commons-cli-1.2.jar&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
		&lt;/li&gt;&lt;/ol&gt;
	&lt;/li&gt;&lt;/ol&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;ol start=&quot;5&quot;&gt;
	&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
	&lt;span style=&quot;color: #222635;&quot;&gt; &lt;/span&gt;
	&lt;/p&gt;
	&lt;li&gt;&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
	&lt;span style=&quot;color: #222635;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Now
	type the code:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;package Company;  &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
  
&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.io.IOException;    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
java.util.StringTokenizer;    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
org.apache.hadoop.io.IntWritable;    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
org.apache.hadoop.io.LongWritable;    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
org.apache.hadoop.io.Text;    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
org.apache.hadoop.mapred.MapReduceBase;    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
org.apache.hadoop.mapred.Mapper;    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
org.apache.hadoop.mapred.OutputCollector;    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
org.apache.hadoop.mapred.Reporter; &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;import
org.apache.hadoop.mapred.Reducer;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;p style=&quot;border: none; line-height: 0.22in; margin-bottom: 0in; padding: 0in;&quot;&gt;
	&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import
	java.util.Iterator; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;/span&gt;&lt;/p&gt;
&lt;/ol&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
   
&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;public class
WordCount_Mapper extends MapReduceBase implements
Mapper&amp;lt;LongWritable,Text,Text,IntWritable&amp;gt;{    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;private final
static IntWritable one1 = new IntWritable(1);    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;private Text word =
new Text();    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;public void
map(LongWritable key, Text value,OutputCollector&amp;lt;Text,IntWritable&amp;gt;
output, Reporter reporter) throws IOException{    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
        &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;String line =
value.toString();    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
        &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;StringTokenizer
 tokenizer = new StringTokenizer(line);    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
        &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;while
(tokenizer.hasMoreTokens()){    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;word.set(tokenizer.nextToken());
   &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;output.collect(word,
one1);    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
        &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    
&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}  &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;public class
WordCount_Reducer  extends MapReduceBase implements
Reducer&amp;lt;Text,IntWritable,Text,IntWritable&amp;gt; {    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;public void
reduce(Text key, Iterator&amp;lt;IntWritable&amp;gt;
values,OutputCollector&amp;lt;Text,IntWritable&amp;gt; output, Reporter
reporter) throws IOException {    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;int sum=0;    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;while
(values.hasNext()) {    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;sum+=values.next().get();
   &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;output.collect(key,new
IntWritable(sum));    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
    &lt;span style=&quot;color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; font-size: medium;&quot;&gt;}  &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
 &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;public class WordCount
{    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
        &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;public static
void main(String[] args) throws IOException{    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;JobConf
conf = new JobConf(WordCount class);    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;conf.setJobName(&quot;WordCount&quot;);
   &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;conf.setOutputKeyClass(Text.class);
   &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;conf.setOutputValueClass(IntWritable.class);
           &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;conf.setMapperClass(WordCount_Mapper.class);
   &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;conf.setCombinerClass(WordCount_Reducer.class);
   &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;conf.setReducerClass(WordCount_Reducer.class);
        &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;conf.setInputFormat(TextInputFormat.class);
   &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;conf.setOutputFormat(TextOutputFormat.class);
          &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;FileInputFormat.setInputPaths(conf,new
Path(args[0]));    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;FileOutputFormat.setOutputPath(conf,new
Path(args[1]));&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
      &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span lang=&quot;en-US&quot;&gt;removeDir(args[1],
conf);&lt;/span&gt;     &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
            &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;JobClient.runJob(conf);
   &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
        &lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}    &lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;private void
removeDir(String pathToDirectory, Configuration conf)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;			throws
IOException {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;		Path
pathToRemove = new Path(pathToDirectory);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;		FileSystem
fileSystem = FileSystem.get(conf);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;		if
(fileSystem.exists(pathToRemove)) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;			fileSystem.delete(pathToRemove,
true);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;		}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;	}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang=&quot;en-US&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #999999; color: white; font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;ul&gt;
	&lt;p style=&quot;line-height: 0.22in; margin-top: 0.04in;&quot;&gt;
	&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;6.
	Create the jar file of this program and name it WordCount&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;.jar
	and place the jar in hdfs along input file named file.csv&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
	&lt;p style=&quot;line-height: 0.22in; margin-top: 0.04in;&quot;&gt;
	&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;Input
	file format:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
	&lt;p style=&quot;line-height: 0.22in; margin-top: 0.04in;&quot;&gt;
	&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;MapReduce
	&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;is
	a programming model by which large dataset is processed in a
	parallel . &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;
	&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;line-height: 0.22in; margin-top: 0.04in;&quot;&gt;
	&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;7.
	Now run the jar file by typing below command in linux console&lt;br /&gt;hadoop
	jar /New_dir/WordCount .jar  /New_dir/input/file.csv  /New_dir
	/output&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
	&lt;p style=&quot;line-height: 0.22in; margin-top: 0.04in;&quot;&gt;
	&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;8.The
	output file  is stored in /New_dir /outputpart-00000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/ul&gt;
&lt;p style=&quot;border: none; margin-bottom: 0.16in; margin-top: 0.05in; padding: 0in;&quot;&gt;
&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-size: medium;&quot;&gt;MapReduce
1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;is
                   2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;a
                    2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;programming
   1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;model
               1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;by
                      1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;which
                1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;large
                  1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;dataset
               1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;processed
           1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;in
                       1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;border: none; line-height: 0.22in; margin-top: 0.04in; padding: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc; font-weight: normal;&quot;&gt;parallel
               1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Now
you have a basic understanding of MapReduce framework and realized
how the MapReduce framework facilitates us to process huge data
present in the HDFS.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;#Mapreduce API# Working model of Mapreduce #Writing Mapreduce programming&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 20px;&quot;&gt;See you in my next blog!!&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;JUSTIFY&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;CENTER&quot; style=&quot;orphans: 2; widows: 2;&quot;&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/8683098923513091792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/working-modelof-mapreduce-map-reduce-is.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8683098923513091792'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/8683098923513091792'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/working-modelof-mapreduce-map-reduce-is.html' title='Working model of Mapreduce : Quick start guide for Mapreduce Programming'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5130236803296751736.post-6325063577587405842</id><published>2020-05-07T12:30:00.007+05:30</published><updated>2020-09-29T09:17:55.729+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hadoop ecosystem"/><title type='text'>A brief introduction to Apache Hadoop: Dive into the  Big data world  : start of Bigdata journey</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 15pt;&quot;&gt;To start into Bigdata world you must learn:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&amp;nbsp;1. You need to brush up your knowledge in &lt;b&gt;Core Java and SQL&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&amp;nbsp;2. You must aware of &lt;b&gt;Basic Unix commands.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: times new roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Now let&#39;s move into the Bigdata World.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.22in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: orange;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 22pt;&quot;&gt;&lt;b&gt;What
is big data:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.22in; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;Nowadays,
with the introduction of social media, e commerce, stock markets,
business etc data is growing exponentially and traditional data
system is unable to store or process this huge volume of data. This
is called Bigdata.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;Data
is considered as Big data if it possesses following characteristics.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Volume:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Data
is of huge in size and unable to fit into traditional system.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Velocity:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;The
data is growing at a very fast rate. Users across the globe upload
and send huge data within a minute every day.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Variety:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Nowadays
data are not always stored&amp;nbsp;&amp;nbsp;in rows and column. Data from
Log file, CCTV footage etc are considered unstructured.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Veracity:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;It
refers to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;uncertainty
of data availability to users as data is huge in size so it may
contain wrong data also.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Value:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Big
data is none of consequence unless data analyzed correctly or
processed.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Big
data is of four types :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Structured
Data&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;is
used to refer to the data which has proper schema .It is saved in
databases.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Unstructured
Data&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;does
not have any clear format or schema like videos ,images etc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Semi
Structured data&amp;nbsp;&amp;nbsp;does not r&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;eside
in a relational database but has some schema properties that make it
easier to analyze like Log files, JSON Format etc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Data
that may contain inconsistencies in&amp;nbsp;data&amp;nbsp;values and formats
is considered as&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;quasi
structured&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;like
interrupted downloaded data.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.22in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: orange;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 22pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hadoop:
A good solution&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.22in; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.22in; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·It
stores huge data and stores efficiently&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·It
is horizontally scalable as data grows very fast&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·It
is cost effective&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;·Programmers
as well as non programmers find easy to build Hadoop applications.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in; margin-left: 0.5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: orange;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 22pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;What
is Hadoop?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hadoop
is an open-source, a Java-based programming framework that stores and
processes large data sets in a distributed computing environment. It
is built on the Google File System .Hadoop was developed by Doug cutting who was working in Yahoo. But later Yahoo gave Hadoop to Apache foundation and from onwards Apache Hadoop is available as top level open source project of Apache.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.22in; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.22in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #ffa400;&quot;&gt;Lets
discuss about&amp;nbsp; components available in hadoop eceosystem.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hadoop
 Distributed File System (HDFS):&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;HDFS
is storage layer in Hadoop. It is&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;distributed
file system&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;where
data is being stored ,gets distributed &amp;amp; then it proceeds .It is
highly fault tolerant means&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;here,
data is copied and stored&amp;nbsp; into&amp;nbsp; multiple locations&amp;nbsp;
and in case of any server failure it tracks the data from different
to continue its service.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/apache-hbase.html&quot;&gt;HBase&lt;/a&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;HBase
is a distributed columnar database built on top of the Hadoop file
system.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;It
is a No SQL database or non-relational database, mainly used when you
need random, real-time, read/write access to your big data.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; style=&quot;line-height: 0.19in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/sqoop-overview-architecture.html&quot;&gt;Sqoop&lt;/a&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;Its
is tool to transfer structured data into HDFS.It is designed to
import data from relational databases such as Oracle ,  to HDFS and
export data from HDFS to relational database.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; style=&quot;line-height: 0.19in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/learn-flume-in-detail.html&quot;&gt;Flume&lt;/a&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Flume
is responsible for moving&amp;nbsp;&amp;nbsp;streaming data from different
sources like avro,spooling directory,netcat,file system etc&amp;nbsp;
into hdfs. It ideally works&amp;nbsp; for moving&amp;nbsp; event data from
multiple systems.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; style=&quot;line-height: 0.19in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hadoop&amp;nbsp;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/working-modelof-mapreduce-map-reduce-is.html&quot;&gt;MapReduce&lt;/a&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hadoop&amp;nbsp;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/working-modelof-mapreduce-map-reduce-is.html&quot;&gt;Mapreduce&lt;/a&gt;&amp;nbsp;&amp;nbsp;is&amp;nbsp;&amp;nbsp;the&amp;nbsp;&amp;nbsp;original
hadoop processing engine primarily JAVA based .&amp;nbsp;&amp;nbsp;Data is
processed in distributed over the multiple server and then processed
by the Map and Reduce programming model. Many tools such as Hive, Pig
build on Map Reduce Model internally in execution mode.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/06/apache-spark-quick-start.html&quot;&gt;SPARK&lt;/a&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;It
is open source, in memory , highly expensive cluster programming
framework and provides 100 times faster performance than hadoop
MapReduce processing framewok. Nowadays spark applications are more
demanding because of its high performance on multiple domains and
vast useful libraries . It&#39;s built in API is written&amp;nbsp; in
Java,Scala,Python and R languages to get the job done.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;It
includes rich set of higher level tools like Spark SQL(for SQL and
structured data processing), Mlib (for machine learning) , Stream
processing (Spark streaming and Structured streaming), Graphx (for
graph processing).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 24pt 0in 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 7.5pt 0in;&quot;&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Spark
Components are depicted below&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 7.5pt 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;223&quot; data-original-width=&quot;374&quot; height=&quot;239&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTV_K-8-d6C4dFzqRjoo-qf0bZa8IE9T5wyHD2RC_sR7pl9WGJE_voHAgau-CZl39pjk4Y6AchJDAh_Z9Zp7YXcKqEbZvbsgDO7aBRLlZ3Wu3RwoMFWUgrnu0gksoJCS9dZO8UesvroZvy/w400-h239/hadoop-min.PNG&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/apache-pig-overview.html&quot;&gt;Pig&lt;/a&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;It
is an open-source high level dataflow system built on top of hdfs..
It uses Pig Latin scripts to write code . It&amp;nbsp; internally coverts
pig script into Map-Reduce code in execution and relaxes&amp;nbsp;
producer from writing huge Map-Reduce code. It is best suitable&amp;nbsp;
for&amp;nbsp;&amp;nbsp;Ad-Hoc queries in Analytics&amp;nbsp; like filter &amp;amp;
join which is challenging to perform in Map-Reduce but&amp;nbsp; can be
done efficiently using smaller&amp;nbsp; Pig scripts .&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Impala:&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;It
is a&amp;nbsp;&amp;nbsp;open source massive parallel processing SQL
engine&amp;nbsp;&amp;nbsp;&amp;nbsp;which runs on the data stored in&amp;nbsp; Hadoop
cluster and processes using&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;dialect
of SQL( Impala SQL)&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;. It is
ideally used&amp;nbsp; for interactive analysis because of its
high&amp;nbsp;&amp;nbsp;performance and very low latency compared to other
SQL engine in hadoop ecosystem.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hive:&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;Similar
to the Impala, it also provides SQL intellect, so that users can
write SQL like queries called HQL (Hive Query Language ) to extract
the data from Hadoop whereas Impala is preferable for executing adhoc
queries which needs more processing time in hive.Hive is suitable for
processing structured&amp;nbsp; data and extract, transform and load
operations.&amp;nbsp; Hive executes queries which internally converts
into&amp;nbsp; Map-Reduce code which leads&amp;nbsp; a user not&amp;nbsp; to
write any code in low-level Map-Reduce.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Oozie:&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Oozie
is a workflow&amp;nbsp;&amp;nbsp;scheduling system&amp;nbsp;&amp;nbsp;&amp;nbsp;which&amp;nbsp;
manages Hadoop&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;jobs&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;like
Hive,Pig, Sqoop , Spark jobs as well as system specific jobs like
java and shell)&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;runs in
parallel and schedules .&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hue:&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hue
is an acronym for Hadoop user experience. It is an open-source web
based hadoop GUI through which we could perform various functions
like&lt;br /&gt;1. Upload and browse data&lt;br /&gt;2. Query a table in Hive
and Impala&lt;br /&gt;3. Run Spark and Pig jobs&lt;br /&gt;4. Workflow search data.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;It
has following features :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;HDFS
 file browser&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Job
 browser/designer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hive/Pig
 query Editor&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Oozie
 app for workflows&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Has
 hadoop API&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Access
 to shell&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;User
 Admin&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; lang=&quot;en&quot; style=&quot;line-height: 0.19in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;App
 for Solr Searches&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;li&gt;&lt;b style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif; font-size: 15pt;&quot;&gt;Cloudera
 Search:&lt;/b&gt;&lt;/li&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;It
lets&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;users
explore and analyze data in real-time to find what’s relevant and
gain new insights.&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;.
Users do not need any technical and programming skills to search and
explore data stored in&amp;nbsp; or ingested into Hadoop and Hbase. It
makes&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Apache&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;hadoop
accessible to everyone via integrated full text search compared to
standalone search solution cloudera search is&amp;nbsp; f&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;ully
integrated in the Cloudera platform, taking advantage of the
flexible, scalable, and robust storage system and data processing
frameworks included in CDH&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;This
eliminates the need to move large data sets across infrastructures to
perform business tasks&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot; style=&quot;line-height: 0.19in; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: orange;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 22pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;How
these components work?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;These
components work together to process Big data.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/sqoop-overview-architecture.html&quot;&gt;Sqoop&lt;/a&gt;&amp;nbsp;,Flume
 is used to data ingestion .Sqoop transfers structured data to Hadoop
 from various resources such as relational databases system or local
 files and Flume transfer event data.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;Spark
 and&amp;nbsp;&lt;a href=&quot;https://itechshree.blogspot.com/2020/05/working-modelof-mapreduce-map-reduce-is.html&quot;&gt;MapReduce&lt;/a&gt;&amp;nbsp;perform
 data processing on information stored in HDFS and the NoSQL
 distributed data Hbase.Pig,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;Hive
 &amp;amp; Impala is used to analyze data and converts data  using Map
 and Reduce programming .Hive is more suitable for structured data
 and impala for adhoc queries.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;After
 data is processed and analyzed it is accessible to user through&amp;nbsp;&amp;nbsp;Hue
 and Cloudera search. Hue is web-interface for exploring data.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;This
is all about the basic understanding of hadoop components and how
they work together.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;For more please visit my blogs.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;See you in my next blog!!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;, serif;&quot;&gt;&lt;span style=&quot;font-size: 15pt;&quot;&gt;&lt;span style=&quot;background: rgb(255, 255, 255);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/ul&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://itechshree.blogspot.com/feeds/6325063577587405842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://itechshree.blogspot.com/2020/05/a-brief-introduction-to-apache-hadoopa.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/6325063577587405842'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5130236803296751736/posts/default/6325063577587405842'/><link rel='alternate' type='text/html' href='https://itechshree.blogspot.com/2020/05/a-brief-introduction-to-apache-hadoopa.html' title='A brief introduction to Apache Hadoop: Dive into the  Big data world  : start of Bigdata journey'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTV_K-8-d6C4dFzqRjoo-qf0bZa8IE9T5wyHD2RC_sR7pl9WGJE_voHAgau-CZl39pjk4Y6AchJDAh_Z9Zp7YXcKqEbZvbsgDO7aBRLlZ3Wu3RwoMFWUgrnu0gksoJCS9dZO8UesvroZvy/s72-w400-h239-c/hadoop-min.PNG" height="72" width="72"/><thr:total>4</thr:total></entry></feed>