hadoop - HIVE UDF error while creating -


while creating udf hive, getting below error:

org.apache.ambari.view.hive.client.hiveerrorstatusexception:  h110 unable submit statement. error while processing statement: failed: execution error, return code 1 org.apache.hadoop.hive.ql.exec.functiontask [error_status] 

i working on hortonworks platform. tried create simple udf simulate issue, config issue?

udf

package hiveudf.hiveudf; import org.apache.hadoop.hive.ql.exec.udf; import org.apache.hadoop.io.text; public final class hiveudfupper extends udf {  public text evaluate(final text s) {     if (s == null) { return null; }     return new text(s.tostring().touppercase()); } } 

add jar hdfs:///tmp/hiveudf.jar; create temporary function hiveudfupper 'hiveudfupper'; 


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -