<?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: How can I use UDF at  Hive on Spark? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-use-UDF-at-Hive-on-Spark/m-p/92301#M3962</link>
    <description>Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28768"&gt;@avengers&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;The error does not seem to be related to the UDF you used, as there is no reference to it from the error message. Have you tried to run other queries to confirm?&lt;BR /&gt;&lt;BR /&gt;Is there other exception error messages in the application log to indicate why this particular executor failed to run the job?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Jul 2019 05:01:02 GMT</pubDate>
    <dc:creator>EricL</dc:creator>
    <dc:date>2019-07-05T05:01:02Z</dc:date>
    <item>
      <title>How can I use UDF at  Hive on Spark?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-use-UDF-at-Hive-on-Spark/m-p/92135#M3961</link>
      <description>&lt;P&gt;I use hive on spark.&lt;/P&gt;&lt;P&gt;I made UDF.&amp;nbsp;&amp;nbsp;Jar file name is 'hive-udf-20190701.jar'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set hive configuration(Hive Service Advanced Cofniguration snipped(Safety Value) for hive-site.xml.&lt;/P&gt;&lt;PRE&gt;hive.reloadable.aux.jars.path
/usr/local/bigdata/hive-udf&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I upload jar file to HiveServer2 filesystem directory.&lt;/P&gt;&lt;PRE&gt;/usr/local/bigdata/hive-udf-20190701.jar&lt;/PRE&gt;&lt;P&gt;I create function on&amp;nbsp;Hue.&lt;/P&gt;&lt;PRE&gt;reload;
drop temporary function udf_map_tojson;
create temporary function udf_map_tojson as 'bigdata.hive.udf.MapToJsonString';&lt;/PRE&gt;&lt;P&gt;I test UDF.&lt;/P&gt;&lt;PRE&gt;select udf_map_tojson(str_to_map("k1:v1,k2:v2"));&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, Exception raise.&lt;/P&gt;&lt;PRE&gt;Error while processing statement: FAILED: Execution Error, &lt;BR /&gt;return code 3 from org.apache.hadoop.hive.ql.exec.spark.SparkTask. &lt;BR /&gt;Spark job failed due to: Job aborted due to stage failure: &lt;BR /&gt;Aborting TaskSet 3.0 because task 0 (partition 0) &lt;BR /&gt;cannot run anywhere due to node and executor blacklist. &lt;BR /&gt;Most recent failure: Lost task 0.0 in stage 3.0 (TID 3, worker09.example.com, executor 1): &lt;BR /&gt;UnknownReason Blacklisting behavior can be configured via spark.blacklist.*.&lt;/PRE&gt;&lt;P&gt;What am I wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:28:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-use-UDF-at-Hive-on-Spark/m-p/92135#M3961</guid>
      <dc:creator>avengers</dc:creator>
      <dc:date>2022-09-16T14:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use UDF at  Hive on Spark?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-use-UDF-at-Hive-on-Spark/m-p/92301#M3962</link>
      <description>Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28768"&gt;@avengers&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;The error does not seem to be related to the UDF you used, as there is no reference to it from the error message. Have you tried to run other queries to confirm?&lt;BR /&gt;&lt;BR /&gt;Is there other exception error messages in the application log to indicate why this particular executor failed to run the job?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jul 2019 05:01:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-use-UDF-at-Hive-on-Spark/m-p/92301#M3962</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-07-05T05:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use UDF at  Hive on Spark?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-use-UDF-at-Hive-on-Spark/m-p/93689#M57322</link>
      <description>&lt;P&gt;Thanks you.&lt;/P&gt;&lt;P&gt;Yes, It is not problem of UDF.&lt;/P&gt;&lt;P&gt;I have 2 HiveServer2 server host.&lt;/P&gt;&lt;P&gt;I have been register udf only 1 server host.&lt;/P&gt;&lt;P&gt;Maybe. It is reason.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 03:54:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-use-UDF-at-Hive-on-Spark/m-p/93689#M57322</guid>
      <dc:creator>avengers</dc:creator>
      <dc:date>2019-08-05T03:54:21Z</dc:date>
    </item>
  </channel>
</rss>

