简体   繁体   English

创建配置单元表时出错:失败:执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask返回代码1。 元异常

[英]Error creating hive table: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException

I have a multi node hadoop cluster and now I installed hive on the namenode. 我有一个多节点hadoop集群,现在我在namenode上安装了hive。

Im trying to create some hive tables from files stored in hdfs but Im getting this strange error: 我试图从存储在hdfs中的文件创建一些配置单元表,但是我收到了这个奇怪的错误:

 FAILED: Execution Error, return code 1 from     
org.apache.hadoop.hive.ql.exec.DDLTask. 
MetaException(message:hdfs://namenode-VirtualBox:9000/data/posts
/posts.tbl is not a directory or unable to create one)
    hive> 

But, then I tried to create a table from a file stored in hdfs with only 2kb and the table was created with success. 但是,然后我尝试从仅2kb的hdfs中存储的文件创建表,并且该表创建成功。

But when I try to create a table from a file stored in hdfs larger like 200mb, and maybe less, I got that error. 但是,当我尝试从存储在大于200mb(甚至更少)的hdfs中的文件创建表时,出现了该错误。

Do you know why this error can be happening? 您知道为什么会发生此错误吗?

I believe somwhere in the code the url: hdfs://namenode-VirtualBox:9000/data/posts /posts.tbl is parsed and the url should not have the file suffix (.tbl) should just be ".../posts" 我相信在代码中的某处URL:hdfs:// namenode-VirtualBox:9000 / data / posts / posts.tbl被解析,并且URL不应该具有文件后缀(.tbl)应该只是“ ... / posts ”

I refer you to: Unable to Create Table in HIVE reading a CSV from HDFS 我向您推荐: 无法在HDE中创建表,但无法从HDFS中读取CSV

暂无
暂无

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

相关问题 失败:执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask返回代码1。 组织/ apache / hadoop / hive / serde2 / SerDe - FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. org/apache/hadoop/hive/serde2/SerDe 执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask返回代码1。 COM /的MongoDB / UTIL / JSON - Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. com/mongodb/util/JSON Hive存档分区(动态)失败:执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask返回代码1 - Hive archive partition(dynamic) FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask Hive Erro-失败:执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask返回代码1 - Hive Erro- FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask 来自 org.apache.hadoop.hive.ql.exec.mapredtask 的配置单元执行错误返回代码 2 失败 - hive failed execution error return code 2 from org.apache.hadoop.hive.ql.exec.mapredtask Hive:失败:执行错误,从org.apache.hadoop.hive.ql.exec.mr.MapRedTask返回代码2 - Hive : FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask 失败:执行错误,从 org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask​​ 返回代码 1 - FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask 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:执行错误,从org.apache.hadoop.hive.ql.exec.FunctionTask返回代码-101 - Hive:Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.FunctionTask 失败:执行错误,在Hive中进行联接操作期间,从org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask​​返回代码2 - FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask during join operation in hive
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM