Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.apache.hadoop.hive.ql.exec.DDLTask. MetaException #5

Open
zoeminghong opened this issue May 9, 2019 · 0 comments
Open

org.apache.hadoop.hive.ql.exec.DDLTask. MetaException #5

zoeminghong opened this issue May 9, 2019 · 0 comments
Labels

Comments

@zoeminghong
Copy link
Owner

描述:

Hive on HBase 时创建表的时候,报如下错误

ERROR : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Table default.t_student failed strict managed table checks due to the following reason: Table is marked as a managed table but is not transactional.)
INFO  : Completed executing command(queryId=hive_20190509143748_e915cb45-4846-4927-b5fd-8983507526fe); Time taken: 12.084 seconds
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Table default.t_student failed strict managed table checks due to the following reason: Table is marked as a managed table but is not transactional.) (state=08S01,code=1)

方案:

是由于创建表的语句错误导致的。应该加上 external

CREATE EXTERNAL TABLE hbase_table_2(key int, value string) 
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = "cf1:val")
TBLPROPERTIES("hbase.table.name" = "some_existing_table", "hbase.mapred.output.outputtable" = "some_existing_table");

参考文档:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant