[英]AWS Athena MSCK REPAIR TABLE "table_name" Error adding new partitions
When trying to refresh the partitions in a AWS Athena/Glue table I am getting this error尝试刷新 AWS Athena/Glue 表中的分区时出现此错误
line 1:1: mismatched input 'MSCK'.
第 1:1 行:输入“MSCK”不匹配。 Expecting: 'ALTER', 'ANALYZE', 'CALL', 'COMMIT', 'CREATE', 'DEALLOCATE', 'DELETE', 'DESC', 'DESCRIBE', 'DROP', 'EXECUTE', 'EXPLAIN', 'GRANT', 'INSERT', 'PREPARE', 'RESET', 'REVOKE', 'ROLLBACK', 'SET', 'SHOW', 'START', 'UNLOAD', 'UPDATE', 'USE',
期望:'ALTER'、'ANALYZE'、'CALL'、'COMMIT'、'CREATE'、'DEALLOCATE'、'DELETE'、'DESC'、'DESCRIBE'、'DROP'、'EXECUTE'、'EXPLAIN'、 'GRANT', 'INSERT', 'PREPARE', 'RESET', 'REVOKE', 'ROLLBACK', 'SET', 'SHOW', 'START', 'UNLOAD', 'UPDATE', 'USE',
the command I execute is我执行的命令是
MSCK REPAIR TABLE "table_name"
MSCK 修复表“table_name”
It was working a week ago.它在一周前工作。 I believe there was an update but I cannot find the new/proper way to add new partitions
我相信有更新,但我找不到添加新分区的新/正确方法
In my case, the table was attached to a Glue Crawler... So it was just to run the Crawler again!在我的例子中,桌子被连接到一个 Glue Crawler 上......所以它只是再次运行 Crawler!
I had the same problem.我有同样的问题。 The quotation marks are probably wrong.
引号可能是错误的。 Try
尝试
MSCK REPAIR TABLE `table_name`;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.