You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2026-07-31 09:02:59,027 INFO [org.apa.pol.ser.exc.IcebergExceptionMapper] [f9fcc048-190f-4a7d-b0b1-a59440b17655_0000000000000000070,default-realm] [,,,] (executor-thread-2) Handling runtimeException Principal 'root' with activated PrincipalRoles '[service_admin]' and activated grants via '[service_admin, catalog_admin]' is not authorized for op CREATE_TABLE_DIRECT_WITH_WRITE_DELEGATION
objectSparkPolarisSqlTest {
// https://github.com/aliyun/datalake-catalog-metastore-client/blob/master/README-CN.mddefmain(args: Array[String]):Unit= {
valspark=SparkSession.builder()
.master("local")
.config("spark.serializer", "org.apache.spark.serializer.KryoSerializer")
.config("spark.sql.catalog.polaris", "org.apache.polaris.spark.SparkCatalog")
.config("spark.sql.catalog.polaris.uri", "http://172.88.0.153:32122/api/catalog")
.config("spark.sql.catalog.polaris.token-refresh-enabled", "true")
.config("spark.sql.catalog.polaris.credential", "polaris:polaris2026")
.config("spark.sql.catalog.polaris.warehouse", "minio_catalog")
.config("spark.sql.catalog.polaris.scope", "PRINCIPAL_ROLE:ALL")
.config("spark.sql.catalog.polaris.header.X-Iceberg-Access-Delegation", "vended-credentials")
.config("spark.sql.catalog.polaris.rest.auth.type", "oauth2")
.config("spark.sql.catalog.polaris.oauth2-server-uri", "http://172.88.0.153:32122/api/catalog/v1/oauth/tokens")
.getOrCreate()
spark.sql("USE polaris")
spark.sql("CREATE NAMESPACE IF NOT EXISTS iceberg_demos")
spark.sql("USE NAMESPACE iceberg_demos")
spark.sql("""CREATE TABLE IF NOT EXISTS PEOPLE ( id int, name string) USING iceberg;""")
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2026-07-31 09:02:59,027 INFO [org.apa.pol.ser.exc.IcebergExceptionMapper] [f9fcc048-190f-4a7d-b0b1-a59440b17655_0000000000000000070,default-realm] [,,,] (executor-thread-2) Handling runtimeException Principal 'root' with activated PrincipalRoles '[service_admin]' and activated grants via '[service_admin, catalog_admin]' is not authorized for op CREATE_TABLE_DIRECT_WITH_WRITE_DELEGATION
create catalog
Create a principal role
Create a namespace
All reactions