zoukankan      html  css  js  c++  java
  • HiveServer2 的jdbc方式创建udf的修改(add jar 最好不要使用),否则会造成异常: java.sql.SQLException: Error while processing statement: null

    自从Hive0.13.0开始,使用HiveServer2 的jdbc方式创建udf的临时函数的方法由:

     ADD JAR ${HiveUDFJarPath}

        create TEMPORARY function md5  as 'com.hugedata.hive.udf.codec.UDFMd5';

    改为:

          create TEMPORARY function md5  as 'com.hugedata.hive.udf.codec.UDFMd5' USING JAR ${HiveUDFJarPath};

    万恶的这个修改,让我忙活了大半天。

    异常堆栈跟踪信息:

    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)

  • 相关阅读:
    day06 字典、元组、set的方法及常用操作
    python makestrans translate
    python 中locals() 和 globals()
    threading.local()
    进程 线程 协程
    微信机器人
    flask
    python is ==
    Beautiful Soup 4.4.0 基本使用方法
    12306
  • 原文地址:https://www.cnblogs.com/sixiweb/p/4905567.html
Copyright © 2011-2022 走看看