小编Rob*_*ley的帖子

ADF-Postgres 超时

我正在使用 ADF 和 Azure 托管 Postgres。我遇到了一个反复出现的问题,即查找和源自查询的复制活动在大约 35 秒后超时。

Failure happened on 'Source' side. 'Type=Npgsql.NpgsqlException,Message=Exception while reading from stream,Source=Npgsql,''Type=System.IO.IOException,Message=Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.,Source=System,''Type=System.Net.Sockets.SocketException,Message=A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond,Source=System,' …
Run Code Online (Sandbox Code Playgroud)

postgresql azure-data-factory azure-postgresql

6
推荐指数
2
解决办法
4120
查看次数

SQL Server TCP 提供程序的 ODBC 驱动程序 17:错误代码 0x68 [104]

我有一个使用 Linux 计算机在 Azure Web 应用服务计划上运行的 Flask-sqlalchemy 项目。它正在连接到 Azure SQL DB (SQL Server)。我间歇性地收到以下错误:

sqlalchemy.exc.OperationalError: (pyodbc.OperationalError) ('08S01', '[08S01] [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x68 (104) (SQLExecDirectW)')
Run Code Online (Sandbox Code Playgroud)

此错误是由于在数据库上执行选择查询而引发的。

python sqlalchemy azure-sql-managed-instance

5
推荐指数
1
解决办法
3357
查看次数

Azure 数据工厂查找和 For Each

我有一个数据工厂管道,我想遍历 SQL 查找活动的行。我已将查询范围缩小到三列和 500 行。

我知道要引用我使用的表中的值:

@{activity('lookupActivity').output.value[row#].colname}
Run Code Online (Sandbox Code Playgroud)

但是, for each 需要有一些东西可以迭代。我的第一个猜测是将一些数组变量设置为返回的 sql 查询的行。那么我将该变量设置为什么?

@{activity('lookupActivity').output.value?
Run Code Online (Sandbox Code Playgroud)

最后,看起来几乎所有数据在 ADF 中都表示为 json,这是真的吗?我如何将这个查找的输出视为一个 json,以便我可以理解我的动态内容需要是什么样的?

azure-data-factory-2

2
推荐指数
1
解决办法
5934
查看次数

ADF:参数中的动态内容

我正在尝试将带有动态内容的文本作为参数传递到管道中(执行管道活动)。

作为一个超级简单的示例,我希望管道的输入是时间戳 utcnow()。这是我的结果:

我注意到:
如果我将 @utcnow() 放入设置变量活动中并将执行管道参数设置为该变量,则它可以工作。

如果我将 @utcnow() (或 @{utcnow()}) 放在主参数中并将执行管道参数设置为该参数,则它不起作用。我得到了字符串“utcnow()”作为结果。

我在这里缺少什么吗?我确实觉得我以前已经成功地做到了这一点。

azure-data-factory

1
推荐指数
1
解决办法
7524
查看次数

用 Pandas 解压嵌套数据

你好,我有一个令人讨厌的字典列表,我想将其放入数据框中

data = [
    {
        "name": "pod_name",
        "type": "group",
        "values": [
            [
                "7b977b5d68-mdwfc"
            ],
            [
                "d8b746cdf-hn5dx"
            ],
            [
                "d8b746cdf-wmxdq"
            ],
            [
                "d8b746cdf-8dv65"
            ],
            [
                "d8b746cdf-9dn2c"
            ],
            [
                "d8b746cdf-rh5c5"
            ],
            [
                "d8b746cdf-q5fz6"
            ],
            [
                "d8b746cdf-hvdmd"
            ],
            [
                "d8b746cdf-fgzcj"
            ],
            [
                "d8b746cdf-lhclk"
            ]
        ]
    },
    {
        "name": "cpu_limit",
        "type": "number",
        "values": [
            2.5,
            1.5,
            1.5,
            1.5,
            1.5,
            1.5,
            1.5,
            1.5,
            1.5,
            1.5
        ]
    },
    {
        "name": "mem_limit",
        "type": "number",
        "values": [
            10737418240.0,
            2147483648.0,
            2147483648.0,
            2147483648.0,
            2147483648.0,
            2147483648.0,
            2147483648.0,
            2147483648.0,
            2147483648.0,
            2147483648.0
        ] …
Run Code Online (Sandbox Code Playgroud)

python pandas

0
推荐指数
1
解决办法
66
查看次数