<?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 Hooks - What are the recommended values when both Hive and Atlas are installed ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hooks-What-are-the-recommended-values-when-both-Hive/m-p/217550#M69385</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/13511/dineshchitlangia.html" nodeid="13511"&gt;@Dinesh Chitlangia&lt;/A&gt;&lt;P&gt;Since you have Atlas configured, you need to have Atlas Hook specified in hive.exec.post.hooks&lt;/P&gt;&lt;P&gt;Here the issue looks to be due large number of queued tasks so you may want to check why there are so many queued tasks&lt;/P&gt;&lt;PRE&gt;java.util.concurrent.ThreadPoolExecutor@5b868755[Running, pool size = 1, active threads = 1, queued tasks = 10000, completed tasks = 14807&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Oct 2017 11:43:02 GMT</pubDate>
    <dc:creator>thussain</dc:creator>
    <dc:date>2017-10-12T11:43:02Z</dc:date>
    <item>
      <title>Hive Hooks - What are the recommended values when both Hive and Atlas are installed ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hooks-What-are-the-recommended-values-when-both-Hive/m-p/217549#M69384</link>
      <description>&lt;P&gt;Environment - HDP-2.6.2 with Hive and Atlas on the cluster.&lt;/P&gt;&lt;P&gt;Current Config(based on &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.6/bk_command-line-installation/content/configuring_atlas_hive_hook.html"&gt;HDP Doc&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;hive.exec.pre.hooks=org.apache.hadoop.hive.ql.hooks.ATSHook

hive.exec.post.hooks=org.apache.hadoop.hive.ql.hooks.ATSHook, org.apache.atlas.hive.hook.HiveHook

hive.exec.failure.hooks=org.apache.hadoop.hive.ql.hooks.ATSHook&lt;/PRE&gt;&lt;P&gt;Scenario - Often, simple hive query like 'show databases' is failing with the following error:&lt;/P&gt;&lt;P&gt;2017-10-10 14:00:38,985 INFO  [HiveServer2-Background-Pool: Thread-273112]: log.PerfLogger (&lt;A href="http://PerfLogger.java:PerfLogBegin%28135%29"&gt;PerfLogger.java:PerfLogBegin(135)&lt;/A&gt;) - &amp;lt;PERFLOG method=&lt;A href="http://posthook.org/"&gt;PostHook.org&lt;/A&gt;.apache.atlas.hive.hook.HiveHook from=org.apache.hadoop.hive.ql.Driver&amp;gt;&lt;BR /&gt;2017-10-10 14:00:38,986 ERROR [HiveServer2-Background-Pool: Thread-273112]: ql.Driver (&lt;A href="http://SessionState.java:printError%28962%29"&gt;SessionState.java:printError(962)&lt;/A&gt;) - FAILED: Hive Internal Error: java.util.concurrent.RejectedExecutionException(Task java.util.concurrent.FutureTask@3f389d45 rejected from java.util.concurrent.ThreadPoolExecutor@5b868755[Running, pool size = 1, active threads = 1, queued tasks = 10000, completed tasks = 14807])&lt;BR /&gt;java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@3f389d45 rejected from java.util.concurrent.ThreadPoolExecutor@5b868755[Running, pool size = 1, active threads = 1, queued tasks = 10000, completed tasks = 14807]&lt;BR /&gt;  at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)&lt;BR /&gt;  at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)&lt;BR /&gt;  at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369)&lt;BR /&gt;  at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)&lt;BR /&gt;  at org.apache.atlas.hive.hook.HiveHook.run(HiveHook.java:174)&lt;/P&gt;&lt;P&gt;I found HCC posts that mention to update the config as shown below:&lt;/P&gt;&lt;PRE&gt;hive.exec.post.hooks=org.apache.hadoop.hive.ql.hooks.ATSHook&lt;/PRE&gt;&lt;P&gt;This has solved the problem in the &lt;A href="https://community.hortonworks.com/answers/89845/view.html"&gt;HCC post&lt;/A&gt;, however, I want to understand:&lt;/P&gt;&lt;P&gt;1. what is the significance of this values mentioned in the document ?&lt;/P&gt;&lt;P&gt;2. If removing the value solves the problem, then is the document incorrect ?&lt;BR /&gt;3. What impact does updating the value as per HCC post have on functioning of Atlas ?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 07:52:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hooks-What-are-the-recommended-values-when-both-Hive/m-p/217549#M69384</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-10-11T07:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hooks - What are the recommended values when both Hive and Atlas are installed ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hooks-What-are-the-recommended-values-when-both-Hive/m-p/217550#M69385</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/13511/dineshchitlangia.html" nodeid="13511"&gt;@Dinesh Chitlangia&lt;/A&gt;&lt;P&gt;Since you have Atlas configured, you need to have Atlas Hook specified in hive.exec.post.hooks&lt;/P&gt;&lt;P&gt;Here the issue looks to be due large number of queued tasks so you may want to check why there are so many queued tasks&lt;/P&gt;&lt;PRE&gt;java.util.concurrent.ThreadPoolExecutor@5b868755[Running, pool size = 1, active threads = 1, queued tasks = 10000, completed tasks = 14807&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Oct 2017 11:43:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hooks-What-are-the-recommended-values-when-both-Hive/m-p/217550#M69385</guid>
      <dc:creator>thussain</dc:creator>
      <dc:date>2017-10-12T11:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hooks - What are the recommended values when both Hive and Atlas are installed ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hooks-What-are-the-recommended-values-when-both-Hive/m-p/217551#M69386</link>
      <description>&lt;P&gt;This is happening because ThreadPool is configured with max pool size = 1 &amp;amp; waiting queue size = 10000. Since 10000 itself is too high, its better to increase no. of threads in thread pool.&lt;/P&gt;&lt;P&gt;Below is the property in Atlas to increase max threads&lt;/P&gt;&lt;P&gt;atlas.hook.hive.maxThreads&lt;/P&gt;&lt;P&gt;atlas.hook.hive.queueSize (default 10000), not recommented to increase.&lt;/P&gt;&lt;P&gt;If you are facing this issue even after increasing atlas.hook.hive.maxThreads, i suggest to add new HiveServer2 HA node for better load balancing.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 22:41:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hooks-What-are-the-recommended-values-when-both-Hive/m-p/217551#M69386</guid>
      <dc:creator>nramanaiah</dc:creator>
      <dc:date>2017-10-13T22:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Hooks - What are the recommended values when both Hive and Atlas are installed ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hooks-What-are-the-recommended-values-when-both-Hive/m-p/217552#M69387</link>
      <description>&lt;P&gt;thank you. I had to increase the maxThreads to get it working.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 06:35:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Hooks-What-are-the-recommended-values-when-both-Hive/m-p/217552#M69387</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-10-19T06:35:54Z</dc:date>
    </item>
  </channel>
</rss>

