问题描述
当我尝试将查询加载到表格日期集(来自devops docker映像)时,会出现以下错误:
raise DatasetValidationError(error_message + '\n' + str(e),e)
azureml.data.dataset_error_handling.DatasetValidationError: Cannot load any data from the datastore using the sql query "<azureml.data.datapath.DataPath object at 0x>". Please make sure the datastore and query is correct.
Error Code: ScriptExecution.DatabaseConnection.Unexpected
Failed Step: 9ad57100-4870-49d2-a32f-1c9c15c244e0
Error Message: ScriptExecutionException was caused by DatabaseConnectionException.
DatabaseConnectionException was caused by UnexpectedException.
'MSsql' encountered unexpected exception of type 'InvalidOperationException' with HResult 'x80131509' while opening connection.
Internal connection Fatal error.
我相信我已允许防火墙中的连接(我可能做得不太正确)。
从笔记本(在计算实例上)运行它时,我没有得到错误。
解决方法
在计算实例上运行的代码是否与docker映像完全相同?如果是这样,则很可能是防火墙导致了连接问题。一种检查方法是(谨慎)禁用防火墙,并查看连接问题是否消失。
如果您愿意共享防火墙/网络配置,这也将有助于解决此问题。