简体   繁体   English

HIVE:执行错误,从org.apache.hadoop.hive.ql.exec.FunctionTask返回代码[-101](未知错误)

[英]HIVE: Execution Error, return code [-101] (unknow error) from org.apache.hadoop.hive.ql.exec.FunctionTask

I write a UDF as flow: 我将UDF编写为流程:

  package com.test;
    import org.apache.hadoop.hive.ql.exec.UDF;
    import org.apache.hadoop.io.Text;

    public class Lower extends UDF {
        public Text evaluate(final Text s) {
            if (s == null) {
                return null;
            }
            return new Text(s.toString().toLowerCase());
        }
    }

then I export a jar(udftest.jar) of this test project by eclipse. 然后我通过eclipse导出了这个测试项目的jar(udftest.jar)。 After that I add jar udftest.jar in hive: 之后,我在蜂巢中添加jar udftest.jar

hive command: add jar udftest.jar;   
hive command: create temporary function my_lower as 'com.test.Lower';
hive command: Executing command:  create temporary function my_lower as 'com.test.Lower'

Execution Failed! 执行失败!

Failed: Error occurred during execution.
Detail message: FAILED: Execution Error, return code [-101] (unknow error) from org.apache.hadoop.hive.ql.exec.FunctionTask

I don't know why! 我不知道为什么! I search the internet but not deal with this problem! 我在互联网上搜索,但未解决此问题!

我发现为什么我不能创建临时功能(它困扰了好几天!):因为我使用的Java版本是1.7,但是配置单元仅支持1.6!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 执行错误,从 org.apache.hadoop.hive.ql.exec.FunctionTask 返回代码 1 - Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask Hive 错误:失败:执行错误,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2 - Hive Error : FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask 从HIVE UDF中读取HDFS文件-执行错误,返回代码101 FunctionTask。 无法初始化课程 - Read an HDFS File from a HIVE UDF - Execution Error, return code 101 FunctionTask. Could not initialize class 运行HIVE命令引发错误:线程“ main”中的异常java.lang.RuntimeException:org.apache.hadoop.hive.ql.metadata.HiveException - Running HIVE command throwing error: Exception in thread “main” java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException java.lang.NoClassDefFoundError: org/apache/hadoop/hive/ql/metadata/HiveException 在 spark-shell 中查询时 - java.lang.NoClassDefFoundError: org/apache/hadoop/hive/ql/metadata/HiveException when query in spark-shell Maven可部署jar“ java.lang.ClassNotFoundException:org.apache.hadoop.hive.jdbc.HiveDriver”错误 - maven deployable jar “java.lang.ClassNotFoundException: org.apache.hadoop.hive.jdbc.HiveDriver” error 远程 flink 作业查询 Hive 上的纱线集群错误:NoClassDefFoundError: org/apache/hadoop/mapred/JobConf - remote flink job with query to Hive on yarn-cluster error:NoClassDefFoundError: org/apache/hadoop/mapred/JobConf 无法摆脱java.lang.ClassNotFoundException:类org.apache.hadoop.hive.ql.io.RCFileInputFormat - Can't get rid of java.lang.ClassNotFoundException: Class org.apache.hadoop.hive.ql.io.RCFileInputFormat 引起:java.lang.ClassNotFoundException:org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch出现在flink查询配置单元中 - Caused by: java.lang.ClassNotFoundException: org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch appears in flink query hive Hive GUDF custom unzip function test case failing with error “B cannot be cast to org.apache.hadoop.io.BytesWritable” - Hive GUDF custom unzip function test case failing with error “B cannot be cast to org.apache.hadoop.io.BytesWritable”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM