[英]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.