<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How do I set up Pig to use HCatalog? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-set-up-Pig-to-use-HCatalog/m-p/131977#M34872</link>
    <description>&lt;P&gt;I want Pig to use HCatalog in my Oozie workflow&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jul 2016 06:50:22 GMT</pubDate>
    <dc:creator>rmckissick</dc:creator>
    <dc:date>2016-07-16T06:50:22Z</dc:date>
    <item>
      <title>How do I set up Pig to use HCatalog?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-set-up-Pig-to-use-HCatalog/m-p/131977#M34872</link>
      <description>&lt;P&gt;I want Pig to use HCatalog in my Oozie workflow&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2016 06:50:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-set-up-Pig-to-use-HCatalog/m-p/131977#M34872</guid>
      <dc:creator>rmckissick</dc:creator>
      <dc:date>2016-07-16T06:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up Pig to use HCatalog?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-set-up-Pig-to-use-HCatalog/m-p/131978#M34873</link>
      <description>&lt;P&gt;Rita, please see my example &lt;A href="https://github.com/dbist/oozie/tree/master/apps/hcatalog" target="_blank"&gt;https://github.com/dbist/oozie/tree/master/apps/hcatalog&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2016 07:06:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-set-up-Pig-to-use-HCatalog/m-p/131978#M34873</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-07-16T07:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up Pig to use HCatalog?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-set-up-Pig-to-use-HCatalog/m-p/131979#M34874</link>
      <description>&lt;P&gt;Here's another possibility, from the &lt;A target="_blank" href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_HDP_RelNotes/content/errata_pig_with_oozie.html"&gt;HDP 2.4.2 Release Notes&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Configuring Pig Scripts to Use HCatalog in Oozie Workflows&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To access HCatalog with a Pig action in an Oozie workflow, you
need to modify configuration information to point to the Hive metastore URIs.&lt;/P&gt;&lt;P&gt;There are two methods for providing this configuration
information. Which method you use depends upon how often your Pig scripts
access the HCatalog.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Configuring
Individual Pig Actions to Access HCatalog&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If only a few individual Pig actions access HCatalog, do the
following:&lt;/P&gt;&lt;OL&gt;
 &lt;LI&gt;Identify
     the URI (host and port) for the Thrift metastore server.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-left: 40px;"&gt;a. In Ambari, click &lt;STRONG&gt;Hive
      &amp;gt; Configs &amp;gt; Advanced&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;b. Make note of the URI in the &lt;STRONG&gt;hive.metastore.uris&lt;/STRONG&gt; field in the General section.&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;This information is also
stored in the hive.default.xml file.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;2. Add
     the following two properties to the &amp;lt;configuration&amp;gt; elements
     in each Pig action.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Note: Replace &lt;EM&gt;[host:port(default:9083)]&lt;/EM&gt; in
the example below with the host and port for the Thrift metastore server.&lt;/P&gt;&lt;PRE&gt;&amp;lt;configuration&amp;gt;
    &amp;lt;property&amp;gt;
	&amp;lt;name&amp;gt;hive.metastore.uris&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;thrift://[host:port(default:9083)]&amp;lt;/value&amp;gt;
	&amp;lt;description&amp;gt;A comma separated list of metastore uris the client can use to contact the metastore server.&amp;lt;/description&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
	&amp;lt;name&amp;gt;oozie.action.sharelib.for.pig&amp;lt;/name&amp;gt;       
	&amp;lt;value&amp;gt;pig,hive,hcatalog&amp;lt;/value&amp;gt;    
	&amp;lt;description&amp;gt;A comma separated list of libraries to be used by the Pig action.&amp;lt;/description&amp;gt;
    &amp;lt;/property&amp;gt;
&amp;lt;/configuration&amp;gt; &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Configuring
All Pig Actions to Access HCatalog&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If all of your Pig actions access HCatalog, do the following:&lt;/P&gt;&lt;OL&gt;
 &lt;LI&gt;Add
     the following line to the job.properties files,
     located in your working directory:&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-left: 40px;"&gt;oozie.action.sharelib.for.pig=pig,hive,hcatalog&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;&amp;lt;!-- A comma separated list of libraries to be used by the
Pig action.--&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;2. Identify
     the URI (host and port) for the Thrift metastore server.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;a. In Ambari, click &lt;STRONG&gt;Hive
      &amp;gt; Configs &amp;gt; Advanced&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;b. Make note of the URI in the &lt;STRONG&gt;hive.metastore.uris&lt;/STRONG&gt; field in the General section.&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;This information is also
stored in the hive.default.xml file.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;3. Add
     the following property to the &amp;lt;configuration&amp;gt; elements in
     each Pig action.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Note: Replace &lt;EM&gt;[host:port(default:9083)]&lt;/EM&gt; in
the example below with the host and port for the Thrift metastore server.&lt;/P&gt;&lt;PRE&gt;&amp;lt;configuration&amp;gt;
    &amp;lt;property&amp;gt;
	&amp;lt;name&amp;gt;hive.metastore.uris&amp;lt;/name&amp;gt; 
	&amp;lt;value&amp;gt;thrift://[host:port(default:9083)]&amp;lt;/value&amp;gt;
	&amp;lt;description&amp;gt;A comma separated list of metastore uris the client can use to contact the
metastore server.&amp;lt;/description&amp;gt;
    &amp;lt;/property&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Jul 2016 07:34:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-set-up-Pig-to-use-HCatalog/m-p/131979#M34874</guid>
      <dc:creator>bandalora</dc:creator>
      <dc:date>2016-07-16T07:34:26Z</dc:date>
    </item>
  </channel>
</rss>

