I have a Firehose that stores data in S3 in the default directory structure:
YY/MM/DD/HH and a table in Athena with these columns defined as partitions:
year: string, month: string, day: string, hour: string
after running
msck repair table clicks
I only receive:
Partitions not in metastore: clicks:2017/08/26/10
I can add these partitions manually and everything works however, I was wondering why msck repair does not add these partitions automatically and update the metastore?
For future reference, aside from the two tips mentioned in this article: https://aws.amazon.com/premiumsupport/knowledge-center/athena-aws-glue-msck-repair-table/
You also need to set the
TableTypeattribute to a non-null value. In my case, it wasEXTERNAL_TABLE.