Snowflake-Jitterbit 连接器错误:net.snowflake.client.jdbc.SnowflakeSQLException:当前会话中未选择活动仓库
Posted
技术标签:
【中文标题】Snowflake-Jitterbit 连接器错误:net.snowflake.client.jdbc.SnowflakeSQLException:当前会话中未选择活动仓库【英文标题】:Snowflake-Jitterbit Connector Error: net.snowflake.client.jdbc.SnowflakeSQLException: No active warehouse selected in the current session 【发布时间】:2019-09-06 09:59:21 【问题描述】:我在尝试通过 Jitterbit 云工作室连接到 Snowflake 时收到以下错误:
错误
错误代码:
snowflake07
堆栈跟踪:
Error executing get activity. ,Stack Trace: org.jitterbit.connector.sdk.exceptions.ActivityExecutionException: Error executing get activity.
at org.jitterbit.connector.snowflake.activities.GetActivity.execute(GetActivity.java:94)
...
at java.lang.Thread.run(Thread.java:748)
Caused by: net.snowflake.client.jdbc.SnowflakeSQLException: No active warehouse selected in the current session. Select an active warehouse with the 'use warehouse' command.
The integration is configured in Jitterbit but not sure what setting I need to update in Snowflake to make a GET call.
Or is there a way to use the "USE WAREHOUSE" command in Jitterbit before connecting to Snowflake?
【问题讨论】:
【参考方案1】:Snowflake 需要“计算”资源来运行查询,这些计算资源称为仓库。大多数客户端工具都允许您设置登录/配置参数,这是他们设置计算仓库的地方。
如果 Jitterbit 不允许这样做(虽然我认为它是 JDBC,所以它应该),也许您可以简单地为正在登录的用户设置一个默认计算仓库,为此您发出一个 ALTER USER 命令,例如以下:
ALTER USER your_user_id_here SET DEFAULT_WAREHOUSE = your_warehouse_name;
https://docs.snowflake.net/manuals/sql-reference/sql/alter-user.html
为用户设置默认仓库很可能让您解决初始连接问题。
我希望这会有所帮助...Rich Murnane
【讨论】:
以上是关于Snowflake-Jitterbit 连接器错误:net.snowflake.client.jdbc.SnowflakeSQLException:当前会话中未选择活动仓库的主要内容,如果未能解决你的问题,请参考以下文章