作业失败,执行错误:无法打开连接

编程入门 行业动态 更新时间:2024-10-27 00:23:11
本文介绍了作业失败,执行错误:无法打开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们正在使用DeployR(开放版)通过其REST API以编程方式执行R Scripts。它运行良好,但有时我们收到错误消息"作业失败,执行错误:无法打开连接"没有更多有用的信息。 我认为与DeployR打开MongoDB的内部连接有关,但只是一个嫌疑人(没有找到证据)

We are using DeployR (Open edition) to execute R Scripts programmatically through its REST API. It works nicely, but sometimes we got an error with the message "Job failure, execution error: cannot open the connection" with no more useful info. I think is something related with the internal connection that DeployR opens to MongoDB, but is only a suspect (no evidences found)

任何有相同问题的人?在哪里可以找到更多信息?有什么建议吗?

Anyone with the same problem? Any place where I can find more info? Any advice?

提前致谢!!

Carlos S。

推荐答案

Hello Carlos,

Hello Carlos,

在使用Deploy R enterprise时,我遇到了同样的问题。基本上,当您运行脚本时,Deploy-R会创建一个项目工作区,并尝试在其中执行脚本。如果你正在使用任何不在工作区中的数据文件(rdata,csv),那么 Deploy-R会给你这个错误。

I have faced the same issue while working with Deploy R enterprise. Basically, when you run a script Deploy-R creates a project workspace and will try to execute the script in it. And if you are using any data file (rdata, csv) which is not in the workspace Deploy-R will give you this error.

所以如果你需要测试此方案,您可以执行以下操作

So if you need to test this scenario, you can do the following

  • 打开Repository Manager并转到列出的脚本。
  • 点击'测试'。检查你的R代码是否需要任何需要预加载的数据。
  • 但要测试,只需运行代码。
  • 如果你得到相同的错误,可能数据未加载到工作区。
  • 现在,尝试将数据加载到工作区并运行。如果它运行,则比项目工作区中没有的数据。
  • 如果您使用的是API,则需要在创建项目时调用预加载选项。

    And if you are using API, you need to call the pre-load options while creating the project.

    问候,

    Anish Sharma

    Anish Sharma

    更多推荐

    作业失败,执行错误:无法打开连接

    本文发布于:2023-11-24 03:15:27,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1623769.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:作业   无法打开   错误

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!