title: spark can't call hive udf. Error in query: Undefined function: 'myh6
body: <p>Error in query: </p>
  
  <blockquote>
    <p>Undefined function: 'myh6'. This function is neither a registered temporary function nor a permanent function registered in the database 'default'.; line 1 pos 7.</p>
  </blockquote>
  
  <p>When I've already used <code>def hive udf</code> in spark, it tells me the <code>hive udf</code> is not found. I've found the spark driver is not loading the <code>resource_uri jar</code>.  So it can not use the hive <code>udf</code>.</p>
  
  <p>How can I do it?</p>