<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8654375134827389820</atom:id><lastBuildDate>Fri, 08 Nov 2024 15:36:37 +0000</lastBuildDate><title>Rails Builder</title><description>A web blog for all Ruby on rails developers</description><link>http://railsbuilder.blogspot.com/</link><managingEditor>noreply@blogger.com (Rails builder)</managingEditor><generator>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8654375134827389820.post-5134752787782530736</guid><pubDate>Fri, 18 Jun 2010 08:27:00 +0000</pubDate><atom:updated>2010-06-18T01:41:33.087-07:00</atom:updated><title>Installing Hive on linux</title><description>&lt;meta equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CDOCUME%7E1%5CAdmin%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml&quot;&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate=&quot;false&quot; latentstylecount=&quot;156&quot;&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Courier; 	panose-1:2 7 4 9 2 2 5 2 4 4; 	mso-font-charset:0; 	mso-generic-font-family:modern; 	mso-font-format:other; 	mso-font-pitch:fixed; 	mso-font-signature:3 0 0 0 1 0;} @font-face 	{font-family:Wingdings; 	panose-1:5 0 0 0 0 0 0 0 0 0; 	mso-font-charset:2; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:0 268435456 0 0 -2147483648 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:&quot;&quot;; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-fareast-font-family:&quot;Times New Roman&quot;;} h3 	{mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	mso-outline-level:3; 	font-size:13.5pt; 	font-family:&quot;Times New Roman&quot;;} a:link, span.MsoHyperlink 	{color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{color:purple; 	text-decoration:underline; 	text-underline:single;} pre 	{margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:&quot;Courier New&quot;; 	mso-fareast-font-family:&quot;Times New Roman&quot;;} p.line862, li.line862, div.line862 	{mso-style-name:line862; 	mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-fareast-font-family:&quot;Times New Roman&quot;;} p.line874, li.line874, div.line874 	{mso-style-name:line874; 	mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-fareast-font-family:&quot;Times New Roman&quot;;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:138688227; 	mso-list-type:hybrid; 	mso-list-template-ids:-1542040082 -1426314766 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 	{mso-level-number-format:roman-lower; 	mso-level-tab-stop:.75in; 	mso-level-number-position:left; 	margin-left:.75in; 	text-indent:-.5in;} @list l1 	{mso-list-id:1601448026; 	mso-list-type:hybrid; 	mso-list-template-ids:-2084906244 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l1:level1 	{mso-level-start-at:3; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} @list l2 	{mso-list-id:1738741957; 	mso-list-template-ids:-649962268;} @list l2:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l3 	{mso-list-id:1898710504; 	mso-list-type:hybrid; 	mso-list-template-ids:54981000 1920081654 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l3:level1 	{mso-level-tab-stop:39.0pt; 	mso-level-number-position:left; 	margin-left:39.0pt; 	text-indent:-.25in;} @list l4 	{mso-list-id:1992099289; 	mso-list-type:hybrid; 	mso-list-template-ids:254722860 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l4:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} @list l5 	{mso-list-id:2036618772; 	mso-list-template-ids:83892540;} @list l5:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l5:level2 	{mso-level-number-format:bullet; 	mso-level-text:o; 	mso-level-tab-stop:1.0in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:&quot;Courier New&quot;; 	mso-bidi-font-family:&quot;Times New Roman&quot;;} @list l5:level3 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:1.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Wingdings;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:&quot;Table Normal&quot;; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:&quot;&quot;; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:&quot;Times New Roman&quot;; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size:16pt;&quot;&gt;Overview:&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;&quot;&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;Hive is a query based, data warehouse infrastructure built on top of Hadoop that provides tools to enable easy data summarization, querying and analysis of large datasets data stored in Hadoop files. It provides a mechanism to put structure on this data and it also provides a simple query language called Hive QL which is based on SQL and which enables users familiar with SQL to query this data. At the same time, this language also allows traditional map/reduce programmers to be able to plug in their custom mappers and reducers to do more sophisticated analysis which may not be supported by the built-in capabilities of the language.&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span style=&quot;font-size:16pt;&quot;&gt;Pre-requisites:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;h3 style=&quot;margin-left: 0.75in; text-indent: -0.5in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-weight: normal;font-size:12pt;&quot; &gt;&lt;span style=&quot;&quot;&gt;1.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;                    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-weight: normal;font-size:12pt;&quot; &gt;  Java 1.6 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;h3 style=&quot;margin-left: 0.75in; text-indent: -0.5in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-weight: normal;font-size:12pt;&quot; &gt;&lt;span style=&quot;&quot;&gt;2. &lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;                  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-weight: normal;font-size:12pt;&quot; &gt;Hadoop 0.17.x to 0.20.x.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;h3 style=&quot;margin-left: 0.75in; text-indent: -0.5in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-weight: normal;font-size:12pt;&quot; &gt;&lt;span style=&quot;&quot;&gt;3.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-weight: normal;font-size:12pt;&quot; &gt;  Ant 1.8.1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;h3 style=&quot;margin-left: 0.75in; text-indent: -0.5in;&quot;&gt;&lt;!--[if !supportLists]--&gt;4.  &lt;span style=&quot;font-weight: normal;font-size:12pt;&quot; &gt;Subversion (SVN)&lt;/span&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;b style=&quot;&quot;&gt;Note:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;For me, I need to configure and install Hadoop 0.20.0 version.&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size:16pt;&quot;&gt;Installation:&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;b style=&quot;&quot;&gt;&lt;span style=&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;&gt;&lt;b style=&quot;&quot;&gt;Download&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-right: -9pt;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;svn co http://svn.apache.org/repos/asf/hadoop/hive/trunk hive&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;Using svn you can download the hive frame work from trunk&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;Navigate      to the folder in the command shell by following command&lt;/li&gt;&lt;/ol&gt;  &lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;cd hive&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;2. &lt;span style=&quot;&quot;&gt; &lt;/span&gt;Build the hive package using ant (Make sure you have installed ant&lt;/span&gt;)&lt;/pre&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;ant package&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;3.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;Once if you build the jar files using ant you will find new folder structure in hive folder, navigate to below folder structure&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;cd build/dist&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;4.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;Make sure everything&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;build by ant is correctly by list the folder&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt; ls&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;Output will be list like this &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt; README.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt; bin/ (all the shell scripts)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt; lib/ (required jar files)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt; conf/ (configuration files)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt; examples/ (sample input and query files)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: -9pt;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size:16pt;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;Execution:&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;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size:16pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&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;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size:16pt;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;Note: &lt;/b&gt;Before running hive make sure you have configured and installed Hadoop 0.20.0 or any other version as per requirement&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;Hive use Hadoop so you need to specify the Hadoop path to hive, Hadoop folder path (which you have&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;to download and configure ) need to make visible. You can do it by two ways &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 39pt; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;&quot;&gt;1.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;You can export the path for single session by following bash command&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21pt;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;export HADOOP_HOME=hadoop-install-dir&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21pt;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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-left: 21pt;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;For me it is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21pt;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 39pt;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;export HADOOP_HOME&lt;/span&gt;=/home/hadoop/arun/hadoop-0.20.0&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Courier;&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:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;Note:&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:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;       &lt;/span&gt;Make sure HADOOP_HOME variable assigned properly is&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;by this command&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:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;       &lt;/span&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:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;     &lt;/span&gt;echo $HADOOP_HOME&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:Courier;&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-left: 39pt; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;&quot;&gt;2.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;You can&lt;span style=&quot;font-family:Courier;&quot;&gt; &lt;/span&gt;export the path as permanent by adding it in to .bash_profile file which is shell script automatically checked first when any script executes &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 39pt;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;vi /logged_in_user_name/.bash_profile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 39pt;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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-left: 39pt;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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 style=&quot;&quot;&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;For me it is (I logged as root)&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-left: 0.25in;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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-left: 0.25in;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;vi /root/.bash_profile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;Open the file with &lt;b style=&quot;&quot;&gt;vi&lt;/b&gt; editor and add the following lines&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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-left: 0.25in;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;Assigning the variable&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family:Courier;&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-left: 0.25in;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;HADOOP_HOME=/home/hadoop/arun/hadoop-0.20.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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-left: 0.25in;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;Make visible to all process&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family:Courier;&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-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;export HADOOP_HOME&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 39pt;&quot;&gt;&lt;span style=&quot;font-family:Courier;&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:Courier;&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 style=&quot;&quot;&gt;&lt;span style=&quot;font-size:14pt;&quot;&gt;Note :&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;font-family:Courier;&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-left: 0.5in;&quot;&gt;In addition, you must create /tmp and /user/hive/warehouse (aka hive.metastore.warehouse.dir) and set them chmod g+w in HDFS before a table can be created in Hive.&lt;span style=&quot;font-family:Courier;&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-left: 75pt;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;Following commands will do above creation, navigate to the Hadoop folder path (home folder ) for me it is &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 75pt;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;       &quot;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;/home/hadoop/arun/hadoop-0.20.0&lt;b style=&quot;&quot;&gt; &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;And type the following commands; it will create the folder structure&lt;b style=&quot;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 39pt;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;[root@master hadoop-0.20.2]# /bin/hadoop dfs -mkdir /tmp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;[root@master hadoop-0.20.2]# /bin/hadoop dfs -mkdir/user/hive/warehouse&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;[root@master hadoop-0.20.2]# /bin/hadoop dfs -mkdir /tmp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;[root@master hadoop-0.20.2]# /bin/hadoop dfs -mkdir /tmp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;Basic Execution:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;Now navigate back to the hive folder downloaded and installed folder move to&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;Ant build &lt;span style=&quot;&quot;&gt; &lt;/span&gt;package “build/dist”, And type bin/hive the shell will open query shell in the same shell&lt;/span&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;cd /hive_home_folder/&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;for me : cd /downloads/hive/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;cd build/dist&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;bin/hive&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;For me it is &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;[root@master dist]# bin/hive&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;Hive history file=/tmp/root/hive_job_log_root_201006181053_1733690517.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;hive&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt; Testing/Checking:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;Creating Hive table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;hive&gt; CREATE TABLE jak (id INT, friends STRING); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;Output: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;hive&gt; CREATE TABLE jak (id INT, friends STRING);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;          &lt;/span&gt;OK&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;          &lt;/span&gt;Time taken: 0.476 seconds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;hive&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;It will show the created Hive&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;table &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;hive&gt; SHOW TABLES;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;Output: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;hive&gt;SHOW TABLES;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 1in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;OK&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 1in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;jak&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 1in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;lists&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 1in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;Time taken: 0.215 seconds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;hive&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:14pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;  &lt;h3&gt;&lt;span style=&quot;font-size:16pt;&quot;&gt;Configuration:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;p class=&quot;line862&quot; style=&quot;margin-left: 0.25in;&quot;&gt;- hive default configuration is stored in &lt;install-dir&gt;/conf/hive-default.xml &lt;/install-dir&gt;&lt;/p&gt;  &lt;p class=&quot;line862&quot; style=&quot;margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;;font-family:Symbol;font-size:10pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Configuration variables can be changed by (re-)defining them in &lt;install-dir&gt;/conf/hive-site.xml &lt;/install-dir&gt;&lt;/p&gt;  &lt;p class=&quot;line862&quot; style=&quot;margin-left: 0.25in;&quot;&gt;- log4j configuration is stored in &lt;install-dir&gt;/conf/hive-log4j.properties &lt;/install-dir&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.25in;&quot;&gt;- hive configuration is an overlay on top of hadoop - meaning the hadoop configuration variables are inherited by default. &lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.25in;&quot;&gt;- hive configuration can be manipulated by: &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;;font-family:Symbol;font-size:10pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;editing hive-site.xml and defining any desired variables (including hadoop variables) in it &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;;font-family:Symbol;font-size:10pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;from the cli using the set command (see below) &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;;font-family:Symbol;font-size:10pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;by invoking hive using the syntax: &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.25in; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;o&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;$ bin/hive -hiveconf x1=y1 -hiveconf x2=y2 &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 2in; text-indent: -0.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;;font-family:Wingdings;font-size:10pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;§&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;this sets the variables x1 and x2 to y1 and y2 respectively&lt;/p&gt;  &lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;  &lt;h3&gt;Error logs:&lt;/h3&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;Hive uses log4j for logging. By default logs are not emitted to the console by the cli. They are stored in the file: - /tmp/{user.name}/hive.log &lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;If the user wishes - the logs can be emitted to the console by adding the arguments shown below: - bin/hive -hiveconf hive.root.logger=INFO,console &lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;Note that setting hive.root.logger via the &#39;set&#39; command does not change logging properties since they are determined at initialization time. &lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;Error logs are very useful to debug problems. Please send them with any bugs (of which there are many!) to &lt;a href=&quot;mailto:hive-dev@hadoop.apache.org&quot;&gt;hive-dev@hadoop.apache.org&lt;/a&gt;. &lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size:16pt;&quot;&gt;Installation errors and solutions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size:14pt;&quot;&gt;Note:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;text-indent: 0.5in;&quot;&gt;In installation/setup of hive you will mostly face issue on the downloading the required software to build the jar file using ant.&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;Error 1:&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;If try to build the package using ant like below&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;[root@master hive]# ant package&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;It will produce error like below&lt;/p&gt;  &lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;ivy-retrieve-hadoop-source:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;:: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;span style=&quot;&quot;&gt;             &lt;/span&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;BUILD FAILED&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;/test/hive/build.xml:160: The following error occurred while executing this line:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;/test/hive/build.xml:103: The following error occurred while executing this line:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;/test/hive/shims/build.xml:56: The following error occurred while executing this line:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;/test/hive/build-common.xml:177: impossible to resolve dependencies:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;resolve failed - see output for details&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;Solution:&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;span style=&quot;&quot;&gt;         &lt;/span&gt;It is all about downloading file error the path is not correct so I downloaded Hadoop-0.20.0 core file and placed it ant building path as below &lt;/p&gt;  &lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;cd ~/.ant/cache/hadoop/core/sources&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;wget &lt;a href=&quot;http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz&quot;&gt;http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;svn update&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;After did this you need to change the a variable true to false in /hive/ivy/ivysettings.xml&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;For me hive home path is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;cd /hive/ivy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;vi ivysettings.xml&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;I changed the following variable to true to false (basically we tell to ant not to download file use existing file for further process)as follows&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;Checkmodified=”true” to checkmodified=”false”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;From:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;ibiblio name=&quot;apache-snapshot&quot; root=&quot;${snapshot.apache.org}&quot; m2compatible=&quot;true&quot;&gt;&lt;/ibiblio&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;checkmodified=&quot;true&quot; changingPattern=&quot;.*SNAPSHOT&quot;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;TO:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;ibiblio name=&quot;apache-snapshot&quot; root=&quot;${snapshot.apache.org}&quot; m2compatible=&quot;true&quot;&gt;&lt;/ibiblio&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;checkmodified=&quot;false&quot; changingPattern=&quot;.*SNAPSHOT&quot;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size:12pt;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;Now clean the ant package and build hive package for specified version of &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;Hadoop for me it is 0.20.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;ant -Dhadoop.version=0.x.x clean package&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:12pt;&quot;  &gt;For me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:Courier;font-size:12pt;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p class=&quot;line874&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;ant -Dhadoop.version=0.20.0 clean package&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;It will work fine…&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;Error 2:&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;After installing the HIVE, when we query means it will show error like&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;“Execution Jar:&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;hive/lib/hive-exec-*.jar. “&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:Courier;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;Missing Hive Execution Jar&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:Courier;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;Solution:&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;If we do the installation (manually download and saving file in ant path) in above method some times the created of jar file&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;(by ant) will be saved in a different location&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;We need to find that file and need to paste in correct path &lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;Original/correct path is hive home folder/build/dist&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;For me it is&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;cd&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;/hive/ build/dist&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;Note:&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;text-indent: 0.5in;&quot;&gt;If you want acces globally u need to set HIVE_HOME path refer above path setting process.&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;It will work fine…&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;Error 3:&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-family:Courier;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;text-indent: 0.5in;&quot;&gt;After installing the HIVE, when we query means it will show error like “it can’t able to create JVM because of Memory HEAPSIZE is very high”&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;Solution:&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;For that we need to change the heap size in the following file&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in; text-indent: 0.5in;&quot;&gt;\hive\build\dist\bin\ext\util\execHiveCmd.sh&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;as 64 or as per your requirement&lt;/p&gt;  &lt;p class=&quot;line874&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;# increase the threshold for large queries&lt;/p&gt;  &lt;p class=&quot;line874&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;HADOOP_HEAPSIZE=64&lt;/p&gt;  &lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;  &lt;p class=&quot;line874&quot;&gt;It will work fine…&lt;/p&gt;  </description><link>http://railsbuilder.blogspot.com/2010/06/installing-hive-on-linux.html</link><author>noreply@blogger.com (Rails builder)</author><thr:total>0</thr:total></item></channel></rss>