<?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 Possible to Utilize CBO in the Hive view? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101473#M14148</link>
    <description>&lt;P&gt;I'm following a tutorial on the Hortonworks site, &lt;A href="http://hortonworks.com/hadoop-tutorial/supercharging-interactive-queries-hive-tez/."&gt;http://hortonworks.com/hadoop-tutorial/superchargi...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if it is possible to get the CBO working. I've tried setting the 4 params and getting the table stats, but for some reason I'm getting an error which looks like: &lt;/P&gt;&lt;PRE&gt;   org.apache.ambari.view.hive.client.HiveErrorStatusException: H110 Unable to submit statement. Error while processing statement: Cannot modify set hive.cbo.enable at runtime. It is not in list of params that are allowed to be modified at runtime [ERROR_STATUS]&lt;/PRE&gt;&lt;P&gt;I get the error across 3 different params. How do I get the CBO working?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2016 01:03:26 GMT</pubDate>
    <dc:creator>zblanco</dc:creator>
    <dc:date>2016-01-06T01:03:26Z</dc:date>
    <item>
      <title>Possible to Utilize CBO in the Hive view?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101473#M14148</link>
      <description>&lt;P&gt;I'm following a tutorial on the Hortonworks site, &lt;A href="http://hortonworks.com/hadoop-tutorial/supercharging-interactive-queries-hive-tez/."&gt;http://hortonworks.com/hadoop-tutorial/superchargi...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if it is possible to get the CBO working. I've tried setting the 4 params and getting the table stats, but for some reason I'm getting an error which looks like: &lt;/P&gt;&lt;PRE&gt;   org.apache.ambari.view.hive.client.HiveErrorStatusException: H110 Unable to submit statement. Error while processing statement: Cannot modify set hive.cbo.enable at runtime. It is not in list of params that are allowed to be modified at runtime [ERROR_STATUS]&lt;/PRE&gt;&lt;P&gt;I get the error across 3 different params. How do I get the CBO working?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 01:03:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101473#M14148</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2016-01-06T01:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Utilize CBO in the Hive view?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101474#M14149</link>
      <description>&lt;P&gt;In recent HDP versions you don't have to explicitly enable it, it should be on by default already. You can check via Ambari -&amp;gt; Hive -&amp;gt; Configs. It will have the CBO switch like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1198-screenshot.png" style="width: 1063px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23747iA41266A0370D1831/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1198-screenshot.png" alt="1198-screenshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:20:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101474#M14149</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2019-08-19T12:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Utilize CBO in the Hive view?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101475#M14150</link>
      <description>&lt;P&gt;The error message seems to indicate that you cannot simply enable CBO for your session or connection (i.e. with a set statement). Rather, it should be enabled for the HiveServer2 instance "cluster wide", and not per user session. This could be due to how the Calcite optimizer is initialized or executed.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 03:21:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101475#M14150</guid>
      <dc:creator>phargis</dc:creator>
      <dc:date>2016-01-06T03:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Utilize CBO in the Hive view?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101476#M14151</link>
      <description>&lt;P&gt;The error message is being thrown by Hive SQLStandardAuth authorization mode which disallows hive.cbo.enable to be set in the HS2 client session. As &lt;A rel="user" href="https://community.cloudera.com/users/173/agrande.html" nodeid="173"&gt;@Andrew Grande&lt;/A&gt; mentioned CBO should be enabled by default. For CBO to get exercised make sure stats are generated for the table in question.&lt;/P&gt;&lt;PRE&gt;ANALYZE TABLE &amp;lt;table&amp;gt; [partion(key)] COMPUTE STATISTICS;
ANALYZE TABLE &amp;lt;table&amp;gt; [partion(key)] COMPUTE STATISTICS FOR COLUMNS;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jan 2016 15:21:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101476#M14151</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2016-01-06T15:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Utilize CBO in the Hive view?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101477#M14152</link>
      <description>&lt;P&gt;@Andrew Grande, Thank you I saw that it was enabled in my settings&lt;/P&gt;&lt;P&gt;After running both ANALYZE queries, I attempt to execute an EXPLAIN on the query I'm trying to run.&lt;/P&gt;&lt;PRE&gt;-- Ran these first
analyze table hvac_orc compute statistics;
analyze table hvac_orc compute statistics for columns;

-- Then ran this one
EXPLAIN select buildingid, max(targettemp-actualtemp)  from hvac_orc group  by buildingid;
&lt;/PRE&gt;&lt;P&gt;However when I do this and read the results, it still says CBO is not on, and I see this specific line in the results:&lt;/P&gt;&lt;PRE&gt;Statistics:Num rows: 4001 Data size: 116289 Basic stats: COMPLETE Column stats: NONE
&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jan 2016 22:26:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101477#M14152</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2016-01-06T22:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Utilize CBO in the Hive view?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101478#M14153</link>
      <description>&lt;P&gt;It looks like the column stats aren't being saved.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 22:30:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101478#M14153</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2016-01-06T22:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Utilize CBO in the Hive view?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101479#M14154</link>
      <description>&lt;P&gt;Thanks Andrew! I did not know that. I probably should have done some digging myself to figure that out. However I'm still having issue when I run an EXPLAIN and it says my query is not optimized by CBO. See my comment to &lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt;'s response&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 23:15:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101479#M14154</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2016-01-06T23:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Utilize CBO in the Hive view?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101480#M14155</link>
      <description>&lt;P&gt;Some queries won't engage CBO, simply because there's nothing for it to optimize in a plan. Are you observing slow performance?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 23:48:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101480#M14155</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2016-01-06T23:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Utilize CBO in the Hive view?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101481#M14156</link>
      <description>&lt;P&gt;Performance really isn't slow when executing the query.&lt;/P&gt;&lt;P&gt;This is interesting. I figured that because the query had utilized the CBO in the tutorial I linked in the original question that it would still work now. I guess my thinking is incorrect?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 21:37:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Possible-to-Utilize-CBO-in-the-Hive-view/m-p/101481#M14156</guid>
      <dc:creator>zblanco</dc:creator>
      <dc:date>2016-01-07T21:37:24Z</dc:date>
    </item>
  </channel>
</rss>

