aws 胶水的 EntityNotFoundException "get-partition"

EntityNotFoundException for aws glue "get-partition"

我正在尝试通过 CLI 获取有关 Glue 分区的元数据。我试过 the docs 但我不断收到以下错误: An error occurred (EntityNotFoundException) when calling the GetPartition operation: Cannot find partition.

我知道我的 CLI 设置正确,因为我可以在 运行aws glue get-partitions --database-name my_db --table-name my_table --max-items 10.

时获得分区

以下是我试过的命令。我在语法上做错了什么?

我认为你很接近。 --partition-values 只是在寻找值(不是名称和值)

尝试以下方法

aws glue get-partition --database-name my_db --table-name my_table --partition-values "2022" "04" "29" "16"