The HiveServer2 JDBC method creates a UDF modification (the Add jar is best not to be used), otherwise it causes a java.sql.SQLException:Error while processing statement:null

Source: Internet
Author: User
Tags stack trace

Since Hive0.13.0 started, the method of creating temporary functions for UDFs using the HiveServer2 JDBC approach is:

ADD JAR ${hiveudfjarpath}

Create temporary function MD5 as ' com.hugedata.hive.udf.codec.UDFMd5 ';

Switch

Create temporary function MD5 as ' com.hugedata.hive.udf.codec.UDFMd5 ' USING JAR ${hiveudfjarpath};

The evil of this modification, let me busy for a long day.

Exception stack trace information:

Exception in thread ' main ' java.sql.SQLException:Error while processing statement:null
At Org.apache.hive.jdbc.Utils.verifySuccess (utils.java:120)
At Org.apache.hive.jdbc.Utils.verifySuccessWithInfo (utils.java:108)
At Org.apache.hive.jdbc.HiveStatement.execute (hivestatement.java:233)

The HiveServer2 JDBC method creates a UDF modification (the Add jar is best not to be used), otherwise it causes a java.sql.SQLException:Error while processing statement:null

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.