我正在通过 ODBC 进行数据加载,方法是将数据从本地数据库提取到文件中,然后将这些数据导入到 Snowflake 目标表中。
在此过程中,我收到下面提到的错误。出现此错误的可能性是什么?
Exception calling "Open" with "0" argument(s): "ERROR [HY000] [Snowflake][Snowflake] (4)
REST request for URL <hiding Snowflake URL> failed: CURLerror (curl_easy_perform() failed) - code=60 msg='SSL peer certificate or SSH remote key was not OK' osCode=2 osMsg='No such file or directory'.
ERROR [HY000] [Snowflake][Snowflake] (4)
REST request for URL <hiding Snowflake URL> failed: CURLerror (curl_easy_perform() failed) - code=60 msg='SSL peer certificate or SSH remote key was not OK' osCode=2 osMsg='No such file or directory'.
"
At C:\temp\wsla3205x.ps1:254 char:5
+ $sfOdbc.Open()
我这边还需要更多信息吗?
同样的问题,我的 Laravel 应用程序的 database.php 文件中的帐户值错误:
我有这个:
'snowflake' => [
'driver' => 'snowflake_native',
'account' => 'xx.us-east-2',
'username' => 'xxxxxxxx',
'password' => 'xxxxxxxx',
'database' => 'xxxxxxxxxxx',
'warehouse' => 'xxxxxxxxxx',
'schema' => 'xxxxxxx',
'options' => [
1000 => 2,
],
],
然后,我修复了它:
'snowflake' => [
'driver' => 'snowflake_native',
'account' => 'xx.us-east-2.aws', //Add '.aws' at the end
'username' => 'xxxxxxxx',
'password' => 'xxxxxxxx',
'database' => 'xxxxxxxxxxx',
'warehouse' => 'xxxxxxxxxx',
'schema' => 'xxxxxxx',
'options' => [
1000 => 2,
],
],