<?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 on tez cannot execute custom hook program!!! in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/377203#M243178</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106692"&gt;@yucai&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp; Thanks.@&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2023 21:07:25 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2023-10-03T21:07:25Z</dc:date>
    <item>
      <title>Hive on tez cannot execute custom hook program!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375621#M242553</link>
      <description>&lt;P&gt;I developed a custom hook on CDH (6.2. X), implement the HiveDriverRunHook interface and ExecuteWithHookContext interface. It runs smoothly, but when I migrate the hook to CDP (7.1. X), I report an error and cannot execute it. I suspect it was caused by the Tez engine, but I cannot solve it and need help，thanks very much&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:49:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375621#M242553</guid>
      <dc:creator>yucai</dc:creator>
      <dc:date>2026-04-21T06:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hive on tez cannot execute custom hook program!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375650#M242569</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106692"&gt;@yucai&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our Hive experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71090"&gt;@asish&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31523"&gt;@tjangid&lt;/a&gt;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 08:18:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375650#M242569</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-08-28T08:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hive on tez cannot execute custom hook program!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375653#M242571</link>
      <description>&lt;P&gt;Custom hook is not supported by Cloudera.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 08:24:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375653#M242571</guid>
      <dc:creator>asish</dc:creator>
      <dc:date>2023-08-28T08:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hive on tez cannot execute custom hook program!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375705#M242611</link>
      <description>&lt;P&gt;But I have implemented custom hooks on CDH, which means that custom hooks are no longer supported in CDP, right? Is there any other way for me to obtain information about hive without changing the source code? For example, SQL information or execution result information?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 03:32:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375705#M242611</guid>
      <dc:creator>yucai</dc:creator>
      <dc:date>2023-08-29T03:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hive on tez cannot execute custom hook program!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375707#M242613</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106692"&gt;@yucai&lt;/a&gt;&amp;nbsp;,&amp;nbsp;I have noticed your question, I think the Chinese PS team can help you. By the way, which company do you belong to? China UnionPay Data Services? Can you leave your contact information, we can have a quick call.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 06:36:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375707#M242613</guid>
      <dc:creator>TimeLord</dc:creator>
      <dc:date>2023-08-29T06:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hive on tez cannot execute custom hook program!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375711#M242615</link>
      <description>&lt;P&gt;I sent you a private message with my phone number. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 07:30:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/375711#M242615</guid>
      <dc:creator>yucai</dc:creator>
      <dc:date>2023-08-29T07:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hive on tez cannot execute custom hook program!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/376948#M243076</link>
      <description>&lt;P&gt;In CDP, when the HiveProtoLoggingHook is configured, query information is automatically captured and stored in the 'query_data' folder, which is typically located where 'hive.hook.proto.base-directory' is set. These details are saved as protobuf files, and in Hive, you can utilize the ProtobufMessageSerDe to access them.&lt;BR /&gt;&lt;BR /&gt;To read this captured data, you can create a table as shown below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE EXTERNAL TABLE `query_data`(
`eventtype` string COMMENT 'from deserializer', 
`hivequeryid` string COMMENT 'from deserializer', 
`timestamp` bigint COMMENT 'from deserializer', 
`executionmode` string COMMENT 'from deserializer', 
`requestuser` string COMMENT 'from deserializer', 
`queue` string COMMENT 'from deserializer', 
`user` string COMMENT 'from deserializer', 
`operationid` string COMMENT 'from deserializer', 
  `tableswritten` array&amp;lt;string&amp;gt; COMMENT 'from deserializer', 
  `tablesread` array&amp;lt;string&amp;gt; COMMENT 'from deserializer', 
  `otherinfo` map&amp;lt;string,string&amp;gt; COMMENT 'from deserializer')
PARTITIONED BY ( 
  `date` string)
ROW FORMAT SERDE 
  'org.apache.hadoop.hive.ql.io.protobuf.ProtobufMessageSerDe' 
WITH SERDEPROPERTIES ( 
  'proto.class'='org.apache.hadoop.hive.ql.hooks.proto.HiveHookEvents$HiveHookEventProto', 
  'proto.maptypes'='org.apache.hadoop.hive.ql.hooks.proto.MapFieldEntry') 
STORED AS INPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.protobuf.ProtobufMessageInputFormat' 
OUTPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.HiveNullValueSequenceFileOutputFormat'
LOCATION
  '&amp;lt;query_datalocation&amp;gt;'
TBLPROPERTIES (
  'bucketing_version'='2', 
  'proto.class'='org.apache.hadoop.hive.ql.hooks.proto.HiveHookEvents$HiveHookEventProto')&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;After creating the table, execute 'msck repair query_data sync partitions' to synchronize the partitions, and then you can retrieve and analyze the data using Beeline.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 14:12:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/376948#M243076</guid>
      <dc:creator>ggangadharan</dc:creator>
      <dc:date>2023-09-27T14:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hive on tez cannot execute custom hook program!!!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/377203#M243178</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106692"&gt;@yucai&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp; Thanks.@&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 21:07:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-on-tez-cannot-execute-custom-hook-program/m-p/377203#M243178</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-10-03T21:07:25Z</dc:date>
    </item>
  </channel>
</rss>

