[英]Hive showing org.apache.hadoop.hive.ql.metadata.HiveException when trying to select from table
I tried to follow this documentation 我试图遵循此文档
And when I reached creating external table step: 当我到达创建外部表的步骤时:
CREATE EXTERNAL TABLE ams_audit_trail (job_id integer, application_id integer, actions String) STORED BY 'org.apache.hadoop.hive.dynamodb.DynamoDBStorageHandler' TBLPROPERTIES ("dynamodb.table.name" = "ams_audit_trail", "dynamodb.column.mapping" = "job_id:job_id,application_id:application_id,actions:actions");
It executed well, when I tried to select from it: `select * from ams_audit_trail limit 10;' 当我尝试从中选择时,它执行得很好:“从ams_audit_trail限制10中选择*;”
I got this error: 我收到此错误:
Failed with exception java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: Error evaluating job_id
Any idea why is this happening? 知道为什么会这样吗?
不知道为什么下面的命令可以解决问题,但是当我将job_id数据类型从整数更改为String时,它工作正常!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.