【发布时间】:2021-11-09 15:23:42
【问题描述】:
我正在尝试在我的数据工厂中配置链接服务。在本例中,它指向 Ubuntu 20.04LTS 上的 MariaDB 实例。
我能够很好地与虚拟网络的其他部分建立连接(例如 Windows 10 VM + HeidiSQL)。但是,当我尝试配置(ip、数据库、凭据)并测试连接时,我得到:
ERROR [08001] [Microsoft][MariaDB] (1004) The connection has timed out while connecting to server: ip_here at port: 3306. Activity ID: omitted.
存储帐户和数据工厂使用与 Ubuntu 实例相同的订阅和资源组。为所有网络配置了存储帐户。
编辑 1
我使用通用 MariaDB 选项来设置链接服务。
编辑 2
找到这个花絮...
" [...] Azure 数据工厂 Azure 集成运行时不在 VNET 中,因此默认情况下它无法连接到您的 Azure SQL 数据库。[...] 您能做的最好的事情就是将 Azure 的 IP 范围列入白名单数据工厂集成运行时 [...]
编辑 3
关于如何设置集成运行时的教程: https://blog.nicholasrogoff.com/2018/07/03/how-to-get-azure-data-factory-connecting-to-your-data-on-a-vnet-or-internal-network/
但是,这似乎只在 Windows 上可用(我在 Linux 上)? https://docs.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime?tabs=data-factory
【问题讨论】:
标签: azure azure-data-factory azure-data-factory-2