<?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 Re: Hive Queries are not executing. Showing Exceptions in CLI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/69226#M4371</link>
    <description>&lt;P&gt;I received a similar error, but for the LzopCodec (not LzoCodec) not being found.&amp;nbsp; In this case, I actually wanted to use the LzoCodec as my default compression codec (for legacy reasons...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to get Hive working with Lzo on CDH 5.14.x, I did the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1)

# Add GPLEXTRAS parcel to CM and distribute to all nodes:
https://www.cloudera.com/documentation/enterprise/5-14-x/topics/cm_ig_install_gpl_extras.html

2)

# Configure HDFS to use it:
http://www.roggr.com/2014/06/enabling-lzo-compression-for-hive-to.html
ClouderaManager -&amp;gt; Hive -&amp;gt; Configuration -&amp;gt; Service-wide -&amp;gt; Advanced  -&amp;gt; Hive Auxiliary JARs Directory : /opt/cloudera/parcels/GPLEXTRAS/lib/hadoop/lib

# Verify it works by invoking 'show tables' in hive with debug-logging enabled.  There should not be any errors.  The error condition if not working complains about LzopCode (not LzoCodec) not found.
hive --hiveconf hive.root.logger=DEBUG,console

3)

# Configure HDFS
ClouderaManager -&amp;gt; HDFS -&amp;gt; Configuration -&amp;gt; Service-wide -&amp;gt; Compression Codes (io.compression.codecs):

+ com.hadoop.compression.lzo.LzoCodec
+ com.hadoop.compression.lzo.LzopCodec

4)

# Configure YARN/MR2
# http://blog.cloudera.com/blog/2013/07/one-engineers-experience-with-parcel/

ClouderaManager -&amp;gt; YARN/MR2 -&amp;gt; Configuration -&amp;gt; SearchFor: compress -&amp;gt;

mapreduce.output.fileoutputformat.compress: checked
mapreduce.output.fileoutputformat.compress.codec: com.hadoop.compression.lzo.LzoCodec
mapreduce.map.output.compress: checked
mapreduce.map.output.compress.codec: com.hadoop.compression.lzo.LzoCodec&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jun 2018 21:02:46 GMT</pubDate>
    <dc:creator>AntonyN</dc:creator>
    <dc:date>2018-06-19T21:02:46Z</dc:date>
    <item>
      <title>Hive Queries are not executing. Showing Exceptions in CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28426#M4366</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while using Hive CLI, Even for show databases query, I am getting Exception "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Time taken: 0.05 seconds&lt;/FONT&gt;"&lt;/STRONG&gt; , Recently we upgraded from CDH 5.1.2 to CDH 5.4.1. But it was working fine for somedays after upgradation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And we cant find any errors in Log, The services are running good. We are using Mysql DB as metastore db,it is working fine. I tried re-installing the service also,&lt;/P&gt;&lt;P&gt;again the same error continues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appriciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sathish,&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:31:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28426#M4366</guid>
      <dc:creator>sathishkumar</dc:creator>
      <dc:date>2022-09-16T09:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Queries are not executing. Showing Exceptions in CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28534#M4367</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is with the compression codec which we was using in 5.1.2. Later we disabled GPL Extras and forgot to change the compression codec to default. This caused the issue and it has been fixed by changing the compression codec to default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 09:14:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28534#M4367</guid>
      <dc:creator>sathishkumar</dc:creator>
      <dc:date>2015-06-15T09:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Queries are not executing. Showing Exceptions in CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28539#M4368</link>
      <description>&lt;P&gt;Double checking, did the change to default compression fully resolve your issue? If so, it would be great if you could&amp;nbsp;mark your last comment as the solution so it may help others who face a similar issue in the future. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 12:28:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28539#M4368</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2015-06-15T12:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Queries are not executing. Showing Exceptions in CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28545#M4369</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp; Jervis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually removed the LZO compression codec from the list of compression codecs available, and made the compression codec as default one. After service restart everything started working as normal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 16:16:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28545#M4369</guid>
      <dc:creator>sathishkumar</dc:creator>
      <dc:date>2015-06-15T16:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Queries are not executing. Showing Exceptions in CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28547#M4370</link>
      <description>Great! Thank you for sharing.</description>
      <pubDate>Mon, 15 Jun 2015 16:20:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/28547#M4370</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2015-06-15T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Queries are not executing. Showing Exceptions in CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/69226#M4371</link>
      <description>&lt;P&gt;I received a similar error, but for the LzopCodec (not LzoCodec) not being found.&amp;nbsp; In this case, I actually wanted to use the LzoCodec as my default compression codec (for legacy reasons...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to get Hive working with Lzo on CDH 5.14.x, I did the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1)

# Add GPLEXTRAS parcel to CM and distribute to all nodes:
https://www.cloudera.com/documentation/enterprise/5-14-x/topics/cm_ig_install_gpl_extras.html

2)

# Configure HDFS to use it:
http://www.roggr.com/2014/06/enabling-lzo-compression-for-hive-to.html
ClouderaManager -&amp;gt; Hive -&amp;gt; Configuration -&amp;gt; Service-wide -&amp;gt; Advanced  -&amp;gt; Hive Auxiliary JARs Directory : /opt/cloudera/parcels/GPLEXTRAS/lib/hadoop/lib

# Verify it works by invoking 'show tables' in hive with debug-logging enabled.  There should not be any errors.  The error condition if not working complains about LzopCode (not LzoCodec) not found.
hive --hiveconf hive.root.logger=DEBUG,console

3)

# Configure HDFS
ClouderaManager -&amp;gt; HDFS -&amp;gt; Configuration -&amp;gt; Service-wide -&amp;gt; Compression Codes (io.compression.codecs):

+ com.hadoop.compression.lzo.LzoCodec
+ com.hadoop.compression.lzo.LzopCodec

4)

# Configure YARN/MR2
# http://blog.cloudera.com/blog/2013/07/one-engineers-experience-with-parcel/

ClouderaManager -&amp;gt; YARN/MR2 -&amp;gt; Configuration -&amp;gt; SearchFor: compress -&amp;gt;

mapreduce.output.fileoutputformat.compress: checked
mapreduce.output.fileoutputformat.compress.codec: com.hadoop.compression.lzo.LzoCodec
mapreduce.map.output.compress: checked
mapreduce.map.output.compress.codec: com.hadoop.compression.lzo.LzoCodec&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 21:02:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Queries-are-not-executing-Showing-Exceptions-in-CLI/m-p/69226#M4371</guid>
      <dc:creator>AntonyN</dc:creator>
      <dc:date>2018-06-19T21:02:46Z</dc:date>
    </item>
  </channel>
</rss>

