我尝试按照documentation
进行操作当我到达创建外部表步骤时:
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");
当我尝试从中选择时,它执行得很好: `select * from ams_audit_trail limit 10;'
我收到了这个错误:
Failed with exception java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: Error evaluating job_id
知道为什么会这样吗?
答案 0 :(得分:0)
不确定为什么以下保存了这个问题,但当我将job_id数据类型从整数更改为String时,它运行正常!