<?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 to deploy Customized Hive Avro serdes library in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-deploy-Customized-Hive-Avro-serdes-library/m-p/110894#M73742</link>
    <description>&lt;P&gt;I have written one Avro ser/des library for Hive to read/write Avro binary data file, which does not contain the Avro schema. And I copied this library into &lt;STRONG&gt;$HIVE/lib&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;When I query the Hive external table, which uses my customized ser/des library, (e.g., select * from user_avro), it works as expected.&lt;/P&gt;&lt;P&gt;However if I insert data into that Hive external table like "INSERT OVERWRITE TABLE user_avro SELECT * FROM user), it complains that the my customized ser/des class cannot be found. &lt;/P&gt;&lt;P&gt;This output difference from Hive console is that the second one is launching MapReduce job.&lt;/P&gt;&lt;P&gt;Does anyone know where I need to copy this customized ser/des library except $HIVE/lib?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2016 19:48:46 GMT</pubDate>
    <dc:creator>donaldyy</dc:creator>
    <dc:date>2016-05-31T19:48:46Z</dc:date>
    <item>
      <title>how to deploy Customized Hive Avro serdes library</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-deploy-Customized-Hive-Avro-serdes-library/m-p/110894#M73742</link>
      <description>&lt;P&gt;I have written one Avro ser/des library for Hive to read/write Avro binary data file, which does not contain the Avro schema. And I copied this library into &lt;STRONG&gt;$HIVE/lib&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;When I query the Hive external table, which uses my customized ser/des library, (e.g., select * from user_avro), it works as expected.&lt;/P&gt;&lt;P&gt;However if I insert data into that Hive external table like "INSERT OVERWRITE TABLE user_avro SELECT * FROM user), it complains that the my customized ser/des class cannot be found. &lt;/P&gt;&lt;P&gt;This output difference from Hive console is that the second one is launching MapReduce job.&lt;/P&gt;&lt;P&gt;Does anyone know where I need to copy this customized ser/des library except $HIVE/lib?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 19:48:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-deploy-Customized-Hive-Avro-serdes-library/m-p/110894#M73742</guid>
      <dc:creator>donaldyy</dc:creator>
      <dc:date>2016-05-31T19:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to deploy Customized Hive Avro serdes library</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-deploy-Customized-Hive-Avro-serdes-library/m-p/110895#M73743</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2674/donaldyy.html" nodeid="2674"&gt;@yong yang&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try using below command on hive shell before executing insert command.&lt;/P&gt;&lt;PRE&gt;hive&amp;gt;  add jar '\your jar file path';&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2016 20:10:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-deploy-Customized-Hive-Avro-serdes-library/m-p/110895#M73743</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-31T20:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to deploy Customized Hive Avro serdes library</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-deploy-Customized-Hive-Avro-serdes-library/m-p/110896#M73744</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2674/donaldyy.html" nodeid="2674"&gt;@yong yang&lt;/A&gt; apart from adding jars at each session level as suggested by &lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt; you can add them permanently using hive.aux.jars.path&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.aux.jars.path&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;/var/lib/hive&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2016 20:35:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-deploy-Customized-Hive-Avro-serdes-library/m-p/110896#M73744</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-05-31T20:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to deploy Customized Hive Avro serdes library</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-deploy-Customized-Hive-Avro-serdes-library/m-p/110897#M73745</link>
      <description>&lt;P&gt;Thanks you very much for your reply. Based on your suggestions, I have added the following into hive-env.sh through Ambari Hive configuration interface:&lt;/P&gt;&lt;P&gt;export HIVE_AUX_JARS_PATH=&amp;lt;my jar full path&amp;gt;&lt;/P&gt;&lt;P&gt;and then restart the hive.&lt;/P&gt;&lt;P&gt;Now it works as expected in both Hive console and Hue BeesWax UI. &lt;/P&gt;&lt;P&gt;Many thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 22:31:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-deploy-Customized-Hive-Avro-serdes-library/m-p/110897#M73745</guid>
      <dc:creator>donaldyy</dc:creator>
      <dc:date>2016-05-31T22:31:20Z</dc:date>
    </item>
  </channel>
</rss>

