-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to set connection properties, connector fails with "Authentication token has expired. The user must authenticate again." #525
Comments
Similar issue happened to me as well. |
@amkartashov which version of connector is this? I couldn't find the message of "Authentication token has expired. The user must authenticate again." in the latest code |
@sfc-gh-tzhang For me, it happened with version 1.6.9 |
@sfc-gh-tzhang which is the recommended version to use according to the documentation: https://docs.snowflake.com/en/user-guide/kafka-connector-install.html#installing-the-connector |
@sfc-gh-tzhang it's 1.8.0 Error message comes from snowflake jdbc driver, and they suggest to set session parameter to fix this, but there is no way to do this with kafka connector because it accepts bare url only, w/o any parameters. See snowflakedb/snowflake-jdbc#182 f.e. |
Thanks, looks like the error is actually from Snowflake server side instead of JDBC. For the fix, we could support reading it from the config file and instruct this code to accept it as a property. |
I see below possible options:
|
Current w/a from snowflake support is to set this setting on snowflake side: |
@sfc-gh-tzhang could we close this issue now? |
Snowflake connector does not accept connection properties in snowflake URL:
snowflake-kafka-connector/src/main/java/com/snowflake/kafka/connector/internal/SnowflakeURL.java
Line 53 in 4d35849
We need to be able to pass CLIENT_SESSION_KEEP_ALIVE set to true. Without this settings connector fails with (after connection is idle for a few hours):
The text was updated successfully, but these errors were encountered: