Error when Inserting records into Iceberg tables managed by Lake Formation

0

Hello, I was able to create and register a new Iceberg table in my data catalog and Lake Formation using a Glue Job. I used these methods from the documentation:

# Create (equivalent to CREATE TABLE AS SELECT)
dataFrame.writeTo("glue_catalog.databaseName.tableName") \
    .tableProperty("format-version", "2") \
    .create()

# Append (equivalent to INSERT INTO)
dataFrame.writeTo("glue_catalog.databaseName.tableName") \
    .tableProperty("format-version", "2") \
    .append()

I used the first command to create the table and the job succeeded. I attempted to use the second command to insert additional records into the table and received this error:

 An error occurred while calling o14177.pyWriteDataFrame.\n: java.lang.RuntimeException: Failed to get vending credential from Lakeformation. please check if you have sufficient permissions on the table.

How could my glue role have access to create and register a table but not write to it? I confirmed my glue role has SUPER permission on the database and all tables in it, including this one. I've also been able to insert new records into Hudi tables that are in the catalog using the same role. I can't find this error anywhere, what am I missing?

tjtoll
gefragt vor 5 Monaten236 Aufrufe
1 Antwort
0
Akzeptierte Antwort

Hi,

Usually this error occurs if the Job is unable to connect to Lakeformation service.

Would you be able to share the full error trace from the logs of your failed Glue job ? I would also recommend you to raise a support case for much closer inspection.

AWS
SUPPORT-TECHNIKER
beantwortet vor 4 Monaten
profile picture
EXPERTE
überprüft vor einem Monat
  • Thanks - I'll raise a case

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen