【问题标题】:how to execute great expectations results into azure functions?如何将期望结果执行到天蓝色函数中?
【发布时间】:2022-01-25 20:32:06
【问题描述】:

我正在尝试使用 Great_expectations 文件夹部署 Azure 函数。该函数正在本地系统中执行,但在门户中执行该函数时遇到以下错误。

结果:失败异常:OSError:[Errno 30] 只读文件系统:'./tmp' 堆栈:文件“/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher. py”,第 405 行,在 _handle__invocation_request invocation_id,fi_context,fi.func,args) 文件“/usr/local/lib/python3.7/concurrent/futures/thread.py”,第 57 行,运行结果 = self.fn (*self.args, **self.kwargs) 文件“/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py”,第 612 行,在 _run_sync_func)(params) 文件中/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/extension.py”,第 215 行,在 _raw_invocation_wrapper 结果 = 函数(**args)文件“/home/site/wwwroot/GETrigger/main. py",第 54 行,在 main os.chmod('./tmp',0o777)

【问题讨论】:

    标签: python azure-functions great-expectations


    【解决方案1】:

    据我所知,文件路径缺少tmp

    filepath = '/tmp/' + key
    

    有关更多详细信息,您可以查看相关讨论的链接

    1. Azure Function in Python
    2. Read Only file system

    【讨论】:

    • 感谢@SaiSakethGuduru-MT。我尝试了 temp 选项,但无法在 wwwroot 中创建 temp 文件夹。还有其他选择吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-14
    • 2022-01-21
    • 2018-03-22
    • 2019-05-31
    • 1970-01-01
    相关资源
    最近更新 更多