作业失败,执行错误:无法打开连接 [英] Job failure, execution error: cannot open the connection
问题描述
我们正在使用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
这篇关于作业失败,执行错误:无法打开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!