我正在使用私钥身份验证连接到Snowflake,并且无法使用Sqitch进行连接。当使用snowsql直接连接时,这是成功的。
我的连接字符串如下所示:
sqitch status -vvv db:snowflake://username@myaccount.snowflakecomputing.com/POC_DB?Driver=Snowflake;authenticator=SNOWFLAKE_JWT;priv_key_file=/Users/username/rsa_key.p8;priv_key_file_pwd=xxxxxx;warehouse=DEFAULT_WH;uid=username在需要的地方屏蔽真实值,但这些值与使用snowsql直接工作一样正确。
使用-vvv选项,我看到
[Snowflake][DSI] (20032) Required setting 'PWD' is not present in the connection settings. (SQL-28000)和
trace: DBI::connect('DBI', 'dbi:ODBC:Server=myaccount.snowflakecomputing.com;Port=443;Database=POC_DB;Driver=Snowflake', 'username', undef, 'HASH(0x7fed7a719230)')表示密码为undef。
~/.sqitch中的sqitch.conf的设置如下所示,位于“不使用密码”部分下的https://sqitch.org/docs/manual/sqitch-authentication/中。
我不能解决为什么在使用snowsql时,它会给出missing PWD错误?
谢谢。
发布于 2019-10-05 08:26:08
我确实找到了一个设置的参考,也可能实现连接:
看起来这个错误在这个gitrepo问题中也被更正了:#439 https://github.com/sqitchers/sqitch/issues/439
https://stackoverflow.com/questions/58242281
复制相似问题