jesumyip opened a new issue, #13009: URL: https://github.com/apache/iceberg/issues/13009
### Query engine Bytewax ### Question I'm trying to figure this out. Using v1.9 of the released Iceberg Connector under Docker compose. I've set ``` "iceberg.catalog.type": "rest", "iceberg.catalog.uri": "xxxxx", "iceberg.catalog.warehouse": "s3://xxxxx", "iceberg.catalog.io-impl": "org.apache.iceberg.aws.s3.S3FileIO", "iceberg.catalog.credential": "oauth", "iceberg.catalog.oauth.client-id": "${SNOWFLAKE_CLIENT_ID}", "iceberg.catalog.oauth.client-secret": "${SNOWFLAKE_CLIENT_SECRET}", "iceberg.catalog.oauth.scope": "session:role:ACCOUNTADMIN", "oauth2-server-uri": "xxxx", "rest.auth.type": "oauth2", ``` The problem is Snowflake has a OAuth2 endpoint that is different from the one automatically generated by the Iceberg sink. The sink uses `iceberg.catalog.uri` + `v1/oauth/tokens`. So I tried setting `oauth2-server-uri` because I saw this in the sink's logs: ``` [2025-05-08 08:26:03,570] INFO Hadoop config initialized: org.apache.hadoop.conf.Configuration (org.apache.iceberg.connect.CatalogUtils) [2025-05-08 08:26:03,576] WARN Inferring rest.auth.type=oauth2 since property credential was provided. Please explicitly set rest.auth.type to avoid this warning. (org.apache.iceberg.rest.auth.AuthManagers) [2025-05-08 08:26:03,576] INFO Loading AuthManager implementation: org.apache.iceberg.rest.auth.OAuth2Manager (org.apache.iceberg.rest.auth.AuthManagers) [2025-05-08 08:26:03,583] WARN Iceberg REST client is missing the OAuth2 server URI configuration and defaults to [https://xxxx/v1/oauth/tokens.](https://xxxx/v1/oauth/tokens.) This automatic fallback will be removed in a future Iceberg release.It is recommended to configure the OAuth2 endpoint using the 'oauth2-server-uri' property to be prepared. This warning will disappear if the OAuth2 endpoint is explicitly configured. See [https://github.com/apache/iceberg/issues/10537](https://github.com/apache/iceberg/issues/10537) (org.apache.iceberg.rest.auth.OAuth2Manager) [2025-05-08 08:26:03,741] WARN Unable to parse error response (org.apache.iceberg.rest.ErrorHandlers) ``` This obviously failed spectacularly and I see the raw HTML page of a 404 error displayed by Snowflake inside the sink's logs. One more question, how do I get rid of the error `WARN Inferring rest.auth.type=oauth2 since property credential was provided`? I have tried setting `rest.auth.type=oauth2` but it didn't work. When I look at https://iceberg.apache.org/docs/nightly/kafka-connect/#configuration, I can only see configuration properties like `iceberg.catalog.*` and no details of what goes in place of the asterisk. The `REST example` section of that URL also doesn't help much. Where can I find the required documentation? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org