pymongo.errors.OperationFailure: cannot run map reduce without the js engine

pymongo.errors.OperationFailure: cannot run map reduce without the js engine,第1张

概述pymongo.errors.OperationFailure: cannot run map reduce without the js engine

在执行mongodb中执行Js语句时,提示错误:

pymongo.errors.OperationFailure: cannot run map reduce without the Js engine

这是因为mongodb默认情况下配置Js引擎,但是在我们的SIT / UAT环境中,由于DBA会产生安全问题,因此禁用Js引擎来运行JavaScript代码。

如果想要继续执行Js代码,那么就需要打开Js引擎。

如果是用mongodb源码编译,那么可以执行以下代码:

scons --release --usev8


总结

以上是内存溢出为你收集整理的pymongo.errors.OperationFailure: cannot run map reduce without the js engine全部内容,希望文章能够帮你解决pymongo.errors.OperationFailure: cannot run map reduce without the js engine所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1154189.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-01
下一篇 2022-06-01

发表评论

登录后才能评论

评论列表(0条)

保存