title: Unable to run UDF on hive server
body: <p>I'm running hive in thrift server mode. I have a UDF in a jar file that I'm trying to use by running</p>
  
  <pre><code>add jar &lt;path to jar&gt;
  create temporary function func_name as 'com.test.udf.UDF_CLASS'
  </code></pre>
  
  <p>However, when I run the create temporary function command I get an error</p>
  
  <blockquote>
    <p>Query returned non-zero code: 9, cause: FAILED: Execution Error,
    return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask</p>
  </blockquote>
  
  <p>I've checked that the name &amp; path of the jar and that the user running the hive server has all the correct permissions to access the jar. What is weird is if I run hive in CLI mode and run the exact same commands, then everything works. Any ideas on why hive CLI may be behaving differently from the hive thrift server?</p>